From 49fe34f78a6cd05d6201cf9c21a61c34c42f30ad Mon Sep 17 00:00:00 2001 From: Perry Fraser Date: Fri, 8 Aug 2025 15:27:46 -0400 Subject: [PATCH] fix: fix emote wheel icons (#39481) --- .../Systems/Emotes/EmotesUIController.cs | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Emotes/EmotesUIController.cs b/Content.Client/UserInterface/Systems/Emotes/EmotesUIController.cs index 7652e39bfd..8d74e2efe7 100644 --- a/Content.Client/UserInterface/Systems/Emotes/EmotesUIController.cs +++ b/Content.Client/UserInterface/Systems/Emotes/EmotesUIController.cs @@ -21,17 +21,20 @@ public sealed class EmotesUIController : UIController, IOnStateChanged UIManager.GetActiveUIWidgetOrNull()?.EmotesButton; private SimpleRadialMenu? _menu; - private static readonly Dictionary EmoteGroupingInfo - = new Dictionary - { - [EmoteCategory.General] = ("emote-menu-category-general", new SpriteSpecifier.Texture(new ResPath("/Textures/Clothing/Head/Soft/mimesoft.rsi/icon.png"))), - [EmoteCategory.Hands] = ("emote-menu-category-hands", new SpriteSpecifier.Texture(new ResPath("/Textures/Clothing/Hands/Gloves/latex.rsi/icon.png"))), - [EmoteCategory.Vocal] = ("emote-menu-category-vocal", new SpriteSpecifier.Texture(new ResPath("/Textures/Interface/Emotes/vocal.png"))), - }; + private static readonly Dictionary EmoteGroupingInfo = + new() + { + [EmoteCategory.General] = ("emote-menu-category-general", + new SpriteSpecifier.Rsi(new ResPath("/Textures/Clothing/Head/Soft/mimesoft.rsi"), "icon")), + [EmoteCategory.Hands] = ("emote-menu-category-hands", + new SpriteSpecifier.Rsi(new ResPath("/Textures/Clothing/Hands/Gloves/latex.rsi"), "icon")), + [EmoteCategory.Vocal] = ("emote-menu-category-vocal", + new SpriteSpecifier.Texture(new ResPath("/Textures/Interface/Emotes/vocal.png"))), + }; public void OnStateEntered(GameplayState state) { @@ -135,7 +138,7 @@ public sealed class EmotesUIController : UIController, IOnStateChanged(); var player = _playerManager.LocalSession?.AttachedEntity; - Dictionary> emotesByCategory = new(); + Dictionary> emotesByCategory = new(); foreach (var emote in emotePrototypes) { if(emote.Category == EmoteCategory.Invalid)