Retro exit modal styling and shortcuts
This commit is contained in:
@ -13,23 +13,24 @@ public:
|
||||
|
||||
private:
|
||||
enum class Field : int {
|
||||
PlayerName = 0,
|
||||
Fullscreen = 1,
|
||||
Back = 2
|
||||
Fullscreen = 0,
|
||||
Music = 1,
|
||||
SoundFx = 2,
|
||||
Back = 3
|
||||
};
|
||||
|
||||
static constexpr int MAX_NAME_LENGTH = 12;
|
||||
Field m_selectedField = Field::PlayerName;
|
||||
Field m_selectedField = Field::Fullscreen;
|
||||
double m_cursorTimer = 0.0;
|
||||
bool m_cursorVisible = true;
|
||||
|
||||
void moveSelection(int delta);
|
||||
void activateSelection();
|
||||
void handleNameInput(const SDL_Event& e);
|
||||
void addCharacter(char c);
|
||||
void removeCharacter();
|
||||
void toggleFullscreen();
|
||||
void toggleMusic();
|
||||
void toggleSoundFx();
|
||||
void exitToMenu();
|
||||
const std::string& playerName() const;
|
||||
bool isFullscreen() const;
|
||||
bool isMusicEnabled() const;
|
||||
bool isSoundFxEnabled() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user