Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8825 for code/branches/output


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.

Location:
code/branches/output
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/data/overlays/debug.oxo

    r8706 r8825  
    4040<Template name="defaultHUD">
    4141  <OverlayGroup name = "defaultHUD" scale = "1, 1">
    42     <ChatOverlay
    43      name     = "chat"
    44      position = "0.03, 0.08"
    45      font     = "VeraMono"
    46      caption  = ""
    47      textsize = 0.025
    48     />
    49 
    5042    <KillMessage
    5143     name     = "killmessage"
     
    8476    />
    8577
     78    <ChatOverlay
     79     name     = "chat"
     80     position = "0.03, 0.08"
     81     font     = "VeraMono"
     82     caption  = ""
     83     textsize = 0.025
     84    />
     85
    8686  </OverlayGroup>
    8787</Template>
  • 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.