Changeset 8862
- Timestamp:
- Aug 23, 2011, 3:05:58 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/GUISheet.lua
r8079 r8862 76 76 77 77 -- Also load additional sheets to avoid display lags 78 if self.loadAlong then78 if self.loadAlong and orxonox.GUIManager:preloadMenuSheets() then 79 79 for k, sheet in pairs(self.loadAlong) do 80 80 loadSheet(sheet) -
code/trunk/src/libraries/core/GUIManager.cc
r8861 r8862 371 371 SetConfigValue(guiScheme_, GUIManager::defaultScheme_).description("Changes the current GUI scheme.").callback(this, &GUIManager::changedGUIScheme); 372 372 SetConfigValue(numScrollLines_, 1).description("How many lines to scroll in a list if the scroll wheel is used"); 373 SetConfigValue(bPreloadMenuSheets_, false).description("Pre-load menu sheets during startup"); 374 373 375 SetConfigValueExternal(outputLevelCeguiLog_, BaseWriter::getConfigurableSectionName(), "outputLevelCeguiLog", CEGUI::Standard).description("The log level of the CEGUI log file").callback(this, &GUIManager::changedCeguiOutputLevel); 374 376 } -
code/trunk/src/libraries/core/GUIManager.h
r8858 r8862 111 111 void setBackgroundImage(const std::string& image); 112 112 113 static bool preloadMenuSheets() { return GUIManager::getInstance().bPreloadMenuSheets_; } // tolua_export 113 114 static bool inDevMode(void); // tolua_export 114 115 … … 200 201 bool oldCEGUI_; 201 202 202 int numScrollLines_; ///< How many lines to scroll in a list if the scroll wheel is used 203 int numScrollLines_; ///< How many lines to scroll in a list if the scroll wheel is used 204 bool bPreloadMenuSheets_; ///< If true, menu sheets are pre-loaded during startup 203 205 204 206 }; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.