Fix action icons when dragging an active action to another slot (#28692)
This commit is contained in:
parent
d130dac329
commit
bd54ddce12
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue