Changeset 1588 for code/branches/hud/src/core
- Timestamp:
- Jun 11, 2008, 12:21:42 AM (16 years ago)
- Location:
- code/branches/hud/src/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/core/BaseObject.cc
r1559 r1588 66 66 67 67 /** 68 @brief load general xml paramters69 */70 void BaseObject::loadParams(TiXmlElement* xmlElem)71 {72 if (xmlElem->Attribute("name"))73 {74 this->setName(xmlElem->Attribute("name"));75 }76 }77 78 /**79 68 @brief XML loading and saving. 80 69 @param xmlelement The XML-element … … 85 74 { 86 75 XMLPortParam(BaseObject, "name", setName, getName, xmlelement, mode); 76 XMLPortParam(BaseObject, "visible", setVisibility, isVisible, xmlelement, mode); 77 XMLPortParam(BaseObject, "active", setActivity, isActive, xmlelement, mode); 87 78 } 88 79 -
code/branches/hud/src/core/BaseObject.h
r1558 r1588 52 52 BaseObject(); 53 53 virtual ~BaseObject(); 54 virtual void loadParams(TiXmlElement* xmlElem);55 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 55 -
code/branches/hud/src/core/Loader.cc
r1505 r1588 116 116 Script::run();*/ 117 117 Script* lua = Script::getInstance(); 118 lua->clearLuaOutput(); 118 119 lua->loadFile(level->getFile(), true); 119 120 lua->run(); -
code/branches/hud/src/core/Script.h
r1505 r1588 72 72 inline std::string getLuaOutput() { return output_; }; 73 73 //inline std::string* getFileString() { return &fileString_; }; 74 inline void clearLuaOutput() { output_ = ""; } 74 75 75 76 unsigned int getNextQuote(const std::string& text, unsigned int start);
Note: See TracChangeset
for help on using the changeset viewer.