1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

Use OsuButton everywhere

This commit is contained in:
Dean Herbert 2019-06-18 17:17:46 +09:00
parent 437ad2b0d0
commit 711214ed09
4 changed files with 17 additions and 17 deletions

View File

@ -128,21 +128,21 @@ namespace osu.Game.Tournament.Screens.Drawings
// Control panel container
new ControlPanel
{
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Begin random",
Action = teamsContainer.StartScrolling,
},
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Stop random",
Action = teamsContainer.StopScrolling,
},
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
@ -150,7 +150,7 @@ namespace osu.Game.Tournament.Screens.Drawings
Action = reloadTeams
},
new ControlPanel.Spacer(),
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,

View File

@ -46,7 +46,7 @@ namespace osu.Game.Tournament.Screens.Editors
{
Children = new Drawable[]
{
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Add new",

View File

@ -26,7 +26,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
private readonly Bindable<TournamentMatch> currentMatch = new Bindable<TournamentMatch>();
public readonly Bindable<TourneyState> State = new Bindable<TourneyState>();
private TriangleButton warmupButton;
private OsuButton warmupButton;
private MatchIPCInfo ipc;
private readonly Color4 red = new Color4(186, 0, 18, 255);
@ -103,13 +103,13 @@ namespace osu.Game.Tournament.Screens.Gameplay
{
Children = new Drawable[]
{
warmupButton = new TriangleButton
warmupButton = new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Toggle warmup",
Action = () => warmup.Toggle()
},
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Toggle chat",

View File

@ -34,10 +34,10 @@ namespace osu.Game.Tournament.Screens.MapPool
private TeamColour pickColour;
private ChoiceType pickType;
private readonly TriangleButton buttonRedBan;
private readonly TriangleButton buttonBlueBan;
private readonly TriangleButton buttonRedPick;
private readonly TriangleButton buttonBluePick;
private readonly OsuButton buttonRedBan;
private readonly OsuButton buttonBlueBan;
private readonly OsuButton buttonRedPick;
private readonly OsuButton buttonBluePick;
public MapPoolScreen()
{
@ -60,32 +60,32 @@ namespace osu.Game.Tournament.Screens.MapPool
{
Text = "Current Mode"
},
buttonRedBan = new TriangleButton
buttonRedBan = new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Red Ban",
Action = () => setMode(TeamColour.Red, ChoiceType.Ban)
},
buttonBlueBan = new TriangleButton
buttonBlueBan = new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Blue Ban",
Action = () => setMode(TeamColour.Blue, ChoiceType.Ban)
},
buttonRedPick = new TriangleButton
buttonRedPick = new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Red Pick",
Action = () => setMode(TeamColour.Red, ChoiceType.Pick)
},
buttonBluePick = new TriangleButton
buttonBluePick = new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Blue Pick",
Action = () => setMode(TeamColour.Blue, ChoiceType.Pick)
},
new ControlPanel.Spacer(),
new TriangleButton
new OsuButton
{
RelativeSizeAxes = Axes.X,
Text = "Reset",