Changeset 8032
- Timestamp:
- Mar 6, 2011, 2:23:39 PM (14 years ago)
- Location:
- code/branches/usability
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/defaultConfig/keybindings.ini
r7533 r8032 42 42 KeyF9= 43 43 KeyG=greet 44 KeyGrave=" openConsole"44 KeyGrave="InGameConsole openConsole" 45 45 KeyH= 46 46 KeyHome= … … 127 127 KeyU="" 128 128 KeyUP="scale 1 moveFrontBack" 129 KeyUnassigned=" openConsole"129 KeyUnassigned="InGameConsole openConsole" 130 130 KeyUnderline= 131 131 KeyUnlabeled= -
code/branches/usability/data/gui/scripts/KeyBindMenu.lua
r7928 r8032 26 26 table.insert(commandList, "NewHumanController changeMode") 27 27 table.insert(commandList, "switchCamera") 28 table.insert(commandList, " openConsole")28 table.insert(commandList, "InGameConsole openConsole") 29 29 table.insert(commandList, "OverlayGroup toggleVisibility Debug") 30 30 table.insert(commandList, "OverlayGroup toggleVisibility Stats") -
code/branches/usability/data/gui/scripts/SheetManager.lua
r8023 r8032 245 245 keyESC() 246 246 elseif code == "0"then 247 orxonox.CommandExecutor:execute(" openConsole")247 orxonox.CommandExecutor:execute("InGameConsole openConsole") 248 248 end 249 249 end -
code/branches/usability/src/libraries/core/Game.cc
r7993 r8032 61 61 static void printFPS() 62 62 { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; } 63 SetConsoleCommand(" printFPS", &printFPS);63 SetConsoleCommand("Stats", "printFPS", &printFPS); 64 64 static void printTickTime() 65 65 { COUT(0) << Game::getInstance().getAvgTickTime() << std::endl; } 66 SetConsoleCommand(" printTickTime", &printTickTime);66 SetConsoleCommand("Stats", "printTickTime", &printTickTime); 67 67 68 68 std::map<std::string, GameStateInfo> Game::gameStateDeclarations_s; -
code/branches/usability/src/libraries/network/Host.cc
r7801 r8032 38 38 namespace orxonox { 39 39 40 static const std::string __CC_printRTT_group = "Stats"; 40 41 static const std::string __CC_printRTT_name = "printRTT"; 41 42 42 43 SetConsoleCommand("chat", &Host::Chat); 43 SetConsoleCommand(__CC_printRTT_ name, &Host::printRTT);44 SetConsoleCommand(__CC_printRTT_group, __CC_printRTT_name, &Host::printRTT); 44 45 45 46 // Host* Host::instance_=0; … … 55 56 // assert(instance_==0); 56 57 instances_s.push_back(this); 57 ModifyConsoleCommand(__CC_printRTT_ name).setObject(this);58 ModifyConsoleCommand(__CC_printRTT_group, __CC_printRTT_name).setObject(this); 58 59 this->bIsActive_ = false; 59 60 } … … 67 68 assert( std::find( instances_s.begin(), instances_s.end(), this )!=instances_s.end() ); 68 69 instances_s.erase(std::find( instances_s.begin(), instances_s.end(), this )); 69 ModifyConsoleCommand(__CC_printRTT_ name).setObject(0);70 ModifyConsoleCommand(__CC_printRTT_group, __CC_printRTT_name).setObject(0); 70 71 } 71 72 -
code/branches/usability/src/orxonox/overlays/InGameConsole.cc
r8013 r8032 60 60 const float CHAR_WIDTH = 7.45f; // fix this please - determine the char-width dynamically 61 61 62 SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole) .addShortcut();63 SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole) .addShortcut();62 SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole); 63 SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole); 64 64 65 65 ManageScopedSingleton(InGameConsole, ScopeID::Graphics, false);
Note: See TracChangeset
for help on using the changeset viewer.