mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Merge pull request #16986 from MiraiSubject/current-tournament-explorer
Add button to open currently selected tournament in file explorer
This commit is contained in:
commit
6eb79c37d8
@ -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!";
|
||||||
}
|
}
|
||||||
@ -33,7 +35,13 @@ namespace osu.Game.Tournament.Screens.Setup
|
|||||||
{
|
{
|
||||||
var drawable = base.CreateComponent();
|
var drawable = base.CreateComponent();
|
||||||
|
|
||||||
FlowContainer.Insert(-1, dropdown = new OsuDropdown<string>
|
FlowContainer.Insert(-1, folderButton = new TriangleButton
|
||||||
|
{
|
||||||
|
Text = "Open folder",
|
||||||
|
Width = 100
|
||||||
|
});
|
||||||
|
|
||||||
|
FlowContainer.Insert(-2, dropdown = new OsuDropdown<string>
|
||||||
{
|
{
|
||||||
Width = 510
|
Width = 510
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user