From 5cff3b5b16aa42fbc0a421e28fe6d1d51236e1f6 Mon Sep 17 00:00:00 2001 From: Moony Date: Sun, 16 Oct 2022 11:42:19 -0500 Subject: [PATCH] Hide the action button label if it's empty. (#11902) Reduces visual clutter just slightly, by avoiding bright white text in an otherwise empty and dark space. Co-authored-by: moonheart08 --- .../UserInterface/Systems/Actions/Controls/ActionButton.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs index 1ffadb56d6..c069d8514f 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs @@ -294,6 +294,7 @@ public sealed class ActionButton : Control public void UpdateData(ActionType action) { Action = action; + Label.Visible = true; UpdateIcons(); } @@ -302,6 +303,7 @@ public sealed class ActionButton : Control Action = null; Cooldown.Visible = false; Cooldown.Progress = 1; + Label.Visible = false; UpdateIcons(); }