Changeset 7801 for code/trunk/src/libraries/core
- Timestamp:
- Dec 22, 2010, 7:24:24 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GUIManager.cc
r7709 r7801 59 59 #include "util/Exception.h" 60 60 #include "util/OrxAssert.h" 61 #include "ConfigValueIncludes.h" 61 62 #include "Core.h" 63 #include "CoreIncludes.h" 62 64 #include "GraphicsManager.h" 63 65 #include "LuaState.h" … … 100 102 101 103 GUIManager* GUIManager::singletonPtr_s = 0; 104 /*static*/ const std::string GUIManager::defaultScheme_ = "TaharezGreen"; 102 105 103 106 SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, false); … … 118 121 , camera_(NULL) 119 122 { 123 RegisterRootObject(GUIManager); 124 this->setConfigValues(); 125 120 126 using namespace CEGUI; 121 127 … … 175 181 GUIManager::~GUIManager() 176 182 { 183 } 184 185 void GUIManager::setConfigValues(void) 186 { 187 SetConfigValue(guiScheme_, GUIManager::defaultScheme_) .description("Changes the current GUI scheme.") .callback(this, &GUIManager::changedGUIScheme); 188 } 189 190 void GUIManager::changedGUIScheme(void) 191 { 192 177 193 } 178 194 -
code/trunk/src/libraries/core/GUIManager.h
r7648 r7801 49 49 #include "util/Singleton.h" 50 50 #include "input/InputHandler.h" 51 #include "OrxonoxClass.h" 51 52 52 53 // Tolua includes (have to be relative to the current directory) … … 70 71 */ 71 72 class _CoreExport GUIManager // tolua_export 72 : public Singleton<GUIManager>, public InputHandler 73 : public Singleton<GUIManager>, public InputHandler, public OrxonoxClass 73 74 { // tolua_export 74 75 friend class Singleton<GUIManager>; … … 76 77 GUIManager(const std::pair<int, int>& mousePosition); 77 78 ~GUIManager(); 79 80 void setConfigValues(void); 81 void changedGUIScheme(void); 78 82 79 83 void preUpdate(const Clock& time); … … 143 147 static GUIManager* singletonPtr_s; //!< Singleton reference to GUIManager 144 148 149 // The used CEGUI scheme. 150 static const std::string defaultScheme_; 151 std::string guiScheme_; 152 145 153 }; // tolua_export 146 154 } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.