blob: b70bc4e12c2eb76534f68ddca979d3f616608951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "Screen.h"
using namespace std;
class Options;
class ControlsScreen : public Screen
{
private:
Screen *lastScreen;
protected:
wstring title;
private:
Options *options;
int selectedKey;
static const int BUTTON_WIDTH = 70;
static const int ROW_WIDTH = 160;
public:
ControlsScreen(Screen *lastScreen, Options *options);
private:
int getLeftScreenPosition();
public:
void init();
protected:
void buttonClicked(Button *button);
void keyPressed(wchar_t eventCharacter, int eventKey);
public:
void render(int xm, int ym, float a);
};
|