diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs index 6b2033e78c..ded6f77f95 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs @@ -326,6 +326,7 @@ public sealed class ActionButton : Control, IEntityControl { base.FrameUpdate(args); + Cooldown.Visible = _action != null && _action.Cooldown != null; if (_action == null) return; diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs index 5e26c192d7..a2aa972625 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs @@ -57,7 +57,8 @@ public class ActionButtonContainer : GridContainer public void SetActionData(ActionsSystem system, params EntityUid?[] actionTypes) { var uniqueCount = Math.Min(system.GetClientActions().Count(), actionTypes.Length + 1); - BuildActionButtons(uniqueCount); + if (ChildCount != uniqueCount) + BuildActionButtons(uniqueCount); for (var i = 0; i < uniqueCount; i++) {