mirror of
https://github.com/ppy/osu.git
synced 2025-01-09 00:13:01 +08:00
Make save changes button more prominent
This commit is contained in:
parent
aeb6bf5b46
commit
01e32896ee
@ -22,6 +22,7 @@ using osu.Game.Online.API.Requests;
|
|||||||
using osu.Game.Tournament.IPC;
|
using osu.Game.Tournament.IPC;
|
||||||
using osu.Game.Tournament.Models;
|
using osu.Game.Tournament.Models;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
|
||||||
@ -74,17 +75,41 @@ namespace osu.Game.Tournament
|
|||||||
|
|
||||||
AddRange(new[]
|
AddRange(new[]
|
||||||
{
|
{
|
||||||
|
new Container
|
||||||
|
{
|
||||||
|
CornerRadius = 10,
|
||||||
|
Depth = float.MinValue,
|
||||||
|
Position = new Vector2(5),
|
||||||
|
Masking = true,
|
||||||
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Anchor = Anchor.BottomRight,
|
||||||
|
Origin = Anchor.BottomRight,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
Colour = OsuColour.Gray(0.2f),
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
},
|
||||||
new TourneyButton
|
new TourneyButton
|
||||||
{
|
{
|
||||||
Text = "Save Changes",
|
Text = "Save Changes",
|
||||||
Width = 140,
|
Width = 140,
|
||||||
Height = 50,
|
Height = 50,
|
||||||
Depth = float.MinValue,
|
Padding = new MarginPadding
|
||||||
Anchor = Anchor.BottomRight,
|
{
|
||||||
Origin = Anchor.BottomRight,
|
Top = 10,
|
||||||
Padding = new MarginPadding(10),
|
Left = 10,
|
||||||
|
},
|
||||||
|
Margin = new MarginPadding
|
||||||
|
{
|
||||||
|
Right = 10,
|
||||||
|
Bottom = 10,
|
||||||
|
},
|
||||||
Action = SaveChanges,
|
Action = SaveChanges,
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
heightWarning = new Container
|
heightWarning = new Container
|
||||||
{
|
{
|
||||||
Masking = true,
|
Masking = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user