openmw-tes3coop/apps/openmw-mp/Script
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
..
API Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
Functions Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
LangLua Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
LangNative Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
LangPawn Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
Language.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
Platform.hpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
Script.cpp Implement 'setenv' for windows 2016-08-02 17:32:10 +08:00
Script.hpp Log callbacks 2016-09-18 11:55:51 +08:00
ScriptFunction.cpp Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
ScriptFunction.hpp Fixed some build warnings and IsTimerElapsed function 2016-07-27 10:35:27 +08:00
ScriptFunctions.cpp Fix GetProtocolVersion 2016-09-28 19:20:22 +08:00
ScriptFunctions.hpp Add OnPlayerChangeInventory server script callback 2016-11-03 16:39:31 +02:00
SystemInterface.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
Types.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00