Changeset 7219 for code/branches/consolecommands3/src/modules
- Timestamp:
- Aug 26, 2010, 12:09:12 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/modules
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc
r7207 r7219 20 20 { 21 21 ManageScopedSingleton(ScreenshotManager, ScopeID::Graphics, false); 22 SetConsoleCommandAlias(ScreenshotManager, makeScreenshot_s, "printScreenHD", true);22 _SetConsoleCommand("printScreenHD", &ScreenshotManager::makeScreenshot_s); 23 23 24 24 ScreenshotManager::ScreenshotManager() -
code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc
r7207 r7219 50 50 { 51 51 52 SetConsoleCommand(SkyboxGenerator, createSkybox, true);52 _SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut(); 53 53 54 54 ManageScopedSingleton(SkyboxGenerator, ScopeID::Graphics, false); … … 79 79 if(!this->captionsRemoved_) 80 80 { 81 CommandExecutor::execute(" setGametypeStatusfalse");81 CommandExecutor::execute("GametypeStatus displayCaption false"); 82 82 this->captionsRemoved_ = true; 83 83 return; … … 145 145 takeScreenshot_ = false; 146 146 CommandExecutor::execute("pause"); 147 CommandExecutor::execute(" setGametypeStatustrue");147 CommandExecutor::execute("GametypeStatus displayCaption true"); 148 148 this->captionsRemoved_ = false; 149 149 } -
code/branches/consolecommands3/src/modules/objects/triggers/Trigger.cc
r7204 r7219 38 38 { 39 39 40 SetConsoleCommand(Trigger, debugFlares, false).defaultValues(false);40 _SetConsoleCommand("Trigger", "debugFlares", &Trigger::debugFlares).defaultValues(false); 41 41 42 42 CreateFactory(Trigger); -
code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.cc
r7204 r7219 41 41 CreateFactory(GametypeStatus); 42 42 43 /*static*/ bool GametypeStatus::noCaption_s = false; 44 SetConsoleCommand(GametypeStatus, setGametypeStatus, true); 43 static const std::string __CC_GametypeStatus_name = "GametypeStatus"; 44 static const std::string __CC_displayCaption_name = "displayCaption"; 45 46 _SetConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name, &GametypeStatus::setDisplayCaption); 45 47 46 48 GametypeStatus::GametypeStatus(BaseObject* creator) : OverlayText(creator) … … 49 51 50 52 this->owner_ = 0; 53 this->bNoCaption_ = false; 54 55 _ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(this); 51 56 } 52 57 53 58 GametypeStatus::~GametypeStatus() 54 59 { 60 _ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(0); 55 61 } 56 62 … … 64 70 ControllableEntity* ce = this->owner_->getControllableEntity(); 65 71 66 if (GametypeStatus::noCaption_s) // No captions are displayed.72 if (this->bNoCaption_) // No captions are displayed. 67 73 { 68 74 this->setCaption(""); … … 105 111 If true captions are displayed, if false, not. 106 112 */ 107 /*static*/ void GametypeStatus::setGametypeStatus(bool bValue)113 void GametypeStatus::setDisplayCaption(bool bValue) 108 114 { 109 GametypeStatus::noCaption_s= !bValue;115 this->bNoCaption_ = !bValue; 110 116 } 111 117 -
code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.h
r7163 r7219 46 46 virtual void changedOwner(); 47 47 48 static void setGametypeStatus(bool bValue); //!< Toggles whether the gametype status is displayed.48 void setDisplayCaption(bool bValue); //!< Toggles whether the gametype status is displayed. 49 49 50 50 private: 51 51 PlayerInfo* owner_; 52 static bool noCaption_s;52 bool bNoCaption_; 53 53 54 54 };
Note: See TracChangeset
for help on using the changeset viewer.