4jcraft/Minecraft.Client/UI/Screens/CreateWorldScreen.h
Tropical db7a5f9519 feat: restore unused java GUI
Co-Authored-By: ffqq <36998498+realffqq@users.noreply.github.com>
2026-03-09 22:29:32 -05:00

64 lines
1.5 KiB
C++

#pragma once
#include "../Screen.h"
class EditBox;
class LevelStorageSource;
class CreateWorldScreen : public Screen
{
private:
Screen *lastScreen;
EditBox *nameEdit;
EditBox *seedEdit;
std::wstring resultFolder;
bool done;
public:
CreateWorldScreen(Screen *lastScreen);
virtual void tick();
virtual void init();
private:
void updateResultFolder();
public:
static std::wstring findAvailableFolderName(LevelStorageSource *levelSource, const std::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();
private:
int m_iGameModeId;
bool m_bGameModeCreative;
struct MoreOptionsParams
{
bool bGenerateOptions;
bool bStructures;
bool bFlatWorld;
bool bBonusChest;
bool bPVP;
bool bTrust;
bool bFireSpreads;
bool bHostPrivileges;
bool bTNT;
bool bMobGriefing;
bool bKeepInventory;
bool bDoMobSpawning;
bool bDoMobLoot;
bool bDoTileDrops;
bool bNaturalRegeneration;
bool bDoDaylightCycle;
bool bOnlineGame;
bool bInviteOnly;
bool bAllowFriendsOfFriends;
bool bOnlineSettingChangedBySystem;
int dwTexturePack;
int iPad;
std::wstring worldName;
std::wstring seed;
} m_MoreOptionsParams;
};