]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix action icons when dragging an active action to another slot (#28692)
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sat, 8 Jun 2024 05:34:48 +0000 (22:34 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Jun 2024 05:34:48 +0000 (22:34 -0700)
Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs

index 6be41af0d89e25998b1fe2d1b8444af9dafe5c39..0d12d8717111197cf141de3d5da7005b1c454fd7 100644 (file)
@@ -289,6 +289,10 @@ public sealed class ActionButton : Control, IEntityControl
         {
             if (_action.IconOn != null)
                 SetActionIcon(_spriteSys.Frame0(_action.IconOn));
+            else if (_action.Icon != null)
+                SetActionIcon(_spriteSys.Frame0(_action.Icon));
+            else
+                SetActionIcon(null);
 
             if (_action.BackgroundOn != null)
                 _buttonBackgroundTexture = _spriteSys.Frame0(_action.BackgroundOn);