mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Renamed additional transitions
- instant -> simple slide - none -> instant
This commit is contained in:
parent
2ec037de2f
commit
1da0c780b2
|
@ -127,8 +127,8 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MEN
|
|||
std::vector<std::string> transitions;
|
||||
transitions.push_back("fade");
|
||||
transitions.push_back("slide");
|
||||
transitions.push_back("simple slide");
|
||||
transitions.push_back("instant");
|
||||
transitions.push_back("none");
|
||||
for(auto it = transitions.begin(); it != transitions.end(); it++)
|
||||
transition_style->add(*it, *it, Settings::getInstance()->getString("TransitionStyle") == *it);
|
||||
s->addWithLabel("TRANSITION STYLE", transition_style);
|
||||
|
|
|
@ -280,8 +280,8 @@ void SystemView::onCursorChanged(const CursorState& state)
|
|||
this->mCamOffset = f;
|
||||
this->mExtrasCamOffset = f;
|
||||
}, 500);
|
||||
} else if (transition_style == "instant") {
|
||||
// instant
|
||||
} else if (transition_style == "simple slide") {
|
||||
// simple slide
|
||||
anim = new LambdaAnimation(
|
||||
[this, startPos, endPos, posMax](float t)
|
||||
{
|
||||
|
@ -296,7 +296,7 @@ void SystemView::onCursorChanged(const CursorState& state)
|
|||
this->mExtrasCamOffset = endPos;
|
||||
}, 500);
|
||||
} else {
|
||||
// None
|
||||
// instant
|
||||
anim = new LambdaAnimation(
|
||||
[this, endPos](float t)
|
||||
{
|
||||
|
|
|
@ -189,12 +189,12 @@ void ViewController::playViewTransition()
|
|||
}else{
|
||||
advanceAnimation(0, (int)(mFadeOpacity * FADE_DURATION));
|
||||
}
|
||||
} else if (transition_style == "slide" || transition_style == "instant"){
|
||||
// slide
|
||||
} else if (transition_style == "slide" || transition_style == "simple slide"){
|
||||
// slide or simple slide
|
||||
setAnimation(new MoveCameraAnimation(mCamera, target));
|
||||
updateHelpPrompts(); // update help prompts immediately
|
||||
} else {
|
||||
// none
|
||||
// instant
|
||||
setAnimation(new LambdaAnimation(
|
||||
[this, target](float t)
|
||||
{
|
||||
|
@ -246,7 +246,7 @@ void ViewController::launch(FileData* game, Eigen::Vector3f center)
|
|||
setAnimation(new LambdaAnimation(fadeFunc, 800), 0, nullptr, true);
|
||||
this->onFileChanged(game, FILE_METADATA_CHANGED);
|
||||
});
|
||||
} else if (transition_style == "slide" || transition_style == "instant"){
|
||||
} else if (transition_style == "slide" || transition_style == "simple slide"){
|
||||
// move camera to zoom in on center + fade out, launch game, come back in
|
||||
setAnimation(new LaunchAnimation(mCamera, mFadeOpacity, center, 1500), 0, [this, origCamera, center, game]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue