Fixed possible text overlap on bottom of bubbles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
f1bafb4a04
commit
65a0722835
@ -1683,6 +1683,7 @@ void Skin::draw3DSunkenPane (IGUIElement *element, video::SColor bgcolor, bool f
|
||||
|
||||
// minor adjustments...
|
||||
rect2.UpperLeftCorner.X -= 7;
|
||||
rect2.LowerRightCorner.Y += 7;
|
||||
rect2.LowerRightCorner.X += BUBBLE_MARGIN_ON_RIGHT;
|
||||
|
||||
if (bubble->isFocusedForPlayer(PLAYER_ID_GAME_MASTER))
|
||||
|
@ -26,6 +26,8 @@ using namespace irr;
|
||||
|
||||
using namespace GUIEngine;
|
||||
|
||||
const int BOTTOM_MARGIN = 10;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
BubbleWidget::BubbleWidget() : Widget(WTYPE_BUBBLE)
|
||||
@ -47,9 +49,12 @@ void BubbleWidget::add()
|
||||
|
||||
EGUI_ALIGNMENT valign = EGUIA_CENTER ; //TODO: make label v-align configurable through XML file?
|
||||
|
||||
m_shrinked_size.LowerRightCorner.Y -= BOTTOM_MARGIN;
|
||||
|
||||
IGUIStaticText* irrwidget;
|
||||
irrwidget = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), m_shrinked_size,
|
||||
false, true /* word wrap */, m_parent, (m_focusable ? getNewID() : getNewNoFocusID()));
|
||||
false, true /* word wrap */, m_parent,
|
||||
(m_focusable ? getNewID() : getNewNoFocusID()));
|
||||
|
||||
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
|
||||
irrwidget->setRightToLeft( translations->isRTLLanguage() );
|
||||
|
Loading…
Reference in New Issue
Block a user