blob: 7808178634fc5d63b775ac046dc3bdeab32c0783 (
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
28
29
30
31
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();
};
|