the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 32 lines 783 B view raw
1#pragma once 2#include "Screen.h" 3class EditBox; 4class LevelStorageSource; 5using namespace std; 6 7class CreateWorldScreen : public Screen 8{ 9private: 10 Screen *lastScreen; 11 EditBox *nameEdit; 12 EditBox *seedEdit; 13 wstring resultFolder; 14 bool done; 15 16public: 17 CreateWorldScreen(Screen *lastScreen); 18 virtual void tick(); 19 virtual void init(); 20private: 21 void updateResultFolder(); 22public: 23 static wstring findAvailableFolderName(LevelStorageSource *levelSource, const wstring& folder); 24 virtual void removed(); 25protected: 26 virtual void buttonClicked(Button *button); 27 virtual void keyPressed(wchar_t ch, int eventKey); 28 virtual void mouseClicked(int x, int y, int buttonNum); 29public: 30 virtual void render(int xm, int ym, float a); 31 virtual void tabPressed(); 32};