summaryrefslogtreecommitdiff
path: root/src/strings_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-02-26 19:40:53 +0000
committerfrosch <frosch@openttd.org>2017-02-26 19:40:53 +0000
commita56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8 (patch)
tree921d348a0938d086c0b7036bedc1e84df7264316 /src/strings_type.h
parentf4da8ece0ce02d6fe3dac6f8adc147e8a3d095a3 (diff)
downloadopenttd-a56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8.tar.xz
(svn r27756) -Codechange: Add StringTab enum
Diffstat (limited to 'src/strings_type.h')
-rw-r--r--src/strings_type.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/strings_type.h b/src/strings_type.h
index 780221d0a..098d3f94d 100644
--- a/src/strings_type.h
+++ b/src/strings_type.h
@@ -26,6 +26,24 @@ enum TextDirection {
TD_RTL, ///< Text is written right-to-left by default
};
+/** StringTabs to group StringIDs */
+enum StringTab {
+ /* Tabs 0..1 for regular strings */
+ TEXT_TAB_TOWN = 4,
+ TEXT_TAB_INDUSTRY = 9,
+ TEXT_TAB_STATION = 12,
+ TEXT_TAB_SPECIAL = 14,
+ TEXT_TAB_OLD_CUSTOM = 15,
+ TEXT_TAB_VEHICLE = 16,
+ /* Tab 17 for regular strings */
+ TEXT_TAB_GAMESCRIPT = 18,
+ TEXT_TAB_OLD_NEWGRF = 26,
+ TEXT_TAB_NEWGRF1 = 28,
+ TEXT_TAB_NEWGRF2 = 29,
+ TEXT_TAB_NEWGRF3 = 30,
+ TEXT_TAB_END = 32
+};
+
/** Number of bits for the StringIndex within a StringTab */
static const uint TAB_SIZE_BITS = 11;
/** Number of strings per StringTab */