1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:19:57 +00:00
openmw-tes3mp/apps/openmw
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
..
mwbase Implement ID_WORLD_DOOR_ACTIVATE and send it from MWBase::World 2016-10-25 10:40:55 +03:00
mwclass Merge pull request #89 from OpenMW/master 2016-10-30 21:49:07 +02:00
mwdialogue Fix shadowing warnings 2016-10-15 00:12:46 +09:00
mwgui Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
mwinput Merge pull request #79 from OpenMW/master while resolving conflicts 2016-10-24 09:18:21 +03:00
mwmechanics Stop player-controlled NPCs from reporting crimes committed by players 2016-10-31 11:00:56 +02:00
mwmp Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
mwphysics Fix build against bullet with profiler disabled (Fixes #3592) 2016-10-14 21:00:35 +02:00
mwrender Merge pull request #1116 from Allofich/paused 2016-10-30 19:26:56 +01:00
mwscript Merge pull request #89 from OpenMW/master 2016-10-30 21:49:07 +02:00
mwsound Use OpenThreads instead of boost thread 2016-10-10 18:23:06 +02:00
mwstate Save controls state (Fixes #3598) 2016-10-20 02:12:01 +02:00
mwworld Send ID_OBJECT_DELETE when taking world items through inventory screen 2016-10-30 02:26:32 +03:00
android_commandLine.cpp Fix tab indentations in apps/ and components/ 2015-09-16 20:45:37 +02:00
android_commandLine.h Remove empty line at the beginning of files 2015-08-18 23:06:12 +02:00
android_main.c enable opengl es1 2015-12-02 22:40:04 +03:00
CMakeLists.txt Add New GUI dialog: ListBox 2016-11-04 00:24:16 +08:00
crashcatcher.cpp Mainly making compilable under OpenBSD. 2016-08-06 19:00:27 +01:00
doc.hpp doc.hpp fix 2015-06-04 01:30:16 +02:00
engine.cpp Don't send animation packets from blacklisted scripts 2016-10-27 17:41:48 +03:00
engine.hpp Refactor: InputManager no longer depends on Engine 2015-11-14 03:01:24 +01:00
main.cpp Fix use of freed memory 2016-10-01 10:54:42 +08:00