Etterna
0.74.4
Loading...
Searching...
No Matches
src
Etterna
Screen
Others
ScreenStatsOverlay.h
1
/* ScreenStatsOverlay - credits and statistics drawn on top of everything else.
2
*/
3
4
#ifndef ScreenStatsOverlay_H
5
#define ScreenStatsOverlay_H
6
7
#include "Etterna/Actor/Base/BitmapText.h"
8
#include "Etterna/Actor/Base/Quad.h"
9
#include "Screen.h"
10
#include <chrono>
11
12
const
int
NUM_SKIPS_TO_SHOW = 5;
13
14
class
ScreenStatsOverlay
:
public
Screen
15
{
16
public
:
17
void
Init
()
override
;
18
19
void
Update(
float
fDeltaTime)
override
;
20
21
private
:
22
void
AddTimestampLine(
const
std::string& txt,
const
RageColor
& color);
23
void
UpdateSkips();
24
25
BitmapText
m_textStats;
26
Quad
m_quadStatBackground;
27
Quad
m_quadSkipBackground;
28
BitmapText
m_textSkips[NUM_SKIPS_TO_SHOW];
29
std::chrono::steady_clock::time_point g_AccurateSkipTimer =
30
std::chrono::steady_clock::now();
31
int
m_LastSkip = 0;
32
33
ThemeMetric<float>
SKIP_X;
34
ThemeMetric<float>
SKIP_Y;
35
ThemeMetric<float>
SKIP_SPACING_Y;
36
ThemeMetric<float>
SKIP_WIDTH;
37
};
38
39
#endif
BitmapText
An actor that holds a Font and draws text to the screen.
Definition
BitmapText.h:11
Quad
A rectangular shaped Actor with color.
Definition
Quad.h:8
ScreenStatsOverlay
Definition
ScreenStatsOverlay.h:15
ScreenStatsOverlay::Init
void Init() override
This is called immediately after construction, to allow initializing after all derived classes exist.
Definition
ScreenStatsOverlay.cpp:12
Screen
Class that holds a screen-full of Actors.
Definition
Screen.h:64
ThemeMetric
The theme specific data.
Definition
ThemeMetric.h:52
RageColor
Definition
RageTypes.h:332
Generated by
1.9.8