mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 13:33:36 +00:00
36 lines
630 B
C++
36 lines
630 B
C++
#pragma once
|
|
#include "../Screen.h"
|
|
|
|
class Options;
|
|
|
|
class ControlsScreen : public Screen {
|
|
private:
|
|
Screen* lastScreen;
|
|
|
|
protected:
|
|
std::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() override;
|
|
|
|
protected:
|
|
void buttonClicked(Button* button) override;
|
|
void keyPressed(wchar_t eventCharacter, int eventKey) override;
|
|
|
|
public:
|
|
void render(int xm, int ym, float a) override;
|
|
}; |