aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/NameEntryScreen.h
blob: 7507748a0faf31cce62860b9127cd65c5803d390 (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
#pragma once
#include "Screen.h"

class NameEntryScreen : public Screen
{
private:
	Screen *lastScreen;
protected:
	wstring title;
private:
	int slot;
    wstring name;
    int frame;
public:
	NameEntryScreen(Screen *lastScreen, const wstring& oldName, int slot);
    virtual void init();
    virtual void removed();
    virtual void tick();
protected:
	virtual void buttonClicked(Button button);
private:
	static const wstring allowedChars;
protected:
	virtual void keyPressed(wchar_t ch, int eventKey);
public:
	virtual void render(int xm, int ym, float a);
};