mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#ifndef NET_MINECRAFT_CLIENT_GUI_SCREENS__UsernameScreen_H__
|
|
#define NET_MINECRAFT_CLIENT_GUI_SCREENS__UsernameScreen_H__
|
|
|
|
#include "../Screen.h"
|
|
#include "../components/Button.h"
|
|
#include "client/gui/components/TextBox.h"
|
|
#include <string>
|
|
|
|
class UsernameScreen : public Screen
|
|
{
|
|
typedef Screen super;
|
|
public:
|
|
UsernameScreen();
|
|
virtual ~UsernameScreen();
|
|
|
|
void init();
|
|
virtual void setupPositions() override;
|
|
void render(int xm, int ym, float a);
|
|
void tick();
|
|
|
|
virtual bool isPauseScreen() { return false; }
|
|
|
|
virtual void keyPressed(int eventKey);
|
|
virtual void keyboardNewChar(char inputChar);
|
|
virtual bool handleBackEvent(bool isDown) { return true; } // block back/escape
|
|
virtual void removed();
|
|
virtual void mouseClicked(int x, int y, int button);
|
|
|
|
protected:
|
|
virtual void buttonClicked(Button* button);
|
|
|
|
private:
|
|
Button _btnDone;
|
|
TextBox tUsername;
|
|
std::string _input;
|
|
int _cursorBlink;
|
|
};
|
|
|
|
#endif /*NET_MINECRAFT_CLIENT_GUI_SCREENS__UsernameScreen_H__*/
|