Changeset 7876 for code/trunk/data/gui
- Timestamp:
- Feb 13, 2011, 5:49:41 PM (14 years ago)
- Location:
- code/trunk/data/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/HostMenu.lua
r7689 r7876 104 104 local level = P.levelList[index+1] 105 105 if level ~= nil then 106 orxonox.LevelManager:getInstance():setDefaultLevel(level:getXMLFilename()) 107 orxonox.execute(P.multiplayerMode) 106 orxonox.execute(P.multiplayerMode .. " " .. level:getXMLFilename()) 108 107 hideAllMenuSheets() 109 108 end -
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 -
code/trunk/data/gui/scripts/SingleplayerMenu.lua
r7689 r7876 74 74 local level = P.levelList[index+1] 75 75 if level ~= nil then 76 orxonox.LevelManager:getInstance():setDefaultLevel(level:getXMLFilename()) 77 orxonox.execute("startGame") 76 orxonox.execute("startGame " .. level:getXMLFilename()) 78 77 hideAllMenuSheets() 79 78 end
Note: See TracChangeset
for help on using the changeset viewer.