Fix action icons when dragging an active action to another slot (#28692)

This commit is contained in:
DrSmugleaf
2024-06-07 22:34:48 -07:00
committed by GitHub
parent f37060fc1b
commit 0762f9da17

View 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);