Changeset 5164
- Timestamp:
- Aug 27, 2008, 10:34:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/Media/gui/scripts/loadGUI.lua
r5163 r5164 20 20 start:setText("Start") 21 21 start:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0))) 22 start:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0. 4, 0)))22 start:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.3, 0))) 23 23 start:subscribeEvent("Clicked","button_start_clicked") 24 24 … … 26 26 local background = winMgr:createWindow("TaharezLook/StaticImage", "orxonox/Background") 27 27 background:setProperty("Image", "set: GUI/Background image:full_image") 28 background:subscribeEvent("CharacterKey", "key_pressed") 28 29 29 30 rootSheet:addChildWindow(quit) … … 38 39 39 40 function button_start_clicked(e) 40 orxonox.CommandExecutor:execute(" loadGame standalone")41 orxonox.CommandExecutor:execute("selectGameState standalone") 41 42 hideGUI() 42 43 --orxonox.CommandExecutor:execute("openConsole") 44 end 45 46 function key_pressed(e) 47 keyevent = tolua.cast(e, "CEGUI::KeyEventArgs") 48 if keyevent.codepoint == 167 then 49 orxonox.CommandExecutor:execute("openConsole") 50 end 43 51 end 44 52 … … 56 64 function hideGUI() 57 65 system:setGUISheet(nil) 58 orxonox.GUIManager:getInstance(): _hideGUI()66 orxonox.GUIManager:getInstance():hideGUI() 59 67 end
Note: See TracChangeset
for help on using the changeset viewer.