Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 6, 2011, 11:07:35 AM (13 years ago)
Author:
landauf
Message:

There's a bug in ogre 1.7 (?) causing the first text overlay with a specific font not being shown (until the caption is changed or the window resized). As a result, the "Frames per second" text is not visible in the debug overlay and chat is only visible after the 2nd line of chat is printed. I don't care about the first problem, but I "fixed" the second problem by making the chat overlay not the first element in the XML template. Now DeathMessage is first, but that's fine because its caption is set at a later point when it will work anyway.

Also reordered the chat messages in the chat overlay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/modules/overlays/hud/ChatOverlay.cc

    r8822 r8825  
    109109        this->text_->setCaption("");
    110110
    111         for (std::list<Ogre::DisplayString>::reverse_iterator it = this->messages_.rbegin(); it != this->messages_.rend(); ++it)
     111        for (std::list<Ogre::DisplayString>::iterator it = this->messages_.begin(); it != this->messages_.end(); ++it)
    112112        {
    113113            this->text_->setCaption(this->text_->getCaption() + "\n" + (*it));
Note: See TracChangeset for help on using the changeset viewer.