Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8613 in orxonox.OLD


Ignore:
Timestamp:
Jun 20, 2006, 11:16:38 AM (18 years ago)
Author:
bensch
Message:

gui: text animates again

Location:
branches/gui/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/text_engine/limited_width_text.cc

    r8543 r8613  
    133133        {
    134134          this->_dotedText = this->text().substr(0, i) + "...";
     135          if (i > 0)
     136            width -= this->font()->getGlyphArray()[this->text()[i-1]]->advance;
    135137          width += dotsSize;
    136138          break;
     
    149151        {
    150152          this->_dotedText = std::string("...") + this->text().substr(i);
     153          if (i + 1 < (int)text().size() )
     154            width -= this->font()->getGlyphArray()[this->text()[i+1]]->advance;
    151155          width += dotsSize;
    152156          break;
  • branches/gui/src/lib/gui/gl/glgui_inputline.cc

    r8598 r8613  
    122122    this->resize();
    123123    this->setFrontColor(Color(1,1,1,1), true);
    124     this->setFrontColor(Color(0,1,0,1));
    125124    emit(this->textChanged(this->_text.text()));
    126125  }
Note: See TracChangeset for help on using the changeset viewer.