Set Slide transitions as the first entry in GuiMenu.

This commit is contained in:
Leon Styhre 2020-12-25 17:25:23 +01:00
parent b249a1e9a3
commit 65c1e9880e

View file

@ -134,8 +134,8 @@ void GuiMenu::openUISettings()
auto transition_style = std::make_shared<OptionListComponent<std::string>> auto transition_style = std::make_shared<OptionListComponent<std::string>>
(mWindow, getHelpStyle(), "TRANSITION STYLE", false); (mWindow, getHelpStyle(), "TRANSITION STYLE", false);
std::vector<std::string> transitions; std::vector<std::string> transitions;
transitions.push_back("fade");
transitions.push_back("slide"); transitions.push_back("slide");
transitions.push_back("fade");
transitions.push_back("instant"); transitions.push_back("instant");
for (auto it = transitions.cbegin(); it != transitions.cend(); it++) for (auto it = transitions.cbegin(); it != transitions.cend(); it++)
transition_style->add(*it, *it, Settings::getInstance()-> transition_style->add(*it, *it, Settings::getInstance()->