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 null
parent d130dac329
commit bd54ddce12
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 4 additions and 0 deletions

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