openmw-tes3coop/apps/openmw/mwmp
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
..
DedicatedPlayer.cpp Fix frame listener errors for player markers 2016-10-30 16:39:59 +02:00
DedicatedPlayer.hpp Simplify the type of map that player objects are stored in 2016-10-26 21:36:58 +03:00
GUIChat.cpp Merge with tes3mp-packetexpansion by fixing conflicts 2016-10-23 17:57:38 +03:00
GUIChat.hpp Add chat messages to log in client 2016-09-10 13:40:06 +08:00
GUIController.cpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
GUIController.hpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
GUIDialogList.cpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
GUIDialogList.hpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
GUILogin.cpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
GUILogin.hpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
LocalPlayer.cpp Add OnPlayerChangeInventory server script callback 2016-11-03 16:39:31 +02:00
LocalPlayer.hpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Main.cpp Make capitalization reflect name of filename, and remove unused check 2016-10-31 01:23:31 +02:00
Main.hpp Add a way of filtering out ingame scripts for upcoming script packets 2016-10-25 22:44:15 +03:00
Networking.cpp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
Networking.hpp Add ProcessPlayerPacket and ProcessWorldPacket to client's Networking 2016-10-21 19:23:56 +03:00
PlayerMarkerCollection.cpp Fix frame listener errors for player markers 2016-10-30 16:39:59 +02:00
PlayerMarkerCollection.hpp Fix frame listener errors for player markers 2016-10-30 16:39:59 +02:00