forked from teamnwah/openmw-tes3coop
adb49b7c7d
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 |
||
---|---|---|
.. | ||
DedicatedPlayer.cpp | ||
DedicatedPlayer.hpp | ||
GUIChat.cpp | ||
GUIChat.hpp | ||
GUIController.cpp | ||
GUIController.hpp | ||
GUIDialogList.cpp | ||
GUIDialogList.hpp | ||
GUILogin.cpp | ||
GUILogin.hpp | ||
LocalPlayer.cpp | ||
LocalPlayer.hpp | ||
Main.cpp | ||
Main.hpp | ||
Networking.cpp | ||
Networking.hpp | ||
PlayerMarkerCollection.cpp | ||
PlayerMarkerCollection.hpp |