Show "Get Started" text on first run button

This commit is contained in:
Dean Herbert 2022-04-25 23:58:12 +09:00
parent ed894d6428
commit 5e48b37569

View File

@ -304,12 +304,15 @@ namespace osu.Game.Overlays
BackButton.Enabled.Value = currentStepIndex > 0;
NextButton.Enabled.Value = currentStepIndex != null;
if (currentStepIndex != null)
{
NextButton.Text = currentStepIndex + 1 < steps.Length
? FirstRunSetupOverlayStrings.Next(steps[currentStepIndex.Value + 1].Description)
: CommonStrings.Finish;
}
if (currentStepIndex == null)
return;
if (currentStepIndex == 0)
NextButton.Text = FirstRunSetupOverlayStrings.GetStarted;
else if (currentStepIndex < steps.Length - 1)
NextButton.Text = FirstRunSetupOverlayStrings.Next(steps[currentStepIndex.Value + 1].Description);
else
NextButton.Text = CommonStrings.Finish;
}
private class FirstRunStep