Changeset 7013 for code/branches/presentation3/data/gui/scripts
- Timestamp:
- May 30, 2010, 2:10:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/data/gui/scripts/MiscConfigMenu.lua
r7012 r7013 18 18 19 19 P.commandList = {} 20 table.insert(P.commandList, "KeyBinder mouseSensitivity_") 21 table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_") 22 table.insert(P.commandList, "KeyBinder bDeriveMouseInput_") 23 table.insert(P.commandList, "KeyBinder mouseWheelStepSize_") 24 table.insert(P.commandList, "Shell maxHistoryLength_") 25 table.insert(P.commandList, "Core bStartIOConsole_") 26 table.insert(P.commandList, "Game fpsLimit_") 27 table.insert(P.commandList, "Spectator speed_") 28 table.insert(P.commandList, "SpaceShip bInvertYAxis_") 29 table.insert(P.commandList, "LevelManager defaultLevelName_") 30 table.insert(P.commandList, "Gametype initialStartCountdown_") 31 table.insert(P.commandList, "Gametype bAutoStart_") 32 table.insert(P.commandList, "Gametype numberOfBots_") 33 table.insert(P.commandList, "UnderAttack gameTime_") 34 table.insert(P.commandList, "TeamDeathmatch teams_") 35 table.insert(P.commandList, "HumanPlayer nick_") 20 36 table.insert(P.commandList, "ChatOverlay displayTime_") 21 37 22 38 P.nameList = {} 23 table.insert(P.nameList, "ChatOverlay: display time") 39 table.insert(P.nameList, "Mouse sensitivity") 40 table.insert(P.nameList, "Mouse acceleration") 41 table.insert(P.nameList, "Derive mouse input") 42 table.insert(P.nameList, "Mouse wheel stepsize") 43 table.insert(P.nameList, "Shell: max. History length") 44 table.insert(P.nameList, "Start IOConsole") 45 table.insert(P.nameList, "FPS limit") 46 table.insert(P.nameList, "Spectator speed") 47 table.insert(P.nameList, "Invert Y-axis") 48 table.insert(P.nameList, "Default level") 49 table.insert(P.nameList, "Start countdown") 50 table.insert(P.nameList, "Autostart") 51 table.insert(P.nameList, "Number of Bots") 52 table.insert(P.nameList, "UnderAttack: game time") 53 table.insert(P.nameList, "TeamDeathmatch: Numer of teams") 54 table.insert(P.nameList, "Playername") 55 table.insert(P.nameList, "Chat: display time") 24 56 25 57 P.linesList = {} … … 95 127 orxonox.GUIManager:subscribeEventHelper(reset, "Clicked", P.name .. ".MiscConfigReset_clicked") 96 128 line:addChildWindow(reset) 129 reset:setEnabled(false) 97 130 offset = offset + P.resetWidth + P.spaceWidth 98 131 … … 134 167 local window = winMgr:getWindow("orxonox/MiscConfigMenu/MiscConfigPane/ConfigCommand" .. commandNr .. "/Configvalue") 135 168 136 -- TODO: tconfig or permanent? 137 orxonox.CommandExecutor:execute("tconfig " .. P.commandList[commandNr] .. " " .. window:getText()) 169 orxonox.CommandExecutor:execute("config " .. P.commandList[commandNr] .. " " .. window:getText()) 138 170 orxonox.CommandExecutor:execute("getConfig " .. P.commandList[commandNr]) 139 171 local value = orxonox.CommandExecutor:getReturnValueString()
Note: See TracChangeset
for help on using the changeset viewer.