Remove custom tooltip timings (#19604)
This commit is contained in:
@@ -13,7 +13,6 @@ public sealed class MenuButton : ContainerButton
|
||||
[Dependency] private readonly IInputManager _inputManager = default!;
|
||||
public const string StyleClassLabelTopButton = "topButtonLabel";
|
||||
public const string StyleClassRedTopButton = "topButtonLabel";
|
||||
private const float CustomTooltipDelay = 0.4f;
|
||||
|
||||
private static readonly Color ColorNormal = Color.FromHex("#7b7e9e");
|
||||
private static readonly Color ColorRedNormal = Color.FromHex("#FEFEFE");
|
||||
@@ -48,7 +47,6 @@ public sealed class MenuButton : ContainerButton
|
||||
public MenuButton()
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
TooltipDelay = CustomTooltipDelay;
|
||||
_buttonIcon = new TextureRect()
|
||||
{
|
||||
TextureScale = new Vector2(0.5f, 0.5f),
|
||||
|
||||
@@ -156,7 +156,6 @@ public sealed class ActionButton : Control
|
||||
OnUnpressed(args);
|
||||
};
|
||||
|
||||
TooltipDelay = 0.5f;
|
||||
TooltipSupplier = SupplyTooltip;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,10 +11,6 @@ namespace Content.Client.UserInterface.Systems.Alerts.Controls
|
||||
{
|
||||
public sealed class AlertControl : BaseButton
|
||||
{
|
||||
// shorter than default tooltip delay so user can more easily
|
||||
// see what alerts they have
|
||||
private const float CustomTooltipDelay = 0.5f;
|
||||
|
||||
public AlertPrototype Alert { get; }
|
||||
|
||||
/// <summary>
|
||||
@@ -48,7 +44,6 @@ namespace Content.Client.UserInterface.Systems.Alerts.Controls
|
||||
public AlertControl(AlertPrototype alert, short? severity)
|
||||
{
|
||||
_gameTiming = IoCManager.Resolve<IGameTiming>();
|
||||
TooltipDelay = CustomTooltipDelay;
|
||||
TooltipSupplier = SupplyTooltip;
|
||||
Alert = alert;
|
||||
_severity = severity;
|
||||
|
||||
Reference in New Issue
Block a user