first commit
This commit is contained in:
32
Minecraft.Client/CreateWorldScreen.h
Normal file
32
Minecraft.Client/CreateWorldScreen.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include "Screen.h"
|
||||
class EditBox;
|
||||
class LevelStorageSource;
|
||||
using namespace std;
|
||||
|
||||
class CreateWorldScreen : public Screen
|
||||
{
|
||||
private:
|
||||
Screen *lastScreen;
|
||||
EditBox *nameEdit;
|
||||
EditBox *seedEdit;
|
||||
wstring resultFolder;
|
||||
bool done;
|
||||
|
||||
public:
|
||||
CreateWorldScreen(Screen *lastScreen);
|
||||
virtual void tick();
|
||||
virtual void init();
|
||||
private:
|
||||
void updateResultFolder();
|
||||
public:
|
||||
static wstring findAvailableFolderName(LevelStorageSource *levelSource, const wstring& folder);
|
||||
virtual void removed();
|
||||
protected:
|
||||
virtual void buttonClicked(Button *button);
|
||||
virtual void keyPressed(wchar_t ch, int eventKey);
|
||||
virtual void mouseClicked(int x, int y, int buttonNum);
|
||||
public:
|
||||
virtual void render(int xm, int ym, float a);
|
||||
virtual void tabPressed();
|
||||
};
|
||||
Reference in New Issue
Block a user