Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2009, 1:34:31 PM (15 years ago)
Author:
rgrieder
Message:

Removed GUIOverlay management from GUIManager: It shouldn't be the GUIManager's responsibility to handle some overlays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/orxonox/objects/quest/QuestManager.cc

    r3325 r3337  
    3636#include "util/Exception.h"
    3737#include "core/CoreIncludes.h"
    38 #include "gui/GUIManager.h"
    3938
    4039#include "objects/infos/PlayerInfo.h"
     
    225224    QuestContainer* QuestManager::getQuestTree(std::string & name)
    226225    {
    227         GUIOverlay* gui = GUIManager::getInstance().getOverlay(name);
     226        GUIOverlay* gui = NULL;
     227        for (ObjectList<GUIOverlay>::iterator it = ObjectList<GUIOverlay>::begin(); it != ObjectList<GUIOverlay>::end(); ++it)
     228            if (it->getGUIName() == name)
     229                gui = *it;
    228230
    229231        PlayerInfo* player;
Note: See TracChangeset for help on using the changeset viewer.