[Orxonox-commit 2298] r7013 - in code/branches/presentation3: data/gui/scripts src/modules/weapons

dafrick at orxonox.net dafrick at orxonox.net
Sun May 30 14:10:13 CEST 2010


Author: dafrick
Date: 2010-05-30 14:10:13 +0200 (Sun, 30 May 2010)
New Revision: 7013

Modified:
   code/branches/presentation3/data/gui/scripts/MiscConfigMenu.lua
   code/branches/presentation3/src/modules/weapons/RocketController.cc
Log:
Added some config value to the menu and greyed-out the reset button, since that doesn't work, yet.
Also removed some debug output from RocketController.


Modified: code/branches/presentation3/data/gui/scripts/MiscConfigMenu.lua
===================================================================
--- code/branches/presentation3/data/gui/scripts/MiscConfigMenu.lua	2010-05-30 11:37:33 UTC (rev 7012)
+++ code/branches/presentation3/data/gui/scripts/MiscConfigMenu.lua	2010-05-30 12:10:13 UTC (rev 7013)
@@ -17,10 +17,42 @@
 function P.onLoad()
 
     P.commandList = {}
+    table.insert(P.commandList, "KeyBinder mouseSensitivity_")
+    table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_")
+    table.insert(P.commandList, "KeyBinder bDeriveMouseInput_")
+    table.insert(P.commandList, "KeyBinder mouseWheelStepSize_")
+    table.insert(P.commandList, "Shell maxHistoryLength_")
+    table.insert(P.commandList, "Core bStartIOConsole_")
+    table.insert(P.commandList, "Game fpsLimit_")
+    table.insert(P.commandList, "Spectator speed_")
+    table.insert(P.commandList, "SpaceShip bInvertYAxis_")
+    table.insert(P.commandList, "LevelManager defaultLevelName_")
+    table.insert(P.commandList, "Gametype initialStartCountdown_")
+    table.insert(P.commandList, "Gametype bAutoStart_")
+    table.insert(P.commandList, "Gametype numberOfBots_")
+    table.insert(P.commandList, "UnderAttack gameTime_")
+    table.insert(P.commandList, "TeamDeathmatch teams_")
+    table.insert(P.commandList, "HumanPlayer nick_")
     table.insert(P.commandList, "ChatOverlay displayTime_")
 
     P.nameList = {}
-    table.insert(P.nameList, "ChatOverlay: display time")
+    table.insert(P.nameList, "Mouse sensitivity")
+    table.insert(P.nameList, "Mouse acceleration")
+    table.insert(P.nameList, "Derive mouse input")
+    table.insert(P.nameList, "Mouse wheel stepsize")
+    table.insert(P.nameList, "Shell: max. History length")
+    table.insert(P.nameList, "Start IOConsole")
+    table.insert(P.nameList, "FPS limit")
+    table.insert(P.nameList, "Spectator speed")
+    table.insert(P.nameList, "Invert Y-axis")
+    table.insert(P.nameList, "Default level")
+    table.insert(P.nameList, "Start countdown")
+    table.insert(P.nameList, "Autostart")
+    table.insert(P.nameList, "Number of Bots")
+    table.insert(P.nameList, "UnderAttack: game time")
+    table.insert(P.nameList, "TeamDeathmatch: Numer of teams")
+    table.insert(P.nameList, "Playername")
+    table.insert(P.nameList, "Chat: display time")
 
     P.linesList = {}
 
@@ -94,6 +126,7 @@
     reset:setText("reset")
     orxonox.GUIManager:subscribeEventHelper(reset, "Clicked", P.name .. ".MiscConfigReset_clicked")
     line:addChildWindow(reset)
+    reset:setEnabled(false)
     offset = offset + P.resetWidth + P.spaceWidth
 
     line:setWidth(CEGUI.UDim(0, offset))
@@ -133,8 +166,7 @@
 
     local window = winMgr:getWindow("orxonox/MiscConfigMenu/MiscConfigPane/ConfigCommand" .. commandNr .. "/Configvalue")
 
-    -- TODO: tconfig or permanent?
-    orxonox.CommandExecutor:execute("tconfig " .. P.commandList[commandNr] .. " " .. window:getText())
+    orxonox.CommandExecutor:execute("config " .. P.commandList[commandNr] .. " " .. window:getText())
     orxonox.CommandExecutor:execute("getConfig " .. P.commandList[commandNr])
     local value = orxonox.CommandExecutor:getReturnValueString()
     window:setText(value)

Modified: code/branches/presentation3/src/modules/weapons/RocketController.cc
===================================================================
--- code/branches/presentation3/src/modules/weapons/RocketController.cc	2010-05-30 11:37:33 UTC (rev 7012)
+++ code/branches/presentation3/src/modules/weapons/RocketController.cc	2010-05-30 12:10:13 UTC (rev 7013)
@@ -93,7 +93,6 @@
     void RocketController::setTarget(WorldEntity* target)
     {
         this->target_ = target;
-        COUT(0)<<"got target\n";
     }
 
     void RocketController::moveToPosition(const Vector3& target)




More information about the Orxonox-commit mailing list