mirror of https://github.com/ppy/osu
Add specific samples for dialog 'Ok' and 'Cancel' buttons
This commit is contained in:
parent
d1c236e187
commit
930ec2a197
|
@ -20,6 +20,12 @@ public enum HoverSampleSet
|
|||
TabSelect,
|
||||
|
||||
[Description("scrolltotop")]
|
||||
ScrollToTop
|
||||
ScrollToTop,
|
||||
|
||||
[Description("dialog-cancel")]
|
||||
DialogCancel,
|
||||
|
||||
[Description("dialog-ok")]
|
||||
DialogOk
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ namespace osu.Game.Overlays.Dialog
|
|||
{
|
||||
public class PopupDialogButton : DialogButton
|
||||
{
|
||||
public PopupDialogButton()
|
||||
public PopupDialogButton(HoverSampleSet sampleSet = HoverSampleSet.Button)
|
||||
: base(sampleSet)
|
||||
{
|
||||
Height = 50;
|
||||
BackgroundColour = Color4Extensions.FromHex(@"150e14");
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Dialog
|
||||
{
|
||||
|
@ -13,5 +14,10 @@ private void load(OsuColour colours)
|
|||
{
|
||||
ButtonColour = colours.Blue;
|
||||
}
|
||||
|
||||
public PopupDialogCancelButton()
|
||||
: base(HoverSampleSet.DialogCancel)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Dialog
|
||||
{
|
||||
|
@ -13,5 +14,10 @@ private void load(OsuColour colours)
|
|||
{
|
||||
ButtonColour = colours.Pink;
|
||||
}
|
||||
|
||||
public PopupDialogOkButton()
|
||||
: base(HoverSampleSet.DialogOk)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue