summaryrefslogtreecommitdiff
path: root/src/strings_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-17 17:42:51 +0000
committerrubidium <rubidium@openttd.org>2008-10-17 17:42:51 +0000
commit61546bef5ccc1091e90f2ffeb1e6bfc5055106ce (patch)
tree01b36415c49717ef5cb721a8da573f43726fd668 /src/strings_type.h
parent8ee8e0fac5cb37f4aec6ad035ce3687ca7f276fe (diff)
downloadopenttd-61546bef5ccc1091e90f2ffeb1e6bfc5055106ce.tar.xz
(svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD.
Diffstat (limited to 'src/strings_type.h')
-rw-r--r--src/strings_type.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/strings_type.h b/src/strings_type.h
index 00c7d6538..481808570 100644
--- a/src/strings_type.h
+++ b/src/strings_type.h
@@ -15,6 +15,12 @@ enum {
MAX_LANG = 64, ///< Maximal number of languages supported by the game
};
+/** Directions a text can go to */
+enum TextDirection {
+ TD_LTR, ///< Text is written left-to-right by default
+ TD_RTL, ///< Text is written right-to-left by default
+};
+
/** Information about a language */
struct Language {
char *name; ///< The internal name of the language
@@ -26,6 +32,7 @@ struct DynamicLanguages {
int num; ///< Number of languages
int curr; ///< Currently selected language index
char curr_file[MAX_PATH]; ///< Currently selected language file name without path (needed for saving the filename of the loaded language).
+ TextDirection text_dir; ///< Text direction of the currently selected language
Language ent[MAX_LANG]; ///< Information about the languages
};