-public:
- GUIMainMenu(gui::IGUIEnvironment* env,
- gui::IGUIElement* parent, s32 id,
- IMenuManager *menumgr,
- MainMenuData *data,
- IGameCallback *gamecallback);
- ~GUIMainMenu();
-
- void removeChildren();
- /*
- Remove and re-add (or reposition) stuff
- */
- void regenerateGui(v2u32 screensize);
-
- void drawMenu();
-
- void acceptInput();
-
- bool getStatus()
- {
- return m_accepted;
- }
-
- bool OnEvent(const SEvent& event);
-
-private:
- MainMenuData *m_data;
- bool m_accepted;
- IGameCallback *m_gamecallback;
+ // Client options
+ std::string servername;
+ std::string serverdescription;
+ std::string address;
+ std::string port;
+ std::string name;
+ std::string password;
+
+ // Server options
+ bool enable_public;
+ int selected_world;
+ bool simple_singleplayer_mode;
+
+ //error handling
+ std::string errormessage;
+ MainMenuData():
+ enable_public(false),
+ selected_world(0),
+ simple_singleplayer_mode(false),
+ errormessage("")
+ {}