mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 20:23:36 +00:00
33 lines
616 B
C++
33 lines
616 B
C++
#pragma once
|
|
#include "../Screen.h"
|
|
|
|
class NameEntryScreen : public Screen {
|
|
private:
|
|
Screen* lastScreen;
|
|
|
|
protected:
|
|
std::wstring title;
|
|
|
|
private:
|
|
int slot;
|
|
std::wstring name;
|
|
int frame;
|
|
|
|
public:
|
|
NameEntryScreen(Screen* lastScreen, const std::wstring& oldName, int slot);
|
|
virtual void init();
|
|
virtual void removed();
|
|
virtual void tick();
|
|
|
|
protected:
|
|
virtual void buttonClicked(Button button);
|
|
|
|
private:
|
|
static const std::wstring allowedChars;
|
|
|
|
protected:
|
|
virtual void keyPressed(wchar_t ch, int eventKey);
|
|
|
|
public:
|
|
virtual void render(int xm, int ym, float a);
|
|
}; |