mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00:00
Show first run dialog on first run of the game
This commit is contained in:
parent
09613c9e18
commit
9aadc274bf
@ -74,7 +74,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Ignore("Enable when first run setup is being displayed on first run.")]
|
|
||||||
public void TestDoesntOpenOnSecondRun()
|
public void TestDoesntOpenOnSecondRun()
|
||||||
{
|
{
|
||||||
AddStep("set first run", () => LocalConfig.SetValue(OsuSetting.ShowFirstRunSetup, true));
|
AddStep("set first run", () => LocalConfig.SetValue(OsuSetting.ShowFirstRunSetup, true));
|
||||||
|
@ -171,8 +171,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
config.BindWith(OsuSetting.ShowFirstRunSetup, showFirstRunSetup);
|
config.BindWith(OsuSetting.ShowFirstRunSetup, showFirstRunSetup);
|
||||||
|
|
||||||
// TODO: uncomment when happy with the whole flow.
|
if (showFirstRunSetup.Value) Show();
|
||||||
// if (showFirstRunSetup.Value) Show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||||
@ -304,8 +303,7 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO: uncomment when happy with the whole flow.
|
showFirstRunSetup.Value = false;
|
||||||
// showFirstRunSetup.Value = false;
|
|
||||||
currentStepIndex = null;
|
currentStepIndex = null;
|
||||||
Hide();
|
Hide();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user