openmw-tes3coop/apps/openmw-mp/Script/Functions
Koncord adb49b7c7d Add New GUI dialog: ListBox
Example:

local GUI_LISTBOX = 42

function OnPlayerSendMessage(pid, message)
    if message == "/lb" then
        local items = "consectetur adipiscing elit\nsed do eiusmod tempor incididunt ut labore\net dolore magna aliqua." -- items can be separated through newline
        local label = "Lorem ipsum dolor sit amet"
        tes3mp.ListBox(pid, GUI_LISTBOX, label, items)
    end
end

function OnGUIAction(pid, idGui, data)
    if idGui == GUI_LISTBOX then
        print("ID: " .. idGui .. " data: " .. tostring(data)) -- if value higher than last item id
    end
end
2016-11-04 00:24:16 +08:00
..
CharClass.cpp Rename server's GetController() method into GetPlayerController() 2016-10-19 16:54:39 +03:00
CharClass.hpp Characters Class API 2016-08-30 11:18:19 +08:00
Chat.cpp Rename server's GetController() method into GetPlayerController() 2016-10-19 16:54:39 +03:00
GUI.cpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
GUI.hpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
Items.cpp Fix errors remaining from merge with tes3mp-packetexpansion, part 2 2016-10-23 19:32:39 +03:00
Items.hpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Stats.cpp Rename server's GetController() method into GetPlayerController() 2016-10-19 16:54:39 +03:00
Stats.hpp Make GetItemSlot work and add SendEquipment in server item functions 2016-09-30 12:30:05 +03:00
Timer.cpp Fixed some build warnings and IsTimerElapsed function 2016-07-27 10:35:27 +08:00
Translocations.cpp Send cell coordinates in tes3mp using mData instead of mCellId.mIndex 2016-10-23 16:55:30 +03:00
Translocations.hpp Improve logic for script-induced cell changes 2016-09-27 11:28:44 +03:00
World.cpp Rename server's GetController() method into GetPlayerController() 2016-10-19 16:54:39 +03:00
World.hpp Time API 2016-08-30 13:24:42 +08:00