summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-06-09 13:37:04 +0000
committerzuu <zuu@openttd.org>2013-06-09 13:37:04 +0000
commita724a9924bb4b489370befce7dcf3c3a39c310bb (patch)
tree2b0ad43413ed781b6b39a6db02119431b88ac32d /src/script
parentf9b08b1aecd1ba492125ddadc87ac8836c9fd8eb (diff)
downloadopenttd-a724a9924bb4b489370befce7dcf3c3a39c310bb.tar.xz
(svn r25376) -Feature: Allow access to goal list and story book of other companies than your own
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/game/game_window.hpp.sq3
-rw-r--r--src/script/api/script_window.hpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/script/api/game/game_window.hpp.sq b/src/script/api/game/game_window.hpp.sq
index d591f611a..750f70256 100644
--- a/src/script/api/game/game_window.hpp.sq
+++ b/src/script/api/game/game_window.hpp.sq
@@ -495,6 +495,7 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GP_PROGRESS_BAR, "WID_GP_PROGRESS_BAR");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GP_PROGRESS_TEXT, "WID_GP_PROGRESS_TEXT");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GP_ABORT, "WID_GP_ABORT");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GOAL_CAPTION, "WID_GOAL_CAPTION");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GOAL_GOAL, "WID_GOAL_GOAL");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GOAL_PROGRESS, "WID_GOAL_PROGRESS");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_GOAL_SCROLLBAR, "WID_GOAL_SCROLLBAR");
@@ -1150,6 +1151,8 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_STATIONS, "WID_TN_STATIONS");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_FINANCES, "WID_TN_FINANCES");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_COMPANIES, "WID_TN_COMPANIES");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_STORY, "WID_TN_STORY");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_GOAL, "WID_TN_GOAL");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_GRAPHS, "WID_TN_GRAPHS");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_LEAGUE, "WID_TN_LEAGUE");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TN_INDUSTRIES, "WID_TN_INDUSTRIES");
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 3654f0fac..0d78ab5a3 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -2341,6 +2341,8 @@ public:
WID_TN_STATIONS = ::WID_TN_STATIONS, ///< Station menu.
WID_TN_FINANCES = ::WID_TN_FINANCES, ///< Finance menu.
WID_TN_COMPANIES = ::WID_TN_COMPANIES, ///< Company menu.
+ WID_TN_STORY = ::WID_TN_STORY, ///< Story menu.
+ WID_TN_GOAL = ::WID_TN_GOAL, ///< Goal menu.
WID_TN_GRAPHS = ::WID_TN_GRAPHS, ///< Graph menu.
WID_TN_LEAGUE = ::WID_TN_LEAGUE, ///< Company league menu.
WID_TN_INDUSTRIES = ::WID_TN_INDUSTRIES, ///< Industry menu.