summaryrefslogtreecommitdiff
path: root/src/script/api/script_window.hpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-06-08 12:37:36 +0000
committerzuu <zuu@openttd.org>2013-06-08 12:37:36 +0000
commit059eee93fc45b30d46698b094f87909eb54ff8c6 (patch)
treee7fe4a153f518254e2a292dbb68866ce3112d1c1 /src/script/api/script_window.hpp
parent478fcadd21936412332717b0f1eab564e8e88eaa (diff)
downloadopenttd-059eee93fc45b30d46698b094f87909eb54ff8c6.tar.xz
(svn r25331) -Fix (r25263): Update ScriptWindow with link graph widgets
Diffstat (limited to 'src/script/api/script_window.hpp')
-rw-r--r--src/script/api/script_window.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 954d9300f..1fae2bfae 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -68,6 +68,7 @@
#include "../../widgets/vehicle_widget.h"
#include "../../widgets/viewport_widget.h"
#include "../../widgets/waypoint_widget.h"
+#include "../../widgets/link_graph_legend_widget.h"
/**
* Class that handles window interaction. A Window in OpenTTD has two imporant
@@ -745,6 +746,12 @@ public:
*/
WC_SPRITE_ALIGNER = ::WC_SPRITE_ALIGNER,
+ /**
+ * Linkgraph legend; Window numbers:
+ * - 0 = #LinkGraphWidgets
+ */
+ WC_LINKGRAPH_LEGEND = ::WC_LINKGRAPH_LEGEND,
+
WC_INVALID = ::WC_INVALID, ///< Invalid window.
};
@@ -1483,6 +1490,25 @@ public:
WID_SGI_EXIT = ::WID_SGI_EXIT, ///< Exit button.
};
+ /* automatically generated from ../../widgets/link_graph_legend_widget.h */
+ /** Widgets of the WC_LINKGRAPH_LEGEND. */
+ enum LinkGraphLegendWidgets {
+ WID_LGL_CAPTION = ::WID_LGL_CAPTION, ///< Caption widget.
+ WID_LGL_SATURATION = ::WID_LGL_SATURATION, ///< Saturation legend.
+ WID_LGL_SATURATION_FIRST = ::WID_LGL_SATURATION_FIRST,
+ WID_LGL_SATURATION_LAST = ::WID_LGL_SATURATION_LAST,
+ WID_LGL_COMPANIES = ::WID_LGL_COMPANIES, ///< Company selection widget.
+ WID_LGL_COMPANY_FIRST = ::WID_LGL_COMPANY_FIRST,
+ WID_LGL_COMPANY_LAST = ::WID_LGL_COMPANY_LAST,
+ WID_LGL_COMPANIES_ALL = ::WID_LGL_COMPANIES_ALL,
+ WID_LGL_COMPANIES_NONE = ::WID_LGL_COMPANIES_NONE,
+ WID_LGL_CARGOES = ::WID_LGL_CARGOES, ///< Cargo selection widget.
+ WID_LGL_CARGO_FIRST = ::WID_LGL_CARGO_FIRST,
+ WID_LGL_CARGO_LAST = ::WID_LGL_CARGO_LAST,
+ WID_LGL_CARGOES_ALL = ::WID_LGL_CARGOES_ALL,
+ WID_LGL_CARGOES_NONE = ::WID_LGL_CARGOES_NONE,
+ };
+
/* automatically generated from ../../widgets/main_widget.h */
/** Widgets of the #MainWindow class. */
enum MainWidgets {
@@ -2141,11 +2167,13 @@ public:
WID_SM_MAP_BORDER = ::WID_SM_MAP_BORDER, ///< Border around the smallmap.
WID_SM_MAP = ::WID_SM_MAP, ///< Panel containing the smallmap.
WID_SM_LEGEND = ::WID_SM_LEGEND, ///< Bottom panel to display smallmap legends.
+ WID_SM_BLANK = ::WID_SM_BLANK, ///< Empty button as placeholder.
WID_SM_ZOOM_IN = ::WID_SM_ZOOM_IN, ///< Button to zoom in one step.
WID_SM_ZOOM_OUT = ::WID_SM_ZOOM_OUT, ///< Button to zoom out one step.
WID_SM_CONTOUR = ::WID_SM_CONTOUR, ///< Button to select the contour view (height map).
WID_SM_VEHICLES = ::WID_SM_VEHICLES, ///< Button to select the vehicles view.
WID_SM_INDUSTRIES = ::WID_SM_INDUSTRIES, ///< Button to select the industries view.
+ WID_SM_LINKSTATS = ::WID_SM_LINKSTATS, ///< Button to select the link stats view.
WID_SM_ROUTES = ::WID_SM_ROUTES, ///< Button to select the routes view.
WID_SM_VEGETATION = ::WID_SM_VEGETATION, ///< Button to select the vegetation view.
WID_SM_OWNERS = ::WID_SM_OWNERS, ///< Button to select the owners view.