Fix 2a868b9f3b
: Expose widgets and windows to scripts and fix documentation.
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user