mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 00:02:56 +08:00
corrected styling issues
This commit is contained in:
parent
a973a324ac
commit
c6345ba6c9
@ -8,7 +8,6 @@ namespace osu.Game.Tournament.Tests.Screens
|
|||||||
{
|
{
|
||||||
public class TestSceneStablePathSelectScreens : TournamentTestScene
|
public class TestSceneStablePathSelectScreens : TournamentTestScene
|
||||||
{
|
{
|
||||||
|
|
||||||
public TestSceneStablePathSelectScreens()
|
public TestSceneStablePathSelectScreens()
|
||||||
{
|
{
|
||||||
AddStep("Add screen", () => Add(new TestSceneStablePathSelectScreen()));
|
AddStep("Add screen", () => Add(new TestSceneStablePathSelectScreen()));
|
||||||
@ -16,12 +15,12 @@ namespace osu.Game.Tournament.Tests.Screens
|
|||||||
|
|
||||||
private class TestSceneStablePathSelectScreen : StablePathSelectScreen
|
private class TestSceneStablePathSelectScreen : StablePathSelectScreen
|
||||||
{
|
{
|
||||||
protected override void changePath(Storage storage)
|
protected override void ChangePath(Storage storage)
|
||||||
{
|
{
|
||||||
Expire();
|
Expire();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void autoDetect()
|
protected override void AutoDetect()
|
||||||
{
|
{
|
||||||
Expire();
|
Expire();
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ using osu.Game.Graphics.Sprites;
|
|||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Graphics.UserInterfaceV2;
|
using osu.Game.Graphics.UserInterfaceV2;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Dialog;
|
|
||||||
using osu.Game.Tournament.IPC;
|
using osu.Game.Tournament.IPC;
|
||||||
using osu.Game.Tournament.Components;
|
using osu.Game.Tournament.Components;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
@ -109,7 +108,7 @@ namespace osu.Game.Tournament.Screens
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Width = 300,
|
Width = 300,
|
||||||
Text = "Select stable path",
|
Text = "Select stable path",
|
||||||
Action = () => changePath(storage)
|
Action = () => ChangePath(storage)
|
||||||
},
|
},
|
||||||
new TriangleButton
|
new TriangleButton
|
||||||
{
|
{
|
||||||
@ -117,7 +116,7 @@ namespace osu.Game.Tournament.Screens
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Width = 300,
|
Width = 300,
|
||||||
Text = "Auto detect",
|
Text = "Auto detect",
|
||||||
Action = autoDetect
|
Action = AutoDetect
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +135,7 @@ namespace osu.Game.Tournament.Screens
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void changePath(Storage storage)
|
protected virtual void ChangePath(Storage storage)
|
||||||
{
|
{
|
||||||
var target = directorySelector.CurrentDirectory.Value.FullName;
|
var target = directorySelector.CurrentDirectory.Value.FullName;
|
||||||
stableInfo.StablePath.Value = target;
|
stableInfo.StablePath.Value = target;
|
||||||
@ -157,7 +156,7 @@ namespace osu.Game.Tournament.Screens
|
|||||||
sceneManager?.SetScreen(typeof(SetupScreen));
|
sceneManager?.SetScreen(typeof(SetupScreen));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void autoDetect()
|
protected virtual void AutoDetect()
|
||||||
{
|
{
|
||||||
var fileBasedIpc = ipc as FileBasedIPC;
|
var fileBasedIpc = ipc as FileBasedIPC;
|
||||||
fileBasedIpc?.LocateStableStorage();
|
fileBasedIpc?.LocateStableStorage();
|
||||||
|
Loading…
Reference in New Issue
Block a user