From 2e8ce993808dcab2c234c1f7280dc4dee1fc00b5 Mon Sep 17 00:00:00 2001 From: EnefFlow Date: Thu, 16 Nov 2023 15:16:27 +0300 Subject: [PATCH] spell radial texture fix --- .../_White/Cult/UI/SpellSelector/SpellSelectorBUI.cs | 3 ++- Resources/Prototypes/_White/Actions/cult_actions.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/_White/Cult/UI/SpellSelector/SpellSelectorBUI.cs b/Content.Client/_White/Cult/UI/SpellSelector/SpellSelectorBUI.cs index 80dd458392..9173848033 100644 --- a/Content.Client/_White/Cult/UI/SpellSelector/SpellSelectorBUI.cs +++ b/Content.Client/_White/Cult/UI/SpellSelector/SpellSelectorBUI.cs @@ -45,7 +45,8 @@ public sealed class SpellSelectorBUI : BoundUserInterface if (icon == null) continue; - var button = _radialContainer.AddButton(proto.Name, icon.ToString()); + var texture = icon.Frame0(); + var button = _radialContainer.AddButton(proto.Name, texture); button.Controller.OnPressed += _ => { diff --git a/Resources/Prototypes/_White/Actions/cult_actions.yml b/Resources/Prototypes/_White/Actions/cult_actions.yml index 94d7c6d124..43743a8d73 100644 --- a/Resources/Prototypes/_White/Actions/cult_actions.yml +++ b/Resources/Prototypes/_White/Actions/cult_actions.yml @@ -8,7 +8,7 @@ useDelay: 50 canTargetSelf: false icon: - sprite: /Objects/Materials/Sheets/metal.rsi + sprite: /Textures/Objects/Materials/Sheets/metal.rsi state: steel event: !type:CultTwistedConstructionActionEvent