mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
45 lines
1.0 KiB
C++
Executable File
45 lines
1.0 KiB
C++
Executable File
#ifndef NET_MINECRAFT_CLIENT_GUI_SCREENS__DemoChooseLevelScreen_H__
|
|
#define NET_MINECRAFT_CLIENT_GUI_SCREENS__DemoChooseLevelScreen_H__
|
|
|
|
#include "ChooseLevelScreen.h"
|
|
#include "../components/TextBox.h"
|
|
#include "../components/Button.h" // for Touch::THeader
|
|
class Button;
|
|
class ImageButton;
|
|
|
|
class SimpleChooseLevelScreen: public ChooseLevelScreen
|
|
{
|
|
public:
|
|
SimpleChooseLevelScreen(const std::string& levelName);
|
|
|
|
virtual ~SimpleChooseLevelScreen();
|
|
|
|
void init();
|
|
void setupPositions();
|
|
void tick();
|
|
|
|
void render(int xm, int ym, float a);
|
|
|
|
void buttonClicked(Button* button);
|
|
bool handleBackEvent(bool isDown);
|
|
virtual void keyPressed(int eventKey);
|
|
virtual void mouseClicked(int x, int y, int buttonNum);
|
|
|
|
private:
|
|
Touch::THeader* bHeader;
|
|
Button* bGamemode;
|
|
Button* bCheats;
|
|
ImageButton* bBack;
|
|
Button* bCreate;
|
|
bool hasChosen;
|
|
|
|
std::string levelName;
|
|
int gamemode;
|
|
bool cheatsEnabled;
|
|
|
|
TextBox tLevelName;
|
|
TextBox tSeed;
|
|
};
|
|
|
|
#endif /*NET_MINECRAFT_CLIENT_GUI_SCREENS__DemoChooseLevelScreen_H__*/
|