diff options
author | frosch <frosch@openttd.org> | 2017-02-26 19:40:53 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-26 19:40:53 +0000 |
commit | a56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8 (patch) | |
tree | 921d348a0938d086c0b7036bedc1e84df7264316 /src/strings_type.h | |
parent | f4da8ece0ce02d6fe3dac6f8adc147e8a3d095a3 (diff) | |
download | openttd-a56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8.tar.xz |
(svn r27756) -Codechange: Add StringTab enum
Diffstat (limited to 'src/strings_type.h')
-rw-r--r-- | src/strings_type.h | 18 |
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 */ |