Changeset 7645 for code/branches/releasetodo/src
- Timestamp:
- Nov 13, 2010, 9:10:57 PM (14 years ago)
- Location:
- code/branches/releasetodo/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/releasetodo/src/libraries/core/GUIManager.cc
r7628 r7645 438 438 } 439 439 440 /** 441 @brief 442 Subscribe the input function to the input event for the input window. 443 This is a helper to be used in lua, because subscribeScriptedEvent() doesn't work in lua. 444 @param window 445 The window for which the event is subscribed. 446 @param event 447 The type of event to which we subscribe. 448 @param function 449 The function that is called when the event occurs. 450 */ 440 451 void GUIManager::subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function) 441 452 { … … 443 454 } 444 455 456 /** 457 @brief 458 Set the input tooltip text for the input ListboxItem. 459 @param item 460 The ListboxItem for which the tooltip should be set. 461 @param tooltip 462 The tooltip text that should be set. 463 */ 445 464 void GUIManager::setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& tooltip) 446 465 { … … 448 467 } 449 468 469 /** 470 @brief 471 Set whether the tooltips for the input Listbox are enabled. 472 @param listbox 473 The Listbox for which to enable (or disable) tooltips. 474 @param enabled 475 Whether to enable or disabel the tooltips. 476 */ 450 477 void GUIManager::setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled) 451 478 { … … 453 480 } 454 481 455 456 482 } -
code/branches/releasetodo/src/orxonox/LevelInfo.cc
r7639 r7645 77 77 78 78 } 79 80 void LevelInfoItem::initializeTags(void) 79 80 /** 81 @brief 82 Initialize the set of allowed tags. 83 */ 84 /*static*/ void LevelInfoItem::initializeTags(void) 81 85 { 82 86 if(!LevelInfoItem::initialized_s) … … 87 91 LevelInfoItem::possibleTags_s.insert("showcase"); 88 92 LevelInfoItem::possibleTags_s.insert("tutorial"); 93 LevelInfoItem::possibleTags_s.insert("presentation"); 89 94 } 90 95 } -
code/branches/releasetodo/src/orxonox/LevelInfo.h
r7638 r7645 38 38 #include "OrxonoxPrereqs.h" 39 39 40 #include <map>41 40 #include <set> 42 41 #include <string> … … 121 120 private: 122 121 void tagsUpdated(void); //!< Updates the comma-seperated string of all tags, if the set of tags has changed. 123 124 static std::set<std::string> possibleTags_s; 125 static const bool initialized_s = false; 126 void initializeTags(void); 127 bool validateTag(const std::string& tag) 128 { this->initializeTags(); return LevelInfoItem::possibleTags_s.find(tag) != LevelInfoItem::possibleTags_s.end(); } 122 123 static void initializeTags(void); //!< Initialize the set of allowed tags. 124 /** 125 @brief Check whether an input tag is allowed. 126 @param tag The tag to check. 127 @return Returns true if the input tag is allowed, false if not. 128 */ 129 static bool validateTag(const std::string& tag) 130 { LevelInfoItem::initializeTags(); return LevelInfoItem::possibleTags_s.find(tag) != LevelInfoItem::possibleTags_s.end(); } 131 132 static std::set<std::string> possibleTags_s; //!< The set of allowed tags. 133 static const bool initialized_s = false; //!< Whether the set of allowed tags has been inizialized. 129 134 130 135 std::string name_; //!< The name of the Level. … … 140 145 - @b name The name of the level. 141 146 - @b description The description of the level. 142 - @b tags A comma-seperated string of tags. 147 - @b tags A comma-seperated string of tags. Allowed tags are: <em>test</em>, <em>singleplayer</em>, <em>multiplayer</em>, <em>showcase</em>, <em>tutorial</em>, <em>presentation</em>. 143 148 144 149 An example would be:
Note: See TracChangeset
for help on using the changeset viewer.