Etterna 0.74.4
Loading...
Searching...
No Matches
RoomInfoDisplay.h
1/* RoomInfoDisplay: Shows information about an online game room. */
2
3#ifndef ROOM_INFO_DISPLAY_H
4#define ROOM_INFO_DISPLAY_H
5
6#include "Etterna/Actor/Base/ActorFrame.h"
7#include "Etterna/Models/Misc/RoomWheel.h"
8
10{
11 public:
13 ~RoomInfoDisplay() override;
14 virtual void Load(const std::string& sType);
15 void Update(float fDeltaTime) override;
16 void SetRoom(const RoomWheelItemData* roomData);
17 void SetRoomInfo(const RoomInfo& info);
18 void DeployInfoBox();
19 void RetractInfoBox();
20
21 private:
22 void RequestRoomInfo(const std::string& name);
23 enum RoomInfoDisplayState
24 {
25 OPEN = 0,
26 CLOSED,
27 LOCKED
28 };
29
30 RoomInfoDisplayState m_state{ OPEN };
31 AutoActor m_bg;
32 BitmapText m_Title;
33 BitmapText m_Desc;
34
35 BitmapText m_lastRound;
36 BitmapText m_songTitle;
37 BitmapText m_songSub;
38 BitmapText m_songArtist;
39
40 BitmapText m_players;
41 std::vector<BitmapText*> m_playerList;
42
43 RageTimer m_deployDelay;
44
47 ThemeMetric<float> DEPLOY_DELAY;
48 ThemeMetric<float> RETRACT_DELAY;
49 ThemeMetric<float> PLAYERLISTX;
50 ThemeMetric<float> PLAYERLISTY;
51 ThemeMetric<float> PLAYERLISTOFFSETX;
52 ThemeMetric<float> PLAYERLISTOFFSETY;
53};
54
55#endif
A container for other Actors.
Definition ActorFrame.h:8
A smart pointer for Actor.
Definition AutoActor.h:13
An actor that holds a Font and draws text to the screen.
Definition BitmapText.h:11
Definition RageTimer.h:9
Definition RoomInfoDisplay.h:10
The theme specific data.
Definition ThemeMetric.h:52
Definition RoomWheel.h:81
Definition RoomWheel.h:40