From 6ca70b015687946c0529f617d74c893e4a97f8e0 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 21 Aug 2019 17:24:05 +0200 Subject: [PATCH] Apply suggestions from PR --- Content.Client/UserInterface/GameHud.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/UserInterface/GameHud.cs b/Content.Client/UserInterface/GameHud.cs index 90446a5149..c8e7c70f53 100644 --- a/Content.Client/UserInterface/GameHud.cs +++ b/Content.Client/UserInterface/GameHud.cs @@ -348,19 +348,19 @@ namespace Content.Client.UserInterface switch (DrawMode) { case DrawModeEnum.Normal: - AddStylePseudoClass(Button.StylePseudoClassNormal); + SetOnlyStylePseudoClass(Button.StylePseudoClassNormal); _textureRect.ModulateSelfOverride = ColorNormal; _label.ModulateSelfOverride = ColorNormal; break; case DrawModeEnum.Pressed: - AddStylePseudoClass(Button.StylePseudoClassPressed); + SetOnlyStylePseudoClass(Button.StylePseudoClassPressed); _textureRect.ModulateSelfOverride = ColorPressed; _label.ModulateSelfOverride = ColorPressed; break; case DrawModeEnum.Hover: - AddStylePseudoClass(Button.StylePseudoClassHover); + SetOnlyStylePseudoClass(Button.StylePseudoClassHover); _textureRect.ModulateSelfOverride = ColorHovered; _label.ModulateSelfOverride = ColorHovered; break;