mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09:00
Reduce delay for hold-to-confirm controls
This commit is contained in:
parent
58258188ce
commit
ef5ed915e5
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Screens.Menu;
|
using osu.Game.Screens.Menu;
|
||||||
|
|
||||||
@ -12,7 +13,11 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
public class TestSceneHoldToConfirmOverlay : OsuTestScene
|
public class TestSceneHoldToConfirmOverlay : OsuTestScene
|
||||||
{
|
{
|
||||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ExitConfirmOverlay) };
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
|
{
|
||||||
|
typeof(ExitConfirmOverlay),
|
||||||
|
typeof(HoldToConfirmContainer),
|
||||||
|
};
|
||||||
|
|
||||||
public TestSceneHoldToConfirmOverlay()
|
public TestSceneHoldToConfirmOverlay()
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
public Action Action;
|
public Action Action;
|
||||||
|
|
||||||
private const int activate_delay = 400;
|
private const int activate_delay = 200;
|
||||||
private const int fadeout_delay = 200;
|
private const int fadeout_delay = 200;
|
||||||
|
|
||||||
private bool fired;
|
private bool fired;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user