summaryrefslogtreecommitdiff
path: root/src/news.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-10 03:33:43 +0000
committerbelugas <belugas@openttd.org>2007-03-10 03:33:43 +0000
commit0a8e1aa8d6613bde711413fe62eee8810e095cf9 (patch)
tree0c6e993c6ad194d68fb860a3762613f9c52a1e5d /src/news.h
parent3e91313326bbd975a0eb85c025fb09a90eba23b3 (diff)
downloadopenttd-0a8e1aa8d6613bde711413fe62eee8810e095cf9.tar.xz
(svn r9089) -Codechange: Remove the 32 widgets limit on News Options window.
-Codechange: Use the newly created WWT_TEXT widget. -Cleanup: remove a lot of magic numbers, make the whole window more flexible, with now the possibility to easily add new type of news events. Thanks glx for ideas from an old patch
Diffstat (limited to 'src/news.h')
-rw-r--r--src/news.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/news.h b/src/news.h
index 564ebe4cb..39cab2a4f 100644
--- a/src/news.h
+++ b/src/news.h
@@ -31,16 +31,17 @@ void InitNewsItemStructs();
VARDEF NewsItem _statusbar_news_item;
enum NewsType {
- NT_ARRIVAL_PLAYER = 0,
- NT_ARRIVAL_OTHER = 1,
- NT_ACCIDENT = 2,
- NT_COMPANY_INFO = 3,
- NT_ECONOMY = 4,
- NT_ADVICE = 5,
- NT_NEW_VEHICLES = 6,
- NT_ACCEPTANCE = 7,
- NT_SUBSIDIES = 8,
- NT_GENERAL = 9,
+ NT_ARRIVAL_PLAYER,
+ NT_ARRIVAL_OTHER,
+ NT_ACCIDENT,
+ NT_COMPANY_INFO,
+ NT_ECONOMY,
+ NT_ADVICE,
+ NT_NEW_VEHICLES,
+ NT_ACCEPTANCE,
+ NT_SUBSIDIES,
+ NT_GENERAL,
+ NT_END,
};
enum NewsMode {