- Timestamp:
- Jul 30, 2006, 10:56:02 PM (18 years ago)
- Location:
- branches/proxy/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/Makefile.am
r9577 r9624 48 48 lib/graphics/effects/lightning_effect.cc \ 49 49 lib/graphics/effects/lense_flare.cc \ 50 \51 lib/network/monitor/network_stats_widget.cc \52 50 \ 53 51 util/multiplayer_team_deathmatch.cc \ -
branches/proxy/src/lib/gui/gl/glgui_text.cc
r9406 r9624 101 101 { 102 102 this->_text.clear(); 103 this-> changedText();103 this->resize(); 104 104 } 105 105 106 106 107 /** … … 114 115 this->setFrontColor(_changedTextColor, true); 115 116 this->textChanged.emit(this->_text.text()); 117 } 118 119 void GLGuiText::setTextSize(float size) 120 { 121 this->_text.setSize(size); 122 this->changedText(); 123 } 124 125 void GLGuiText::setFont(const Font& font) 126 { 127 GLGuiWidget::setFont(font); 128 this->_text.setFont(font); 116 129 } 117 130 -
branches/proxy/src/lib/gui/gl/glgui_text.h
r9406 r9624 31 31 void clear(); 32 32 33 void setTextSize(float size); 34 virtual void setFont(const Font& font); 33 35 void setChangedTextColor(const Color& color); 34 36 -
branches/proxy/src/lib/gui/gl/glgui_widget.cc
r9620 r9624 779 779 void GLGuiWidget::setFont(const std::string& fontName, unsigned int renderSize) 780 780 { 781 this-> _font = Font(fontName, renderSize);781 this->setFont(Font(fontName, renderSize)); 782 782 } 783 783 -
branches/proxy/src/lib/gui/gl/glgui_widget.h
r9622 r9624 206 206 void setFeaturePositionS(const std::string& featurePosition); 207 207 208 v oid setFont(const Font& font);208 virtual void setFont(const Font& font); 209 209 void setFont(const std::string& fontName, unsigned int renderSize = FONT_DEFAULT_RENDER_SIZE); 210 210 -
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9623 r9624 36 36 this->setIP(ip); 37 37 38 this->_name.setFont(ResourceManager::getInstance()->getDataDir() + "/fonts/arial.ttf"); 39 this->_ip.setFont(ResourceManager::getInstance()->getDataDir() + "fonts/arial.ttf"); 38 this->_name.setFont(Font(ResourceManager::getInstance()->getDataDir() + "/fonts/arial.ttf", 20)); 39 this->_name.setTextSize(15); 40 this->_ip.setFont(Font(ResourceManager::getInstance()->getDataDir() + "fonts/arial.ttf", 20)); 41 this->_ip.setTextSize(15); 40 42 41 43 this->pack(&this->_name);
Note: See TracChangeset
for help on using the changeset viewer.