summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-11-25 15:24:02 +0000
committeralberth <alberth@openttd.org>2012-11-25 15:24:02 +0000
commitfb892f4b2060344b1ca1dbcb9b120aa628fc4785 (patch)
treee2a734f9c08ae6ab494c55d2dfb58db31fce05f4 /src/script/api
parente67c717c2f167e5763ebc8dc730d8681ea768e6e (diff)
downloadopenttd-fb892f4b2060344b1ca1dbcb9b120aa628fc4785.tar.xz
(svn r24763) -Feature: Add industry type and cargo dropdown selection for easier navigating in the industry chain window.
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/game/game_window.hpp.sq2
-rw-r--r--src/script/api/script_window.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/script/api/game/game_window.hpp.sq b/src/script/api/game/game_window.hpp.sq
index c438c610e..c175fda6b 100644
--- a/src/script/api/game/game_window.hpp.sq
+++ b/src/script/api/game/game_window.hpp.sq
@@ -564,6 +564,8 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_IC_NOTIFY, "WID_IC_NOTIFY");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_IC_PANEL, "WID_IC_PANEL");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_IC_SCROLLBAR, "WID_IC_SCROLLBAR");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_IC_CARGO_DROPDOWN, "WID_IC_CARGO_DROPDOWN");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_IC_IND_DROPDOWN, "WID_IC_IND_DROPDOWN");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SGI_GENERATE_GAME, "WID_SGI_GENERATE_GAME");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SGI_LOAD_GAME, "WID_SGI_LOAD_GAME");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SGI_PLAY_SCENARIO, "WID_SGI_PLAY_SCENARIO");
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 18c6449ed..bfe0f81e8 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -1458,6 +1458,8 @@ public:
WID_IC_NOTIFY = ::WID_IC_NOTIFY, ///< Row of buttons at the bottom.
WID_IC_PANEL = ::WID_IC_PANEL, ///< Panel that shows the chain.
WID_IC_SCROLLBAR = ::WID_IC_SCROLLBAR, ///< Scrollbar of the panel.
+ WID_IC_CARGO_DROPDOWN = ::WID_IC_CARGO_DROPDOWN, ///< Select cargo dropdown.
+ WID_IC_IND_DROPDOWN = ::WID_IC_IND_DROPDOWN, ///< Select industry dropdown.
};
/* automatically generated from ../../widgets/intro_widget.h */