Etterna 0.74.4
Loading...
Searching...
No Matches
DualScrollBar.h
1#ifndef DUAL_SCROLLBAR_H
2#define DUAL_SCROLLBAR_H
3
4#include "Etterna/Actor/Base/ActorFrame.h"
5#include "Etterna/Actor/Base/AutoActor.h"
6#include "Etterna/Models/Misc/PlayerNumber.h"
9{
10 public:
12
13 void Load(const std::string& sType);
14 void SetBarHeight(float fHeight) { m_fBarHeight = fHeight; }
15 void SetBarTime(float fTime) { m_fBarTime = fTime; }
16 void SetPercentage(PlayerNumber pn, float fPercent);
17 void EnablePlayer(PlayerNumber pn, bool on);
18
19 private:
21 float m_fBarHeight;
22 float m_fBarTime;
23
24 AutoActor m_sprScrollThumbOverHalf;
25 AutoActor m_sprScrollThumbUnderHalf;
26};
27
28#endif
A container for other Actors.
Definition ActorFrame.h:8
A smart pointer for Actor.
Definition AutoActor.h:13
A scrollbar with two independent thumbs.
Definition DualScrollBar.h:9