Properly align text in bubbles when language is RTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7426 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
73c2745cbc
commit
a774bb8a9b
@ -17,6 +17,7 @@
|
||||
|
||||
#include "guiengine/engine.hpp"
|
||||
#include "guiengine/widgets/bubble_widget.hpp"
|
||||
|
||||
#include <irrlicht.h>
|
||||
using namespace irr::core;
|
||||
using namespace irr::gui;
|
||||
@ -41,6 +42,8 @@ void BubbleWidget::add()
|
||||
EGUI_ALIGNMENT align = EGUIA_UPPERLEFT;
|
||||
if (m_properties[PROP_TEXT_ALIGN] == "center") align = EGUIA_CENTER;
|
||||
else if (m_properties[PROP_TEXT_ALIGN] == "right") align = EGUIA_LOWERRIGHT;
|
||||
else if (translations->isRTLLanguage()) align = EGUIA_LOWERRIGHT;
|
||||
|
||||
EGUI_ALIGNMENT valign = EGUIA_CENTER ; //TODO: make label v-align configurable through XML file?
|
||||
|
||||
IGUIStaticText* irrwidget;
|
||||
|
Loading…
Reference in New Issue
Block a user