Etterna 0.74.4
Loading...
Searching...
No Matches
MeterDisplay.h
1/* MeterDisplay - Display position in a song. */
2
3#ifndef METER_DISPLAY_H
4#define METER_DISPLAY_H
5
6#include "Etterna/Actor/Base/ActorFrame.h"
7#include "Etterna/Actor/Base/AutoActor.h"
8
9class MeterDisplay : public ActorFrame
10{
11 public:
13 void Load(const std::string& sStreamPath,
14 float fStreamWidth,
15 const std::string& sTipPath);
16 void LoadFromNode(const XNode* pNode) override;
17 MeterDisplay* Copy() const override;
18
19 void SetPercent(float fPercent);
20 void SetStreamWidth(float fStreamWidth);
21
22 // Lua
23 void PushSelf(lua_State* L) override;
24
25 private:
26 float m_fStreamWidth = 0.f;
27 AutoActor m_sprStream;
28 AutoActor m_sprTip;
29};
30
32{
33 public:
34 void Update(float fDeltaTime) override;
35 SongMeterDisplay* Copy() const override;
36};
37
38#endif
A container for other Actors.
Definition ActorFrame.h:8
A smart pointer for Actor.
Definition AutoActor.h:13
Definition MeterDisplay.h:10
Definition MeterDisplay.h:32
Definition XmlFile.h:95