Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2007, 1:30:44 AM (18 years ago)
Author:
patrick
Message:

blinki patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/questGUI/quest_gui.cc

    r10491 r10492  
    5959#include "script_class.h"
    6060CREATE_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))
    6364                       );
    6465
     
    8081
    8182  this->myQuest = new Quest(root);
     83
    8284  if(root)
    8385    this->loadParams( root);
     
    109111 * initializes the gui
    110112 */
    111 void QuestGUI::guiInit()
    112 {
     113void QuestGUI::startGUI()
     114{
     115  this->bKillGui = false;
     116
     117
    113118  if (questBox == NULL)
    114119  {
     
    119124    questBox->setBorderBottom(10);
    120125    this->questBox->setBackgroundTexture("textures/gui/gui_quest_border.png");
    121     this->bKillGui = false;
    122126
    123127    OrxGui::GLGuiBox* headerBox = new OrxGui::GLGuiBox(OrxGui::Horizontal);
     
    243247    OrxGui::GLGuiHandler::getInstance()->activateCursor();
    244248  }
    245   else
    246   {
     249}
     250
     251void QuestGUI::stopGUI()
     252{
    247253    this->bKillGui = true;
    248   }
    249 
    250254}
    251255
     
    278282  this->questBox = NULL;
    279283  this->bKillGui = false;
    280 }
     284  this->bActive = false;
     285}
Note: See TracChangeset for help on using the changeset viewer.