summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-06-09 13:24:26 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-06-09 13:24:26 +0000
commit4e902f2e2021385fcf8497a555ee0617b84a0e2e (patch)
tree4008554ecf1a3fb41fe9fa1470af2182fb7fba5d /src
parenteaede14b8f2de17bb5eb32959b876c3c956590c4 (diff)
downloadopenttd-4e902f2e2021385fcf8497a555ee0617b84a0e2e.tar.xz
(svn r25373) -Add: squirrel bindings for cargodist-specific widgets
Diffstat (limited to 'src')
-rw-r--r--src/script/api/game/game_window.hpp.sq4
-rw-r--r--src/script/api/script_window.hpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/game/game_window.hpp.sq b/src/script/api/game/game_window.hpp.sq
index 36415aba3..d591f611a 100644
--- a/src/script/api/game/game_window.hpp.sq
+++ b/src/script/api/game/game_window.hpp.sq
@@ -1054,6 +1054,10 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SM_DISABLE_ALL, "WID_SM_DISABLE_ALL");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SM_SHOW_HEIGHT, "WID_SM_SHOW_HEIGHT");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_CAPTION, "WID_SV_CAPTION");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_SORT_ORDER, "WID_SV_SORT_ORDER");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_SORT_BY, "WID_SV_SORT_BY");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_GROUP, "WID_SV_GROUP");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_GROUP_BY, "WID_SV_GROUP_BY");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_WAITING, "WID_SV_WAITING");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_SCROLLBAR, "WID_SV_SCROLLBAR");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SV_ACCEPT_RATING_LIST, "WID_SV_ACCEPT_RATING_LIST");
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 3c729e50e..3654f0fac 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -2196,6 +2196,10 @@ public:
/** Widgets of the #StationViewWindow class. */
enum StationViewWidgets {
WID_SV_CAPTION = ::WID_SV_CAPTION, ///< Caption of the window.
+ WID_SV_SORT_ORDER = ::WID_SV_SORT_ORDER, ///< 'Sort order' button
+ WID_SV_SORT_BY = ::WID_SV_SORT_BY, ///< 'Sort by' button
+ WID_SV_GROUP = ::WID_SV_GROUP, ///< label for "group by"
+ WID_SV_GROUP_BY = ::WID_SV_GROUP_BY, ///< 'Group by' button
WID_SV_WAITING = ::WID_SV_WAITING, ///< List of waiting cargo.
WID_SV_SCROLLBAR = ::WID_SV_SCROLLBAR, ///< Scrollbar.
WID_SV_ACCEPT_RATING_LIST = ::WID_SV_ACCEPT_RATING_LIST, ///< List of accepted cargoes / rating of cargoes.