Etterna 0.74.4
Loading...
Searching...
No Matches
ScreenSelectProfile.h
1/* ScreenSelectProfile - Screen that allows to select and load profile to use.
2 */
3
4#ifndef SCREEN_SELECT_PROFILE_H
5#define SCREEN_SELECT_PROFILE_H
6
7#include "ScreenWithMenuElements.h"
8
10{
11 public:
12 void Init() override;
13 bool Input(const InputEventPlus& input) override;
14 bool MenuLeft(const InputEventPlus& input) override;
15 bool MenuRight(const InputEventPlus& input) override;
16 bool MenuUp(const InputEventPlus& input) override;
17 bool MenuDown(const InputEventPlus& input) override;
18 void HandleScreenMessage(const ScreenMessage& SM) override;
19
20 GameButton m_TrackingRepeatingInput;
21
22 // Lua
23 void PushSelf(lua_State* L) override;
24 bool SetProfileIndex(PlayerNumber pn, int iProfileIndex);
25 int GetProfileIndex(PlayerNumber pn) { return m_iSelectedProfiles; }
26 bool Finish();
27
28 protected:
29 int m_iSelectedProfiles;
30};
31
32#endif
Holds a device input plus Game/Menu translations.
Definition InputEventPlus.h:9
Definition ScreenSelectProfile.h:10
void Init() override
This is called immediately after construction, to allow initializing after all derived classes exist.
Definition ScreenSelectProfile.cpp:11
Definition ScreenWithMenuElements.h:12