summaryrefslogtreecommitdiff
path: root/src/framerate_gui.cpp
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/framerate_gui.cpp
parent0bca1c53c96a5ba69f81906b3d459a0682bd8111 (diff)
downloadopenttd-8975318286cd4d7c3da768331987bbf8375394e5.tar.xz
Fix 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad: Expose widgets and windows to scripts and fix documentation.
Diffstat (limited to 'src/framerate_gui.cpp')
-rw-r--r--src/framerate_gui.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/framerate_gui.cpp b/src/framerate_gui.cpp
index 0d6cc55c5..021958d32 100644
--- a/src/framerate_gui.cpp
+++ b/src/framerate_gui.cpp
@@ -19,6 +19,8 @@
#include "console_func.h"
#include "console_type.h"
+#include "widgets/framerate_widget.h"
+
namespace {
@@ -233,17 +235,6 @@ void PerformanceAccumulator::Reset(PerformanceElement elem)
void ShowFrametimeGraphWindow(PerformanceElement elem);
-enum FramerateWindowWidgets {
- WID_FRW_CAPTION,
- WID_FRW_RATE_GAMELOOP,
- WID_FRW_RATE_DRAWING,
- WID_FRW_RATE_FACTOR,
- WID_FRW_INFO_DATA_POINTS,
- WID_FRW_TIMES_NAMES,
- WID_FRW_TIMES_CURRENT,
- WID_FRW_TIMES_AVERAGE,
-};
-
static const NWidgetPart _framerate_window_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
@@ -487,11 +478,6 @@ static WindowDesc _framerate_display_desc(
);
-enum FrametimeGraphWindowWidgets {
- WID_FGW_CAPTION,
- WID_FGW_GRAPH,
-};
-
static const NWidgetPart _frametime_graph_window_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),