Etterna 0.74.4
Loading...
Searching...
No Matches
ComboGraph.h
1/* ComboGraph - A bar displaying the player's combo on Evaluation. */
2#ifndef COMBO_GRAPH_H
3#define COMBO_GRAPH_H
4
5#include "Etterna/Actor/Base/ActorFrame.h"
6#include "Etterna/Models/Misc/ThemeMetric.h"
7
8class StageStats;
10class BitmapText;
11
12class ComboGraph : public ActorFrame
13{
14 public:
15 ComboGraph();
16 void Load(const std::string& sMetricsGroup);
17 void Set(const StageStats& s, const PlayerStageStats& pss);
18 void SetWithoutStageStats(const PlayerStageStats& pss, const float fLastSecond);
19 ComboGraph* Copy() const override;
20 bool AutoLoadChildren() const override { return true; }
21
22 // Commands
23 void PushSelf(lua_State* L) override;
24
25 private:
26 ThemeMetric<float> BODY_WIDTH;
27 ThemeMetric<float> BODY_HEIGHT;
28 Actor* m_pBacking;
29 Actor* m_pNormalCombo;
30 Actor* m_pMaxCombo;
31 BitmapText* m_pComboNumber;
32};
33
34#endif
A container for other Actors.
Definition ActorFrame.h:8
Base class for all objects that appear on the screen.
Definition Actor.h:77
An actor that holds a Font and draws text to the screen.
Definition BitmapText.h:11
Definition ComboGraph.h:13
Contains statistics for one stage of play - either one song, or a whole course.
Definition PlayerStageStats.h:19
Contains statistics for one stage of play.
Definition StageStats.h:15
The theme specific data.
Definition ThemeMetric.h:52