openmw-tes3coop/apps/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
..
amx DIE TABS, DIE!!!!!!!1 2016-09-04 17:39:08 +08:00
Script Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
CMakeLists.txt Fix part about Breakpad in server's CMakeLists 2016-10-23 19:28:35 +03:00
main.cpp Add breakpad to server 2016-10-23 17:07:46 +08:00
MasterClient.cpp Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
MasterClient.hpp Fix headers 2016-08-15 21:15:36 +08:00
Networking.cpp Add OnPlayerChangeInventory server script callback 2016-11-03 16:39:31 +02:00
Networking.hpp Add placeholder ProcessWorldPacket method to server's Networking 2016-10-19 21:44:17 +03:00
Player.cpp Change logic for death reasons so it makes sense 2016-10-30 13:19:48 +02:00
Player.hpp Change logic for death reasons so it makes sense 2016-10-30 13:19:48 +02:00
Utils.cpp DIE TABS, DIE!!!!!!!1 2016-09-04 17:39:08 +08:00
Utils.hpp Implement 'setenv' for windows 2016-08-02 17:32:10 +08:00