Mercurial > fife-parpg
comparison engine/core/gui/widgets/clicklabel.cpp @ 255:51cc05d862f2
Merged editor_rewrite branch to trunk.
This contains changes that may break compatibility against existing clients.
For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Jun 2009 16:00:02 +0000 |
parents | 756b895e1dab |
children |
comparison
equal
deleted
inserted
replaced
254:10b5f7f36dd4 | 255:51cc05d862f2 |
---|---|
86 } | 86 } |
87 | 87 |
88 int textX = 0; | 88 int textX = 0; |
89 int textY = 0; | 89 int textY = 0; |
90 | 90 |
91 graphics->setColor(getBackgroundColor()); | |
92 graphics->fillRectangle(Rectangle(1, 1, getDimension().width-1, getHeight() - 1)); | |
91 if (mGuiFont) { | 93 if (mGuiFont) { |
92 if( isTextWrapping() ) { | 94 if( isTextWrapping() ) { |
93 mGuiFont->drawMultiLineString(graphics, mWrappedText, textX, textY); | 95 mGuiFont->drawMultiLineString(graphics, mWrappedText, textX, textY); |
94 } else { | 96 } else { |
95 mGuiFont->drawMultiLineString(graphics, mCaption, textX, textY); | 97 mGuiFont->drawMultiLineString(graphics, mCaption, textX, textY); |