Changeset - r20360:48dc6dbbfcb1
[Not reviewed]
master
0 2 0
fonsinchen - 11 years ago 2013-06-09 13:24:26
fonsinchen@openttd.org
(svn r25373) -Add: squirrel bindings for cargodist-specific widgets
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/script/api/game/game_window.hpp.sq
Show inline comments
 
@@ -1054,6 +1054,10 @@ void SQGSWindow_Register(Squirrel *engin
 
	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");
src/script/api/script_window.hpp
Show inline comments
 
@@ -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.
0 comments (0 inline, 0 general)