Changeset 7284 for code/trunk/src/orxonox/overlays
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/InGameConsole.cc
r6502 r7284 45 45 #include "util/Math.h" 46 46 #include "util/DisplayStringConversions.h" 47 #include "util/ScopedSingletonManager.h" 47 48 #include "core/CoreIncludes.h" 48 49 #include "core/ConfigValueIncludes.h" 49 #include "core/ConsoleCommand.h" 50 #include "core/ScopedSingletonManager.h" 50 #include "core/command/ConsoleCommand.h" 51 51 #include "core/input/InputManager.h" 52 52 #include "core/input/InputState.h" … … 58 58 const float CHAR_WIDTH = 7.45f; // fix this please - determine the char-width dynamically 59 59 60 SetConsoleCommand( InGameConsole, openConsole, true);61 SetConsoleCommand( InGameConsole, closeConsole, true);60 SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole).addShortcut(); 61 SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole).addShortcut(); 62 62 63 63 ManageScopedSingleton(InGameConsole, ScopeID::Graphics, false); -
code/trunk/src/orxonox/overlays/InGameConsole.h
r6417 r7284 37 37 #include "util/OgreForwardRefs.h" 38 38 #include "util/Singleton.h" 39 #include "core/Shell.h"40 39 #include "core/WindowEventListener.h" 40 #include "core/command/Shell.h" 41 41 42 42 namespace orxonox -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r7184 r7284 48 48 #include "core/CoreIncludes.h" 49 49 #include "core/XMLPort.h" 50 #include "core/ ConsoleCommand.h"50 #include "core/command/ConsoleCommand.h" 51 51 52 52 #include "OverlayGroup.h" … … 57 57 std::map<std::string, OrxonoxOverlay*> OrxonoxOverlay::overlays_s; 58 58 59 SetConsoleCommand( OrxonoxOverlay, scaleOverlay, false).accessLevel(AccessLevel::User);60 SetConsoleCommand( OrxonoxOverlay, scrollOverlay, false).accessLevel(AccessLevel::User);61 SetConsoleCommand( OrxonoxOverlay, toggleVisibility, false).accessLevel(AccessLevel::User);62 SetConsoleCommand( OrxonoxOverlay, rotateOverlay, false).accessLevel(AccessLevel::User);59 SetConsoleCommand("OrxonoxOverlay", "scaleOverlay", &OrxonoxOverlay::scaleOverlay); 60 SetConsoleCommand("OrxonoxOverlay", "scrollOverlay", &OrxonoxOverlay::scrollOverlay); 61 SetConsoleCommand("OrxonoxOverlay", "toggleVisibility", &OrxonoxOverlay::toggleVisibility); 62 SetConsoleCommand("OrxonoxOverlay", "rotateOverlay", &OrxonoxOverlay::rotateOverlay); 63 63 64 64 OrxonoxOverlay::OrxonoxOverlay(BaseObject* creator) -
code/trunk/src/orxonox/overlays/OverlayGroup.cc
r6417 r7284 34 34 #include "OverlayGroup.h" 35 35 36 #include "core/ConsoleCommand.h"37 36 #include "core/CoreIncludes.h" 38 37 #include "core/XMLPort.h" 38 #include "core/command/ConsoleCommand.h" 39 39 #include "OrxonoxOverlay.h" 40 40 … … 43 43 CreateFactory(OverlayGroup); 44 44 45 SetConsoleCommand( OverlayGroup, toggleVisibility, false).accessLevel(AccessLevel::User);46 SetConsoleCommand( OverlayGroup, scaleGroup, false).accessLevel(AccessLevel::User);47 SetConsoleCommand( OverlayGroup, scrollGroup, false).accessLevel(AccessLevel::User);45 SetConsoleCommand("OverlayGroup", "toggleVisibility", &OverlayGroup::toggleVisibility); 46 SetConsoleCommand("OverlayGroup", "scaleGroup", &OverlayGroup::scaleGroup); 47 SetConsoleCommand("OverlayGroup", "scrollGroup", &OverlayGroup::scrollGroup); 48 48 49 49 OverlayGroup::OverlayGroup(BaseObject* creator)
Note: See TracChangeset
for help on using the changeset viewer.