From fb892f4b2060344b1ca1dbcb9b120aa628fc4785 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 25 Nov 2012 15:24:02 +0000 Subject: (svn r24763) -Feature: Add industry type and cargo dropdown selection for easier navigating in the industry chain window. --- src/script/api/game/game_window.hpp.sq | 2 ++ src/script/api/script_window.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/script/api') 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 */ -- cgit v1.2.3-54-g00ecf