]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove custom tooltip timings (#19604)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 11 Sep 2023 03:53:35 +0000 (13:53 +1000)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 03:53:35 +0000 (13:53 +1000)
Content.Client/Examine/ExamineButton.cs
Content.Client/Lathe/UI/RecipeControl.xaml
Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Content.Client/Research/UI/MiniTechnologyCardControl.xaml
Content.Client/UserInterface/Controls/MenuButton.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs
Content.Client/UserInterface/Systems/Alerts/Controls/AlertControl.cs
Content.Client/Verbs/UI/VerbMenuElement.cs

index 912b7dc9db7b279fcf50079885357c69b5d04f37..52ff7a972eb7334c3a2ecdd87f4caa54548aa35c 100644 (file)
@@ -41,7 +41,6 @@ public sealed class ExamineButton : ContainerButton
         }
 
         ToolTip = verb.Message ?? verb.Text;
-        TooltipDelay = 0.3f; // if you're hovering over these icons, you probably want to know what they do.
 
         Icon = new TextureRect
         {
index cacbf84ff723b2add667a54d02b7021c1c668edf..2e02c8a6147709b041d5fe027fe231d7e9d61ce1 100644 (file)
@@ -2,7 +2,6 @@
     <Button
         Name="Button"
         HorizontalExpand="True"
-        TooltipDelay="0.5"
         Margin="0"
         StyleClasses="ButtonSquare">
         <BoxContainer Orientation="Horizontal">
index f25251c8ac2cacc3b2f921395c71a11251fc3277..144477199d1a53806b025646aa794836f01ea3e1 100644 (file)
@@ -1239,7 +1239,6 @@ namespace Content.Client.Preferences.UI
                 {
                     Visible = false,
                     HorizontalExpand = true,
-                    TooltipDelay = 0.2f,
                     MouseFilter = MouseFilterMode.Stop,
                     Children =
                     {
@@ -1258,7 +1257,6 @@ namespace Content.Client.Preferences.UI
                 if (job.LocalizedDescription != null)
                 {
                     _jobTitle.ToolTip = job.LocalizedDescription;
-                    _jobTitle.TooltipDelay = 0.2f;
                 }
 
                 AddChild(new BoxContainer
@@ -1345,7 +1343,6 @@ namespace Content.Client.Preferences.UI
                 if (antag.Description != null)
                 {
                     _checkBox.ToolTip = Loc.GetString(antag.Description);
-                    _checkBox.TooltipDelay = 0.2f;
                 }
 
                 AddChild(new BoxContainer
@@ -1387,7 +1384,6 @@ namespace Content.Client.Preferences.UI
                 if (trait.Description is { } desc)
                 {
                     _checkBox.ToolTip = Loc.GetString(desc);
-                    _checkBox.TooltipDelay = 0.2f;
                 }
 
                 AddChild(new BoxContainer
index c447df7bc09b4a78c715c504720492e2139c2555..6605e825181e343bf6c1caa36ead1710c9552da3 100644 (file)
@@ -13,8 +13,7 @@
                 VerticalExpand="False"
                 StyleClasses="ButtonSquare"
                 Margin="0"
-                ToolTip="foobar"
-                TooltipDelay="0.25">
+                ToolTip="foobar">
             <BoxContainer Orientation="Horizontal" Margin="0">
                 <TextureRect Name="Texture"
                              HorizontalExpand="False"
index 51a52604a4b6fbec7e4d5c9b2b20a876dc86c823..c4ce4b3151606e9b1991c513f54fee1d54716317 100644 (file)
@@ -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),
index 5a95194b1cee685d958a6e49a2b914f733266743..4bc09278181e1baa3abd5dd007785defe2e0f07c 100644 (file)
@@ -156,7 +156,6 @@ public sealed class ActionButton : Control
             OnUnpressed(args);
         };
 
-        TooltipDelay = 0.5f;
         TooltipSupplier = SupplyTooltip;
     }
 
index 702558785acd5fcb6ff67e7a23fc731f92912ba9..4445bb0cd082b07ac23481df8e3ced822a442325 100644 (file)
@@ -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;
index 0cb6e15147e3c4a5057f33b9baf6cd963f8847ef..5997a97384ca15105114e571c1da9413c5bb3f77 100644 (file)
@@ -18,8 +18,6 @@ namespace Content.Client.Verbs.UI
     {
         public const string StyleClassVerbMenuConfirmationTexture = "verbMenuConfirmationTexture";
 
-        public const float VerbTooltipDelay = 0.5f;
-
         // Setters to provide access to children generated by XAML.
         public bool IconVisible { set => Icon.Visible = value; }
         public bool TextVisible { set => Label.Visible = value; }
@@ -30,7 +28,6 @@ namespace Content.Client.Verbs.UI
         public VerbMenuElement(Verb verb) : base(verb.Text)
         {
             ToolTip = verb.Message;
-            TooltipDelay = VerbTooltipDelay;
             Disabled = verb.Disabled;
             Verb = verb;