Changeset 6403 for code/branches/presentation2/data/gui/scripts
- Timestamp:
- Dec 22, 2009, 11:20:19 PM (15 years ago)
- Location:
- code/branches/presentation2/data/gui/scripts
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/scripts/AudioMenu.lua
r6388 r6403 57 57 if masterscrollbar_active == false then 58 58 mastervolume = masterscrollbarwindow:getScrollPosition() 59 orxonox. CommandExecutor:execute("config SoundManager soundVolume_ " ..mastervolume)59 orxonox.config("SoundManager", "soundVolume_", mastervolume) 60 60 end 61 61 end … … 67 67 function P.AudioMasterScrollbar_ended(e) 68 68 mastervolume = masterscrollbarwindow:getScrollPosition() 69 orxonox. CommandExecutor:execute("config SoundManager soundVolume_ " ..mastervolume)69 orxonox.config("SoundManager", "soundVolume_", mastervolume) 70 70 masterscrollbar_active = false 71 71 end … … 80 80 if musicscrollbar_active == false then 81 81 musicvolume = musicscrollbarwindow:getScrollPosition() 82 orxonox. CommandExecutor:execute("config SoundManager ambientVolume_ " ..musicvolume)82 orxonox.config("SoundManager", "ambientVolume_", musicvolume) 83 83 end 84 84 end … … 91 91 musicmutewindow:setSelected(false) 92 92 musicvolume = musicscrollbarwindow:getScrollPosition() 93 orxonox. CommandExecutor:execute("config SoundManager ambientVolume_ " ..musicvolume)93 orxonox.config("SoundManager", "ambientVolume_", musicvolume) 94 94 musicscrollbar_active = false 95 95 end … … 104 104 if effectsscrollbar_active == false then 105 105 effectsvolume = effectsscrollbarwindow:getScrollPosition() 106 orxonox. CommandExecutor:execute("config SoundManager effectsVolume_ " ..effectsvolume)106 orxonox.config("SoundManager", "effectsVolume_", effectsvolume) 107 107 end 108 108 end … … 115 115 effectsmutewindow:setSelected(false) 116 116 effectsvolume = effectsscrollbarwindow:getScrollPosition() 117 orxonox. CommandExecutor:execute("config SoundManager effectsVolume_ " ..effectsvolume)117 orxonox.config("SoundManager", "effectsVolume_", effectsvolume) 118 118 effectsscrollbar_active = false 119 119 end … … 166 166 function P.AudioThemeListbox_changed(e) 167 167 if listboxwindow:isItemSelected(1) then 168 orxonox. CommandExecutor:execute("setMood dnb")168 orxonox.execute("setMood dnb") 169 169 else 170 orxonox. CommandExecutor:execute("setMood default")170 orxonox.execute("setMood default") 171 171 end 172 172 end -
code/branches/presentation2/data/gui/scripts/InGameMenu.lua
r6363 r6403 39 39 if doExit then 40 40 hideGUI("InGameMenu") 41 orxonox. CommandExecutor:execute("exit")41 orxonox.execute("exit") 42 42 end 43 43 end -
code/branches/presentation2/data/gui/scripts/InitialiseGUI.lua
r6387 r6403 175 175 function keyESC() 176 176 if nrOfActiveSheets == 1 and activeSheets[1] == "MainMenu" then 177 orxonox. CommandExecutor:execute("exit")177 orxonox.execute("exit") 178 178 elseif nrOfActiveSheets > 0 then 179 orxonox. CommandExecutor:execute("hideGUI "..activeSheets[nrOfActiveSheets])179 orxonox.execute("hideGUI "..activeSheets[nrOfActiveSheets]) 180 180 else 181 181 showGUI("InGameMenu") -
code/branches/presentation2/data/gui/scripts/MainMenu.lua
r6206 r6403 14 14 -- events for MainMenu 15 15 function P.QuickGameTestButton_clicked(e) 16 orxonox. CommandExecutor:execute("startGame")16 orxonox.execute("startGame") 17 17 end 18 18 … … 34 34 35 35 function P.ExitButton_clicked(e) 36 orxonox. CommandExecutor:execute("exit")36 orxonox.execute("exit") 37 37 end 38 38 -
code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua
r6363 r6403 47 47 scrollposition = mousenormalscrollbarwindow:getScrollPosition() 48 48 mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14 49 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivity_ " ..mousenormalsensitivity)49 orxonox.config("KeyBinder", "mouseSensitivity_", mousenormalsensitivity) 50 50 end 51 51 end … … 58 58 scrollposition = mousenormalscrollbarwindow:getScrollPosition() 59 59 mousenormalsensitivity = (math.pow(64,scrollposition)+6)/14 60 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivity_ " ..mousenormalsensitivity)60 orxonox.config("KeyBinder", "mouseSensitivity_", mousenormalsensitivity) 61 61 mousenormalscrollbar_active = false 62 62 end … … 66 66 scrollposition = mousederivescrollbarwindow:getScrollPosition() 67 67 mousederivesensitivity = (math.pow(64,scrollposition)+6)/14 68 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " ..mousederivesensitivity)68 orxonox.config("KeyBinder", "mouseSensitivityDerived_", mousederivesensitivity) 69 69 end 70 70 end … … 77 77 scrollposition = mousederivescrollbarwindow:getScrollPosition() 78 78 mousederivesensitivity = (math.pow(64,scrollposition)+6)/14 79 orxonox. CommandExecutor:execute("config KeyBinder mouseSensitivityDerived_ " ..mousederivesensitivity)79 orxonox.config("KeyBinder", "mouseSensitivityDerived_", mousederivesensitivity) 80 80 mousederivescrollbar_active = false 81 81 end … … 86 86 derivewindow:setSelected(false) 87 87 block = false 88 orxonox. CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ false")88 orxonox.config("KeyBinder", "bDeriveMouseInput_", 0) 89 89 end 90 90 end … … 95 95 normalwindow:setSelected(false) 96 96 block = false 97 orxonox. CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ true")97 orxonox.config("KeyBinder", "bDeriveMouseInput_", 1) 98 98 end 99 99 end -
code/branches/presentation2/data/gui/scripts/MultiplayerMenu.lua
r6388 r6403 70 70 if choice then 71 71 orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw") 72 orxonox. CommandExecutor:execute(multiplayerMode)72 orxonox.execute(multiplayerMode) 73 73 hideAllGUIs() 74 74 end -
code/branches/presentation2/data/gui/scripts/SingleplayerMenu.lua
r6388 r6403 42 42 if choice then 43 43 orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw") 44 orxonox. CommandExecutor:execute("startGame")44 orxonox.execute("startGame") 45 45 hideAllGUIs() 46 46 end
Note: See TracChangeset
for help on using the changeset viewer.