Etterna
0.74.4
Loading...
Searching...
No Matches
src
Etterna
Actor
GameplayAndMenus
StepsDisplay.h
1
#ifndef StepsDisplay_H
2
#define StepsDisplay_H
3
4
#include "Etterna/Actor/Base/ActorFrame.h"
5
#include "Etterna/Actor/Base/AutoActor.h"
6
#include "Etterna/Actor/Base/BitmapText.h"
7
#include "Etterna/Models/Misc/Difficulty.h"
8
#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
9
#include "Etterna/Models/Misc/PlayerNumber.h"
10
#include "Etterna/Models/Misc/ThemeMetric.h"
11
12
class
Steps
;
13
class
PlayerState
;
18
class
StepsDisplay
:
public
ActorFrame
19
{
20
public
:
21
StepsDisplay
();
22
23
void
Load(
const
std::string& sMetricsGroup,
24
const
PlayerState
* pPlayerState);
25
26
StepsDisplay
* Copy()
const override
;
27
28
void
SetFromGameState(PlayerNumber pn);
29
void
SetFromStepsTypeAndMeterAndDifficultyAndCourseType(StepsType st,
30
int
iMeter,
31
Difficulty dc);
32
void
SetFromSteps(
const
Steps
* pSteps);
33
void
Unset();
34
int
mypos = 0;
35
// Lua
36
void
PushSelf(lua_State* L)
override
;
37
38
private
:
39
struct
SetParams
40
{
41
const
Steps
* pSteps;
42
int
iMeter;
43
StepsType st;
// pass because there may be a StepType icon
44
Difficulty dc;
45
};
46
void
SetInternal(
const
SetParams& params);
47
48
std::string m_sMetricsGroup;
49
50
AutoActor
m_sprFrame;
51
BitmapText
m_textTicks;
// 111100000
52
BitmapText
m_textMeter;
// 3, 9
57
BitmapText
m_textDescription;
59
BitmapText
m_textAuthor;
60
AutoActor
m_sprStepsType;
61
62
ThemeMetric<int>
m_iNumTicks;
63
ThemeMetric<int>
m_iMaxTicks;
64
ThemeMetric<bool>
m_bShowTicks;
65
ThemeMetric<bool>
m_bShowMeter;
66
ThemeMetric<bool>
m_bShowDescription;
67
ThemeMetric<bool>
m_bShowCredit;
68
ThemeMetric<bool>
m_bShowStepsType;
69
ThemeMetric<std::string>
m_sZeroMeterString;
70
ThemeMetric<std::string>
m_sMeterFormatString;
71
};
72
73
#endif
ActorFrame
A container for other Actors.
Definition
ActorFrame.h:8
AutoActor
A smart pointer for Actor.
Definition
AutoActor.h:13
BitmapText
An actor that holds a Font and draws text to the screen.
Definition
BitmapText.h:11
PlayerState
The player's indivdual state.
Definition
PlayerState.h:30
StepsDisplay
A graphical representation of a Steps or a Trail.
Definition
StepsDisplay.h:19
Steps
Holds note information for a Song.
Definition
Steps.h:42
ThemeMetric
The theme specific data.
Definition
ThemeMetric.h:52
Generated by
1.9.8