Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2287


Ignore:
Timestamp:
Nov 26, 2008, 7:17:08 PM (15 years ago)
Author:
dafrick
Message:

Fixed a stupid bug…

Location:
code/branches/questsystem3/src/orxonox/overlays/notifications
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem3/src/orxonox/overlays/notifications/NotificationManager.cc

    r2285 r2287  
    104104                continue;
    105105           
     106            COUT(3) << "Update, title: " << container->notification->getTitle() << ", message: " << container->notification->getMessage() << std::endl;
     107           
    106108            text = text + "\n\n\n------------" + container->notification->getTitle(); + "\n\n" + container->notification->getMessage();
    107109        }
  • code/branches/questsystem3/src/orxonox/overlays/notifications/NotificationQueue.cc

    r2285 r2287  
    3737namespace orxonox {
    3838
    39     NotificationQueue* NotificationQueue::queue_s;
     39    NotificationQueue* NotificationQueue::queue_s = 0;
    4040   
    4141    CreateFactory(NotificationQueue);
     
    7070    {
    7171        NotificationManager::tick(dt);
     72       
     73        update();
    7274    }
    7375   
     
    8486    void NotificationQueue::setQueueText(const std::string & text)
    8587    {
    86         COUT(3) << text << std::endl;
    8788        this->queueText_ = text;
    8889    }
     
    9091    void NotificationQueue::update(void)
    9192    {
    92         //TDO UTF string
    9393        this->text_->setCaption(queueText_);
    9494    }
  • code/branches/questsystem3/src/orxonox/overlays/notifications/NotificationQueue.h

    r2286 r2287  
    5252            virtual ~NotificationQueue();
    5353           
    54             static NotificationQueue* queue_s;
     54            static NotificationQueue* queue_s; //TDO Singleton? oder im level.
    5555           
    5656            virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
Note: See TracChangeset for help on using the changeset viewer.