mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Add specific samples for dialog 'Ok' and 'Cancel' buttons
This commit is contained in:
parent
d1c236e187
commit
930ec2a197
@ -20,6 +20,12 @@ namespace osu.Game.Graphics.UserInterface
|
||||
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 @@ namespace osu.Game.Overlays.Dialog
|
||||
{
|
||||
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 @@ namespace osu.Game.Overlays.Dialog
|
||||
{
|
||||
ButtonColour = colours.Pink;
|
||||
}
|
||||
|
||||
public PopupDialogOkButton()
|
||||
: base(HoverSampleSet.DialogOk)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user