openmw-tes3coop/components/openmw-mp
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
..
Base Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
Controllers Add and implement ID_OBJECT_ANIM_PLAY 2016-10-27 16:09:02 +03:00
Packets Use more accurate position for ID_OBJECT_PLACE 2016-10-30 00:51:23 +03:00
Log.cpp Add LOG_APPEND method for writing to log without timestamp and level 2016-08-18 23:17:46 +03:00
Log.hpp Add LOG_APPEND method for writing to log without timestamp and level 2016-08-18 23:17:46 +03:00
NetworkMessages.hpp Add and implement ID_OBJECT_ANIM_PLAY 2016-10-27 16:09:02 +03:00
Version.hpp Set version to 0.3.0 2016-10-27 14:05:20 +03:00