resonance 1.0.1
Loading...
Searching...
No Matches
metconfiggameoptionsscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/gameoptions.h"
6#include "met/metbuttonlist.h"
8
9namespace Rnd {
10class Button;
11} // namespace Rnd
12
36public:
48 MetConfigGameOptionsScreen(MetRenderer *pRenderer, int nPriority);
49
55
67 static MetConfigGameOptionsScreen *New(MetRenderer *pRenderer, int nPriority);
68
78 virtual void EnterAndShow();
79
91 virtual void HandleCommand(const MetScreenCommand *pCommand);
92
105 virtual void OnExitFinished();
106
115 virtual void ResolveContainerViews();
116
117private:
124 void UpdateOptionLabels();
125
134 void ToggleOption(int nRow);
135
143 void ApplyOptions();
144
145 MetButtonList *mRows; // +0x8c
146 std::vector<Rnd::Button *> mLeftArrows; // +0x90
147 std::vector<Rnd::Button *> mRightArrows; // +0x9c
148 GameOptions mOptions; // +0xa8, the working copy
149};
The three game option settings GlobalSettings records.
Definition gameoptions.h:14
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
virtual void HandleCommand(const MetScreenCommand *pCommand)
Act on a command.
virtual ~MetConfigGameOptionsScreen()
virtual void OnExitFinished()
Push the screens that follow this one.
virtual void ResolveContainerViews()
Resolve the two labels, the two rows, and the four arrow buttons.
static MetConfigGameOptionsScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void EnterAndShow()
Select the first row, copy the stored options, and enter.
MetConfigGameOptionsScreen(MetRenderer *pRenderer, int nPriority)
Construct the in-game options screen.
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreenMultiSoundBank(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen that uses the multiplayer sound bank.
Selectable widget, as one mesh and one text run plus a palette for each.
Definition button.h:39
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46