Skip to content

Commit 5ebd146

Browse files
authored
Merge branch 'space-wizards:master' into master
2 parents 8d1adc3 + 8548e06 commit 5ebd146

112 files changed

Lines changed: 1572 additions & 1302 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Content.Client/Atmos/UI/GasPressurePumpBoundUserInterface.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using Content.Shared.Atmos;
1+
using Content.Shared.Atmos;
22
using Content.Shared.Atmos.Components;
33
using Content.Shared.Atmos.Piping.Binary.Components;
44
using Content.Shared.IdentityManagement;
5-
using Content.Shared.Localizations;
65
using JetBrains.Annotations;
76
using Robust.Client.UserInterface;
87

Content.Client/Cargo/Systems/CargoSystem.Telepad.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,18 @@ private void OnChangeData(EntityUid uid, SpriteComponent? sprite = null)
6767
if (!Resolve(uid, ref sprite))
6868
return;
6969

70+
if (!TryComp<AnimationPlayerComponent>(uid, out var player))
71+
return;
72+
7073
_appearance.TryGetData<CargoTelepadState?>(uid, CargoTelepadVisuals.State, out var state);
71-
AnimationPlayerComponent? player = null;
7274

7375
switch (state)
7476
{
7577
case CargoTelepadState.Teleporting:
7678
if (_player.HasRunningAnimation(uid, TelepadBeamKey))
7779
return;
7880
_player.Stop(uid, player, TelepadIdleKey);
79-
_player.Play(uid, player, CargoTelepadBeamAnimation, TelepadBeamKey);
81+
_player.Play((uid, player), CargoTelepadBeamAnimation, TelepadBeamKey);
8082
break;
8183
case CargoTelepadState.Unpowered:
8284
sprite.LayerSetVisible(CargoTelepadLayers.Beam, false);
@@ -90,7 +92,7 @@ private void OnChangeData(EntityUid uid, SpriteComponent? sprite = null)
9092
_player.HasRunningAnimation(uid, player, TelepadBeamKey))
9193
return;
9294

93-
_player.Play(uid, player, CargoTelepadIdleAnimation, TelepadIdleKey);
95+
_player.Play((uid, player), CargoTelepadIdleAnimation, TelepadIdleKey);
9496
break;
9597
}
9698
}

Content.Client/Chat/UI/EmotesMenu.xaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

Content.Client/Chat/UI/EmotesMenu.xaml.cs

Lines changed: 0 additions & 111 deletions
This file was deleted.

Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
using Robust.Client.UserInterface;
77
using Robust.Client.UserInterface.Controls;
88
using Robust.Client.UserInterface.XAML;
9-
using Robust.Client.Utility;
109
using Robust.Shared.Prototypes;
1110
using Robust.Shared.Utility;
1211
using System.Linq;
1312
using System.Numerics;
1413
using Content.Shared.FixedPoint;
1514
using Robust.Client.Graphics;
1615
using static Robust.Client.UserInterface.Controls.BoxContainer;
16+
using Robust.Client.GameObjects;
1717

1818
namespace Content.Client.Chemistry.UI
1919
{
@@ -24,6 +24,10 @@ namespace Content.Client.Chemistry.UI
2424
public sealed partial class ChemMasterWindow : FancyWindow
2525
{
2626
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
27+
[Dependency] private readonly IEntityManager _entityManager = default!;
28+
29+
private readonly SpriteSystem _sprite;
30+
2731
public event Action<BaseButton.ButtonEventArgs, ReagentButton>? OnReagentButtonPressed;
2832
public readonly Button[] PillTypeButtons;
2933

@@ -38,6 +42,8 @@ public ChemMasterWindow()
3842
RobustXamlLoader.Load(this);
3943
IoCManager.InjectDependencies(this);
4044

45+
_sprite = _entityManager.System<SpriteSystem>();
46+
4147
// Pill type selection buttons, in total there are 20 pills.
4248
// Pill rsi file should have states named as pill1, pill2, and so on.
4349
var resourcePath = new ResPath(PillsRsiPath);
@@ -69,7 +75,7 @@ public ChemMasterWindow()
6975
var specifier = new SpriteSpecifier.Rsi(resourcePath, "pill" + (i + 1));
7076
TextureRect pillTypeTexture = new TextureRect
7177
{
72-
Texture = specifier.Frame0(),
78+
Texture = _sprite.Frame0(specifier),
7379
TextureScale = new Vector2(1.75f, 1.75f),
7480
Stretch = TextureRect.StretchMode.KeepCentered,
7581
};

Content.Client/Chemistry/Visualizers/FoamVisualizerSystem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Content.Shared.Chemistry.Components;
1+
using Content.Shared.Chemistry.Components;
22
using Robust.Client.Animations;
33
using Robust.Client.GameObjects;
44
using Robust.Shared.Timing;
@@ -37,7 +37,7 @@ public override void Update(float frameTime)
3737
if (TryComp(uid, out AnimationPlayerComponent? animPlayer)
3838
&& !AnimationSystem.HasRunningAnimation(uid, animPlayer, FoamVisualsComponent.AnimationKey))
3939
{
40-
AnimationSystem.Play(uid, animPlayer, comp.Animation, FoamVisualsComponent.AnimationKey);
40+
AnimationSystem.Play((uid, animPlayer), comp.Animation, FoamVisualsComponent.AnimationKey);
4141
}
4242
}
4343
}

Content.Client/Chemistry/Visualizers/VaporVisualizerSystem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Content.Shared.Vapor;
1+
using Content.Shared.Vapor;
22
using Robust.Client.Animations;
33
using Robust.Client.GameObjects;
44

@@ -41,7 +41,7 @@ private void OnComponentInit(EntityUid uid, VaporVisualsComponent comp, Componen
4141
TryComp<AnimationPlayerComponent>(uid, out var animPlayer) &&
4242
!AnimationSystem.HasRunningAnimation(uid, animPlayer, VaporVisualsComponent.AnimationKey))
4343
{
44-
AnimationSystem.Play(uid, animPlayer, comp.VaporFlick, VaporVisualsComponent.AnimationKey);
44+
AnimationSystem.Play((uid, animPlayer), comp.VaporFlick, VaporVisualsComponent.AnimationKey);
4545
}
4646
}
4747

Content.Client/Examine/ExamineButton.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
using Content.Client.ContextMenu.UI;
2-
using Content.Client.Stylesheets;
31
using Content.Shared.Verbs;
4-
using Robust.Client.AutoGenerated;
5-
using Robust.Client.Graphics;
2+
using Robust.Client.GameObjects;
63
using Robust.Client.UserInterface.Controls;
74
using Robust.Client.UserInterface.CustomControls;
8-
using Robust.Client.UserInterface.XAML;
95
using Robust.Client.Utility;
106
using Robust.Shared.Utility;
117

@@ -27,14 +23,16 @@ public sealed class ExamineButton : ContainerButton
2723
public TextureRect Icon;
2824

2925
public ExamineVerb Verb;
26+
private SpriteSystem _sprite;
3027

31-
public ExamineButton(ExamineVerb verb)
28+
public ExamineButton(ExamineVerb verb, SpriteSystem spriteSystem)
3229
{
3330
Margin = new Thickness(Thickness, Thickness, Thickness, Thickness);
3431

3532
SetOnlyStyleClass(StyleClassExamineButton);
3633

3734
Verb = verb;
35+
_sprite = spriteSystem;
3836

3937
if (verb.Disabled)
4038
{
@@ -61,7 +59,7 @@ public ExamineButton(ExamineVerb verb)
6159

6260
if (verb.Icon != null)
6361
{
64-
Icon.Texture = verb.Icon.Frame0();
62+
Icon.Texture = _sprite.Frame0(verb.Icon);
6563
Icon.Stretch = TextureRect.StretchMode.KeepAspectCentered;
6664

6765
AddChild(Icon);

Content.Client/Examine/ExamineSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public sealed class ExamineSystem : ExamineSystemShared
3030
[Dependency] private readonly IPlayerManager _playerManager = default!;
3131
[Dependency] private readonly IEyeManager _eyeManager = default!;
3232
[Dependency] private readonly VerbSystem _verbSystem = default!;
33+
[Dependency] private readonly SpriteSystem _sprite = default!;
3334

3435
public const string StyleClassEntityTooltip = "entity-tooltip";
3536

@@ -332,7 +333,7 @@ private void AddVerbsToTooltip(IEnumerable<Verb> verbs)
332333
if (!examine.ShowOnExamineTooltip)
333334
continue;
334335

335-
var button = new ExamineButton(examine);
336+
var button = new ExamineButton(examine, _sprite);
336337

337338
if (examine.HoverVerb)
338339
{

Content.Client/Light/EntitySystems/RotatingLightSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void PlayAnimation(EntityUid uid, RotatingLightComponent? comp = null, An
8585

8686
if (!_animations.HasRunningAnimation(uid, player, AnimKey))
8787
{
88-
_animations.Play(uid, player, GetAnimation(comp.Speed), AnimKey);
88+
_animations.Play((uid, player), GetAnimation(comp.Speed), AnimKey);
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)