summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2013-03-17 15:41:40 +0000
committeralberth <alberth@openttd.org>2013-03-17 15:41:40 +0000
commit15ec6e26f0ee98a3c8f53cdd7b146e3708467d18 (patch)
tree6a06f7426f12a99e8f42472ec00cc4eb6d4c27b0 /src/script
parentb09743f3e88ea87e0767390a1e6aeb481a7e59e7 (diff)
downloadopenttd-15ec6e26f0ee98a3c8f53cdd7b146e3708467d18.tar.xz
(svn r25094) -Feature: Introduce dropdown for selecting the sort criterion in the town directory window (sbr)
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/game/game_window.hpp.sq4
-rw-r--r--src/script/api/script_window.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/script/api/game/game_window.hpp.sq b/src/script/api/game/game_window.hpp.sq
index 057af86ed..bed536259 100644
--- a/src/script/api/game/game_window.hpp.sq
+++ b/src/script/api/game/game_window.hpp.sq
@@ -1163,8 +1163,8 @@ void SQGSWindow_Register(Squirrel *engine)
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TE_MUSIC_SOUND, "WID_TE_MUSIC_SOUND");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TE_HELP, "WID_TE_HELP");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TE_SWITCH_BAR, "WID_TE_SWITCH_BAR");
- SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_SORT_NAME, "WID_TD_SORT_NAME");
- SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_SORT_POPULATION, "WID_TD_SORT_POPULATION");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_SORT_ORDER, "WID_TD_SORT_ORDER");
+ SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_SORT_CRITERIA, "WID_TD_SORT_CRITERIA");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_LIST, "WID_TD_LIST");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_SCROLLBAR, "WID_TD_SCROLLBAR");
SQGSWindow.DefSQConst(engine, ScriptWindow::WID_TD_WORLD_POPULATION, "WID_TD_WORLD_POPULATION");
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index a59013b36..0972fee9c 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -2342,8 +2342,8 @@ public:
/* automatically generated from ../../widgets/town_widget.h */
/** Widgets of the #TownDirectoryWindow class. */
enum TownDirectoryWidgets {
- WID_TD_SORT_NAME = ::WID_TD_SORT_NAME, ///< Sort by town name.
- WID_TD_SORT_POPULATION = ::WID_TD_SORT_POPULATION, ///< Sort by town population.
+ WID_TD_SORT_ORDER = ::WID_TD_SORT_ORDER, ///< Direction of sort dropdown.
+ WID_TD_SORT_CRITERIA = ::WID_TD_SORT_CRITERIA, ///< Criteria of sort dropdown.
WID_TD_LIST = ::WID_TD_LIST, ///< List of towns.
WID_TD_SCROLLBAR = ::WID_TD_SCROLLBAR, ///< Scrollbar for the town list.
WID_TD_WORLD_POPULATION = ::WID_TD_WORLD_POPULATION, ///< The world's population.