mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:02:54 +08:00
Add open folder button to open currently selected tournament
This commit is contained in:
parent
926abf7a0c
commit
333c0cd4f9
@ -11,6 +11,7 @@ namespace osu.Game.Tournament.Screens.Setup
|
|||||||
internal class TournamentSwitcher : ActionableInfo
|
internal class TournamentSwitcher : ActionableInfo
|
||||||
{
|
{
|
||||||
private OsuDropdown<string> dropdown;
|
private OsuDropdown<string> dropdown;
|
||||||
|
private OsuButton folderButton;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private TournamentGameBase game { get; set; }
|
private TournamentGameBase game { get; set; }
|
||||||
@ -25,6 +26,7 @@ namespace osu.Game.Tournament.Screens.Setup
|
|||||||
dropdown.Current.BindValueChanged(v => Button.Enabled.Value = v.NewValue != startupTournament, true);
|
dropdown.Current.BindValueChanged(v => Button.Enabled.Value = v.NewValue != startupTournament, true);
|
||||||
|
|
||||||
Action = () => game.GracefullyExit();
|
Action = () => game.GracefullyExit();
|
||||||
|
folderButton.Action = storage.PresentExternally;
|
||||||
|
|
||||||
ButtonText = "Close osu!";
|
ButtonText = "Close osu!";
|
||||||
}
|
}
|
||||||
@ -38,6 +40,12 @@ namespace osu.Game.Tournament.Screens.Setup
|
|||||||
Width = 510
|
Width = 510
|
||||||
});
|
});
|
||||||
|
|
||||||
|
FlowContainer.Insert(-2, folderButton = new TriangleButton
|
||||||
|
{
|
||||||
|
Text = "Open folder",
|
||||||
|
Width = 100
|
||||||
|
});
|
||||||
|
|
||||||
return drawable;
|
return drawable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user