void start(tgui::ListBox::Ptr& res, tgui::ListBox::Ptr& mode, tgui::EditBox::Ptr& c1, tgui::EditBox::Ptr& c2) { //CHECKING FOR FULLSCREEN bool fullscreen; if (mode->getSelectedItemIndex() == 0) fullscreen = true; else fullscreen = false; //CHECKING FOR RESOLUTION int x; int y; if (res->getSelectedItem() == ("2560 x 1440")) { x = 2560; y = 1440; } else if (res->getSelectedItem() == ("1920 x 1080")) { x = 1920; y = 1080; } else if (res->getSelectedItem() == ("1366 x 768")) { x = 1366; y = 768; } else if (res->getSelectedItem() == ("CUSTOM")) { x = Rom::convertStringToDouble(c1->getText()); y = Rom::convertStringToDouble(c2->getText()); } //STARTING Rom sim(x, y, fullscreen); saveSettings(x, y, fullscreen); sim.runSim(); exit(0); }
void login(tgui::EditBox::Ptr username, tgui::EditBox::Ptr password) { std::cout << "Username: "******"Password: " << password->getText().toAnsiString() << std::endl; }