Changeset 10492 in orxonox.OLD for trunk/src/world_entities/questGUI/quest_gui.cc
- Timestamp:
- Jan 30, 2007, 1:30:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/questGUI/quest_gui.cc
r10491 r10492 59 59 #include "script_class.h" 60 60 CREATE_SCRIPTABLE_CLASS(QuestGUI, 61 addMethod("guiInit", Executor0<QuestGUI, lua_State*>(&QuestGUI::guiInit)) 62 ->addMethod("isActive", Executor0ret<QuestGUI, lua_State*,bool>(&QuestGUI::isActive)) 61 addMethod("startGUI", Executor0<QuestGUI, lua_State*>(&QuestGUI::startGUI)) 62 ->addMethod("stopGUI", Executor0<QuestGUI, lua_State*>(&QuestGUI::stopGUI)) 63 ->addMethod("isActive", Executor0ret<QuestGUI, lua_State*,bool>(&QuestGUI::isActive)) 63 64 ); 64 65 … … 80 81 81 82 this->myQuest = new Quest(root); 83 82 84 if(root) 83 85 this->loadParams( root); … … 109 111 * initializes the gui 110 112 */ 111 void QuestGUI::guiInit() 112 { 113 void QuestGUI::startGUI() 114 { 115 this->bKillGui = false; 116 117 113 118 if (questBox == NULL) 114 119 { … … 119 124 questBox->setBorderBottom(10); 120 125 this->questBox->setBackgroundTexture("textures/gui/gui_quest_border.png"); 121 this->bKillGui = false;122 126 123 127 OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); … … 243 247 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 244 248 } 245 else 246 { 249 } 250 251 void QuestGUI::stopGUI() 252 { 247 253 this->bKillGui = true; 248 }249 250 254 } 251 255 … … 278 282 this->questBox = NULL; 279 283 this->bKillGui = false; 280 } 284 this->bActive = false; 285 }
Note: See TracChangeset
for help on using the changeset viewer.