Changeset 7876 for code/trunk/data/gui/scripts/MultiplayerMenu.lua
- Timestamp:
- Feb 13, 2011, 5:49:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/MultiplayerMenu.lua
r7801 r7876 75 75 76 76 function P.MultiplayerJoinButton_clicked(e) 77 local choice = winMgr:getWindow("orxonox/MultiplayerListbox"):getFirstSelectedItem() 77 local choice = winMgr:getWindow("orxonox/MultiplayerListbox"):getFirstSelectedItem() 78 local destination = nil 78 79 if choice then 79 local client = orxonox.Client:getInstance()80 80 local index = tolua.cast(choice, "CEGUI::ListboxItem"):getID() 81 client:setDestination( P.serverList[index][2], 55556 )81 destination = P.serverList[index][2] 82 82 else 83 83 return 84 84 end 85 orxonox.execute("startClient ")85 orxonox.execute("startClient " .. destination) 86 86 hideAllMenuSheets() 87 87 end
Note: See TracChangeset
for help on using the changeset viewer.