(svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways)

This commit is contained in:
rubidium
2009-03-25 01:10:24 +00:00
parent 4a500bbcdb
commit 3e93f8adda
4 changed files with 16 additions and 13 deletions

View File

@@ -87,10 +87,13 @@ void DrawSprite(SpriteID img, SpriteID pal, int x, int y, const SubSprite *sub =
/** How to align the to-be drawn text. */
enum StringAlignment {
SA_LEFT, ///< Left align the text
SA_CENTER, ///< Center the text
SA_RIGHT, ///< Right align the text
SA_LEFT, ///< Left align the text
SA_CENTER, ///< Center the text
SA_RIGHT, ///< Right align the text
SA_MASK = 3, ///< Mask for base alignment
SA_FORCE = 4, ///< Force the alignment, i.e. don't swap for RTL languages.
};
DECLARE_ENUM_AS_BIT_SET(StringAlignment);
int DrawString(int left, int right, int top, const char *str, TextColour colour, StringAlignment align = SA_LEFT, bool underline = false);
int DrawString(int left, int right, int top, StringID str, TextColour colour, StringAlignment align = SA_LEFT, bool underline = false);