summaryrefslogtreecommitdiff
path: root/src/script/api/script_window.hpp
diff options
context:
space:
mode:
authorJ0an Josep <juanjo.ng.83@gmail.com>2018-07-23 14:39:13 +0200
committerMichael Lutz <michi@icosahedron.de>2018-07-23 20:32:18 +0200
commit8975318286cd4d7c3da768331987bbf8375394e5 (patch)
tree550499805f0ef6df4c750eec21b0f5691a725952 /src/script/api/script_window.hpp
parent0bca1c53c96a5ba69f81906b3d459a0682bd8111 (diff)
downloadopenttd-8975318286cd4d7c3da768331987bbf8375394e5.tar.xz
Fix 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad: Expose widgets and windows to scripts and fix documentation.
Diffstat (limited to 'src/script/api/script_window.hpp')
-rw-r--r--src/script/api/script_window.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index c2b6662fb..9dcf58e05 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -32,6 +32,7 @@
#include "../../widgets/engine_widget.h"
#include "../../widgets/error_widget.h"
#include "../../widgets/fios_widget.h"
+#include "../../widgets/framerate_widget.h"
#include "../../widgets/genworld_widget.h"
#include "../../widgets/goal_widget.h"
#include "../../widgets/graph_widget.h"
@@ -764,6 +765,18 @@ public:
*/
WC_SAVE_PRESET = ::WC_SAVE_PRESET,
+ /**
+ * Framerate display; %Window numbers:
+ * - 0 = #FramerateDisplayWidgets
+ */
+ WC_FRAMERATE_DISPLAY = ::WC_FRAMERATE_DISPLAY,
+
+ /**
+ * Frame time graph; %Window numbers:
+ * - 0 = #FrametimeGraphWindowWidgets
+ */
+ WC_FRAMETIME_GRAPH = ::WC_FRAMETIME_GRAPH,
+
WC_INVALID = ::WC_INVALID, ///< Invalid window.
};
@@ -1275,6 +1288,25 @@ public:
WID_SL_MISSING_NEWGRFS = ::WID_SL_MISSING_NEWGRFS, ///< Button to find missing NewGRFs online.
};
+ /* automatically generated from ../../widgets/framerate_widget.h */
+ /** Widgets of the #FramerateWindow class. */
+ enum FramerateWindowWidgets {
+ WID_FRW_CAPTION = ::WID_FRW_CAPTION,
+ WID_FRW_RATE_GAMELOOP = ::WID_FRW_RATE_GAMELOOP,
+ WID_FRW_RATE_DRAWING = ::WID_FRW_RATE_DRAWING,
+ WID_FRW_RATE_FACTOR = ::WID_FRW_RATE_FACTOR,
+ WID_FRW_INFO_DATA_POINTS = ::WID_FRW_INFO_DATA_POINTS,
+ WID_FRW_TIMES_NAMES = ::WID_FRW_TIMES_NAMES,
+ WID_FRW_TIMES_CURRENT = ::WID_FRW_TIMES_CURRENT,
+ WID_FRW_TIMES_AVERAGE = ::WID_FRW_TIMES_AVERAGE,
+ };
+
+ /** Widgets of the #FrametimeGraphWindow class. */
+ enum FrametimeGraphWindowWidgets {
+ WID_FGW_CAPTION = ::WID_FGW_CAPTION,
+ WID_FGW_GRAPH = ::WID_FGW_GRAPH,
+ };
+
/* automatically generated from ../../widgets/genworld_widget.h */
/** Widgets of the #GenerateLandscapeWindow class. */
enum GenerateLandscapeWidgets {