Changeset 6048 for code/branches/menu/data
- Timestamp:
- Nov 12, 2009, 11:32:41 AM (15 years ago)
- Location:
- code/branches/menu/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/defaultConfig/keybindings.ini
r5929 r6048 23 23 KeyEnd=boost 24 24 KeyEquals= 25 KeyEscape=" exit"25 KeyEscape="toggleIngameGUI" 26 26 KeyF="scale -1 moveUpDown" 27 27 KeyF1="OverlayGroup toggleVisibility Debug" -
code/branches/menu/data/gui/scripts/InGameMenu.lua
r6024 r6048 18 18 -- events for ingamemenu 19 19 function P.button_quit_clicked(e) 20 orxonox.CommandExecutor:execute("hideGUI InGameMenu") 21 orxonox.CommandExecutor:execute("exit") 20 openDecisionPopup( "Do you really want to quit the game?", InGameMenu.callback ) 22 21 end 23 22 … … 34 33 end 35 34 35 function P.callback(doExit) 36 if doExit then 37 orxonox.CommandExecutor:execute("hideGUI InGameMenu") 38 orxonox.CommandExecutor:execute("exit") 39 end 40 end 41 36 42 return P 37 43 -
code/branches/menu/data/gui/scripts/InitialiseGUI.lua
r6036 r6048 21 21 bHidePrevious = {} 22 22 23 -- Require all tools 24 require("GUITools") 25 23 26 -- loads the GUI with the specified filename 24 27 -- be sure to set the global variable "filename" before calling this function … … 28 31 if loadedGui == nil then 29 32 loadedGuiNS = require(filename) 33 if loadedGuiNS == nil then 34 return 35 end 30 36 loadedGui = loadedGuiNS:load() 31 37 loadedGUIs[filename] = loadedGui … … 147 153 end 148 154 155 function keyESC() 156 orxonox.CommandExecutor:execute("hideGUI "..activeSheets[nrOfActiveSheets]) 157 end 158 149 159 function setBackground(filename) 150 160 local newroot
Note: See TracChangeset
for help on using the changeset viewer.