summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Josep <juanjo.ng.83@gmail.com>2018-12-27 09:53:55 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2018-12-27 09:53:55 +0100
commit8890926b0d1069aec7ef53fd84868a7a3ca02c05 (patch)
tree07180f678229d285a2c9d66c0bf73e8a603e0196
parent65bc7123d19b2be5e1efba0d65c208cd63d0bd80 (diff)
downloadopenttd-8890926b0d1069aec7ef53fd84868a7a3ca02c05.tar.xz
Fix #6974: Add save-load filter widget to api
-rw-r--r--src/script/api/game/game_window.hpp.sq1
-rw-r--r--src/script/api/script_window.hpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/script/api/game/game_window.hpp.sq b/src/script/api/game/game_window.hpp.sq
index 7ce2c7029..9fc9526cc 100644
--- a/src/script/api/game/game_window.hpp.sq
+++ b/src/script/api/game/game_window.hpp.sq
@@ -438,6 +438,7 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_CAPTION, "WID_SL_CAPTION");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_SORT_BYNAME, "WID_SL_SORT_BYNAME");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_SORT_BYDATE, "WID_SL_SORT_BYDATE");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_FILTER, "WID_SL_FILTER");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_BACKGROUND, "WID_SL_BACKGROUND");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_FILE_BACKGROUND, "WID_SL_FILE_BACKGROUND");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_SL_HOME_BUTTON, "WID_SL_HOME_BUTTON");
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 9dcf58e05..e11742baf 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -1001,7 +1001,7 @@ public:
};
/* automatically generated from ../../widgets/cheat_widget.h */
- /** Widgets of the #CheatWindow class.. */
+ /** Widgets of the #CheatWindow class. */
enum CheatWidgets {
WID_C_PANEL = ::WID_C_PANEL, ///< Panel where all cheats are shown in.
};
@@ -1272,6 +1272,7 @@ public:
WID_SL_CAPTION = ::WID_SL_CAPTION, ///< Caption of the window.
WID_SL_SORT_BYNAME = ::WID_SL_SORT_BYNAME, ///< Sort by name button.
WID_SL_SORT_BYDATE = ::WID_SL_SORT_BYDATE, ///< Sort by date button.
+ WID_SL_FILTER = ::WID_SL_FILTER, ///< Filter list of files
WID_SL_BACKGROUND = ::WID_SL_BACKGROUND, ///< Background of window.
WID_SL_FILE_BACKGROUND = ::WID_SL_FILE_BACKGROUND, ///< Background of file selection.
WID_SL_HOME_BUTTON = ::WID_SL_HOME_BUTTON, ///< Home button.