diff --git a/Content.Client/_Amour/Animation/SharebleAnimationSystem.cs b/Content.Client/_Amour/Animation/SharebleAnimationSystem.cs index 8c896bbed0..9430dfa85c 100644 --- a/Content.Client/_Amour/Animation/SharebleAnimationSystem.cs +++ b/Content.Client/_Amour/Animation/SharebleAnimationSystem.cs @@ -46,8 +46,11 @@ public sealed class SharebleAnimationSystem : SharedAnimationSystem public override void Play(EntityUid uid,AnimationData data, string animationId = "funny") { - if(_animation.HasRunningAnimation(uid,animationId)) - return; + if (_animation.HasRunningAnimation(uid, animationId)) + { + Logger.Error($"Entity {ToPrettyString(uid)} has running animation {animationId}"); + _animation.Stop(uid,animationId); + } var animation = ParseAnimation(data); _animation.Play(uid,animation,animationId); diff --git a/Content.Client/_Amour/InteractionPanel/InteractionPanelEui.cs b/Content.Client/_Amour/InteractionPanel/InteractionPanelEui.cs index e5fcefe426..ba18999c3e 100644 --- a/Content.Client/_Amour/InteractionPanel/InteractionPanelEui.cs +++ b/Content.Client/_Amour/InteractionPanel/InteractionPanelEui.cs @@ -19,6 +19,7 @@ public sealed class InteractionPanelEui : BaseEui _interactionPanelWindow = new UI.InteractionPanelWindow(); _interactionPanelWindow.OnClose += () => SendMessage(new CloseEuiMessage()); _interactionPanelWindow.OnInteraction += InteractionPanelWindowOnInteraction; + _interactionPanelWindow.OnUpdateRequired += () => SendMessage(new InteractionUpdateMessage()); } private void InteractionPanelWindowOnInteraction(string id) diff --git a/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelButton.xaml.cs b/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelButton.xaml.cs index afe738a8ce..243c8601ce 100644 --- a/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelButton.xaml.cs +++ b/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelButton.xaml.cs @@ -6,10 +6,21 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client._Amour.InteractionPanel.UI; [GenerateTypedNameReferences] -public sealed partial class InteractionPanelButton : ContainerButton +public sealed partial class InteractionPanelButton : Button { public event Action? OnInteraction; + private Color _color = Color.White; + public Color Color + { + get => _color; + set + { + _color = value; + ModulateSelfOverride = value; + } + } + private string _interactionId = "Interaction"; public string InteractionId { diff --git a/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelWindow.xaml b/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelWindow.xaml index e96c2e42ab..5810675815 100644 --- a/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelWindow.xaml +++ b/Content.Client/_Amour/InteractionPanel/UI/InteractionPanelWindow.xaml @@ -3,7 +3,7 @@ xmlns:controls1="clr-namespace:Content.Client.UserInterface.Controls" xmlns:ui="clr-namespace:Content.Client._Amour.InteractionPanel.UI" Title="{Loc 'interaction-panel-title'}" - MinSize="400 500"> + MinSize="500 500"> @@ -35,8 +35,16 @@ - + + + +