mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move dangerous hold specification to base class
This commit is contained in:
@ -12,8 +12,6 @@ namespace osu.Game.Overlays.Dialog
|
||||
{
|
||||
public class PopupDialogDangerousButton : PopupDialogButton
|
||||
{
|
||||
public const double DANGEROUS_HOLD_ACTIVATION_DELAY = 500;
|
||||
|
||||
private Box progressBox;
|
||||
private DangerousConfirmContainer confirmContainer;
|
||||
|
||||
@ -44,7 +42,10 @@ namespace osu.Game.Overlays.Dialog
|
||||
|
||||
private class DangerousConfirmContainer : HoldToConfirmContainer
|
||||
{
|
||||
protected override double? HoldActivationDelay => DANGEROUS_HOLD_ACTIVATION_DELAY;
|
||||
public DangerousConfirmContainer()
|
||||
: base(isDangerousAction: true)
|
||||
{
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user