void SelectionWidget::SelectMod(const std::string& mod) { if (mod == userMod) { CleanWindow(); return; } userMod = mod; configHandler->SetString("LastSelectedMod", userMod); modT->SetText(userMod); //SelectScript(SelectionWidget::NoScriptSelect); //reset AI as LuaAI maybe doesn't exist in this game UpdateAvailableScripts(); CleanWindow(); }
void SelectionWidget::SelectMap(std::string script) { userMap = script; configHandler->SetString("LastSelectedMap", userMap); mapT->SetText(userMap); CleanWindow(); }
void SelectionWidget::SelectScript(std::string map) { userScript = map; configHandler->SetString("LastSelectedScript", userScript); scriptT->SetText(userScript); CleanWindow(); }
void SelectionWidget::SelectMod(std::string mod) { userMod = mod; configHandler->SetString("LastSelectedMod", userMod); modT->SetText(userMod); CleanWindow(); }
void SelectionWidget::SelectMap(const std::string& map) { userMap = map; configHandler->SetString("LastSelectedMap", userMap); mapT->SetText(userMap); UpdateAvailableScripts(); CleanWindow(); }
SelectionWidget::~SelectionWidget() { CleanWindow(); }