mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-11-01 06:56:44 +00:00
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
|
||
|---|---|---|
| .. | ||
| launcher | ||
| mac | ||
| mygui | ||
| opencs | ||
| shaders | ||
| tes3mp | ||
| ui | ||
| windows | ||
| wizard | ||
| CMakeLists.txt | ||
| gamecontrollerdb.txt | ||
| openmw-cs.cfg | ||
| openmw-cs.desktop | ||
| openmw.appdata.xml | ||
| openmw.bmp | ||
| openmw.cfg | ||
| openmw.cfg.local | ||
| openmw.desktop | ||
| settings-default.cfg | ||
| version.in | ||