- Timestamp:
- Dec 15, 2010, 10:59:10 AM (14 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/data/gui/schemes/OrxonoxHUDWidgets.scheme
r7759 r7760 1 1 <?xml version="1.0" ?> 2 <GUIScheme Name="Orxonox LookHUDWidgets">2 <GUIScheme Name="OrxonoxHUDWidgets"> 3 3 <WindowAlias Alias="HUDWidgets/StaticImage" Target="OrxonoxLook/StaticImage" /> 4 4 <WindowAlias Alias="HUDWidgets/StaticText" Target="OrxonoxLook/StaticText" /> -
code/branches/presentation/data/gui/schemes/OrxonoxMenuWidgets.scheme
r7759 r7760 1 1 <?xml version="1.0" ?> 2 <GUIScheme Name="Orxonox LookMenuWidgets">2 <GUIScheme Name="OrxonoxMenuWidgets"> 3 3 <WindowAlias Alias="MenuWidgets/StaticImage" Target="OrxonoxLook/StaticImage" /> 4 4 <WindowAlias Alias="MenuWidgets/StaticText" Target="OrxonoxLook/StaticText" /> -
code/branches/presentation/data/gui/scripts/InitialiseGUI.lua
r7734 r7760 5 5 winMgr = CEGUI.WindowManager:getSingleton() 6 6 7 local scheme = orxonox.CommandExecutor:query("getConfig GUIManager guiScheme_") 7 8 -- Load all required skins 8 schemeMgr:loadScheme("TaharezGreenLook.scheme")9 --schemeMgr:loadScheme("OrxonoxLook.scheme")9 --schemeMgr:loadScheme("TaharezGreenLook.scheme") 10 schemeMgr:loadScheme(scheme .. "Look.scheme") 10 11 --schemeMgr:loadScheme("TaharezLook.scheme") 11 12 --schemeMgr:loadScheme("WindowsLook.scheme") … … 16 17 -- By loading a different file (if there is) you can change the skin 17 18 -- of the menus or the HUD independently 18 schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme")19 menuImageSet = "TaharezGreenLook"20 schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme")21 hudImageSet = "TaharezGreenLook"22 --schemeMgr:loadScheme("OrxonoxLookMenuWidgets.scheme")23 --menuImageSet = "OrxonoxLook"24 --schemeMgr:loadScheme("OrxonoxLookHUDWidgets.scheme")25 --hudImageSet = "OrxonoxLook"19 --schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme") 20 --menuImageSet = "TaharezGreenLook" 21 --schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme") 22 --hudImageSet = "TaharezGreenLook" 23 schemeMgr:loadScheme(scheme .. "MenuWidgets.scheme") 24 menuImageSet = scheme .. "Look" 25 schemeMgr:loadScheme(scheme .. "HUDWidgets.scheme") 26 hudImageSet = scheme .. "Look" 26 27 27 28 -- Just a remaining test hack -
code/branches/presentation/src/libraries/core/GUIManager.cc
r7709 r7760 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/branches/presentation/src/libraries/core/GUIManager.h
r7648 r7760 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.