From d3a058a1a69a112bc6817daef596a545c099c301 Mon Sep 17 00:00:00 2001 From: RevengenRat <138193222+Ratyyy@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:55:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=B4=20=D1=81=20=D0=90=D0=94?= =?UTF-8?q?=D0=A2(=D0=BD=D1=83=D0=B6=D0=B4=D0=B0=D0=B5=D1=82=D1=81=D1=8F?= =?UTF-8?q?=20=D0=B2=20=D1=84=D0=B8=D0=BA=D1=81=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/ADT/ApathySystem.cs | 49 + .../ADT/BoomBox/UI/BoomBoxBoundUi.cs | 67 + .../ADT/BoomBox/UI/BoomBoxWindow.xaml | 25 + .../ADT/BoomBox/UI/BoomBoxWindow.xaml.cs | 34 + .../ADT/Changeling/ChangelingPanelSystem.cs | 104 ++ Content.Client/ADT/ChangelingEggsSystem.cs | 49 + .../UI/ReagentAnalyzerBoundUserInterface.cs | 71 + .../Chemistry/UI/ReagentAnalyzerWindow.xaml | 35 + .../UI/ReagentAnalyzerWindow.xaml.cs | 112 ++ .../CollectiveMind/CollectiveMindSystem.cs | 31 + .../ADT/Language/LanguageMenuUIController.cs | 51 + .../ADT/Language/LanguageMenuWindow.xaml | 18 + .../ADT/Language/LanguageMenuWindow.xaml.cs | 124 ++ .../ADT/Language/Systems/LanguageSystem.cs | 8 + .../Systems/TranslatorImplanterSystem.cs | 8 + .../NovakidFeatures/NovakidFeaturesSystem.cs | 31 + .../SlimeHair/SlimeHairBoundUserInterface.cs | 81 ++ .../ADT/SlimeHair/SlimeHairWindow.xaml | 9 + .../ADT/SlimeHair/SlimeHairWindow.xaml.cs | 49 + Content.Client/ADT/TailAnimantionSystem.cs | 70 + Content.Client/ADT/license.txt | 19 + Content.Client/Chat/Managers/IChatManager.cs | 1 + .../Felinid/CoughingUpHairballComponent.cs | 11 + .../ADT/Abilities/Felinid/FelinidComponent.cs | 20 + .../Abilities/Felinid/FelinidFoodComponent.cs | 5 + .../ADT/Abilities/Felinid/FelinidSystem.cs | 202 +++ .../Abilities/Felinid/HairballComponent.cs | 7 + .../ADT/BoomBoxTape/BoomBoxTapeComponent.cs | 25 + .../ADT/Boombox/BoomBoxComponent.cs | 39 + Content.Server/ADT/Boombox/BoomBoxSystem.cs | 299 +++++ .../ChangelingSlugSystem.Abilities.cs | 173 +++ .../EntitySystems/ChangelingSlugSystem.cs | 130 ++ .../EntitySystems/ChangelingSyntEggSystem.cs | 66 + .../ChangelingSystem.Abilities.cs | 1142 +++++++++++++++++ .../EntitySystems/ChangelingSystem.cs | 988 ++++++++++++++ .../Changeling/EntitySystems/DNARefresh.cs | 19 + .../EntitySystems/LingHallucinationSystem.cs | 86 ++ .../EntitySystems/LingHallucinationsSystem.cs | 103 ++ .../Components/ReagentAnalyzerComponent.cs | 17 + .../ADT/Chemistry/ReagentAnalyzerSystem.cs | 94 ++ .../CollectiveMind/CollectiveMindCommand.cs | 42 + .../ComponentalActions.Abilities.cs | 325 +++++ .../EntitySystems/ComponentalActions.cs | 151 +++ .../ADT/DNALocker/DNALockComponent.cs | 16 + .../ADT/DNALocker/DNALockerSystem.cs | 62 + .../ADT/EmitEmote/EmitEmoteSystem.cs | 44 + .../ExternalNetworkComponent.cs | 32 + .../ExternalNetwork/ExternalNetworkSystem.cs | 156 +++ .../ADT/Hemophilia/HemophiliaSystem.cs | 31 + .../HiddenDescriptionComponent.cs | 56 + .../HiddenDescriptionSystem.cs | 37 + .../ADT/Jumpboots/JumpbootsSystem.cs | 84 ++ .../Language/Commands/ListLanguagesCommand.cs | 39 + .../Language/Commands/SayLanguageCommand.cs | 53 + .../Commands/SelectLanguageCommand.cs | 48 + .../ADT/Language/LanguageSystem.Windows.cs | 40 + Content.Server/ADT/Language/LanguageSystem.cs | 319 +++++ .../ADT/Language/TranslatorImplanterSystem.cs | 79 ++ .../ADT/Language/TranslatorSystem.cs | 243 ++++ .../ADT/Lizard/LizardBloodComponent.cs | 144 +++ .../ADT/Lizard/LizardBloodSystem.cs | 119 ++ .../NarcoticEffects/HallucinationSystem.cs | 89 ++ .../NarcoHallucinationsSystem.cs | 98 ++ .../ADT/SecretTrans/SecretTransComponent.cs | 13 + .../ADT/SecretTrans/SecretTransSystem.cs | 25 + Content.Server/ADT/SecretTrans/blank.txt | 1 + .../CentComShuttleComponent.cs | 10 + .../SizeAttribute/SizeAttributeComponent.cs | 14 + .../ADT/SizeAttribute/SizeAttributeSystem.cs | 94 ++ .../SizeAttributeWhitelistComponent.cs | 40 + .../ADT/SlimeHair/SlimeHairComponent.cs | 61 + .../SlimeHair/SlimeHairSystem.Abilities.cs | 41 + .../ADT/SlimeHair/SlimeHairSystem.cs | 323 +++++ .../SmokeOnTriggerComponent.cs | 20 + .../Components/TraderSpawnRuleComponent.cs | 12 + .../StationEvents/Events/TraderSpawnRule.cs | 26 + .../SwitchableWeaponSystem.cs | 83 ++ .../ADT/Wizard/WizardSystem.Abilities.cs | 208 +++ Content.Server/ADT/Wizard/WizardSystem.cs | 65 + Content.Server/ADT/license.txt | 19 + .../Body/Components/BloodstreamComponent.cs | 3 +- Content.Shared/ADT/ACCVars/ACCVars.cs | 13 + Content.Shared/ADT/ApathyComponent.cs | 15 + Content.Shared/ADT/Boombox/SharedBoomBox.cs | 50 + .../Components/AbsorbedComponent.cs | 6 + .../Components/ChangelingComponent.cs | 465 +++++++ .../Changeling/Components/LingEggsHolder.cs | 23 + .../Components/LingHallucinationComponent.cs | 8 + .../Components/LingHallucinationsComponent.cs | 34 + .../Components/LingSlugComponent.cs | 49 + .../Components/SyntLingEggsHolder.cs | 20 + .../ADT/Changeling/SharedChangeling.cs | 174 +++ .../ADT/Chemistry/SharedReagentAnalyzer.cs | 48 + .../ADT/Cloning/ITransferredByCloning.cs | 8 + .../CollectiveMind/CollectiveMindComponent.cs | 21 + .../Components/ComponentActionSpawnData.cs | 20 + .../Components/HealActComponent.cs | 37 + .../Components/InvisibilityActComponent.cs | 30 + .../Components/JumpActComponent.cs | 28 + .../Components/LevitationActComponent.cs | 39 + .../Components/ProjectileActComponent.cs | 35 + .../Components/StasisHealActComponent.cs | 40 + .../Components/TeleportActComponent.cs | 25 + .../SharedComponentalActions.cs | 34 + .../ADT/EmitEmote/BaseEmitEmoteComponent.cs | 13 + .../ADT/EmitEmote/EmitEmoteOnUseComponent.cs | 14 + .../ADT/Item/PseudoItemComponent.cs | 19 + .../ADT/Jumpboots/JumpbootsComponent.cs | 32 + .../ADT/Jumpboots/SharedJumpbootsSystem.cs | 45 + .../Language/Components/CommonLangUnknown.cs | 14 + .../Components/LanguageSpeakerComponent.cs | 53 + .../Components/TranslatorComponent.cs | 93 ++ .../TranslatorImplanterComponent.cs | 34 + .../UniversalLanguageSpeacerComponent.cs | 11 + .../ADT/Language/LanguagePrototype.cs | 28 + .../Language/Systems/SharedLanguageSystem.cs | 73 ++ .../SharedTranslatorImplanterSystem.cs | 36 + .../Systems/SharedTranslatorSystem.cs | 34 + .../Components/HallucinationComponent.cs | 6 + .../NarcoHallucinationsComponent.cs | 23 + .../NovakidGlowingComponent.cs | 13 + .../ADT/OwOAccent/OwOAccentActionEvent.cs | 5 + Content.Shared/ADT/Psionics/Events.cs | 52 + .../ADT/Psionics/PsychokinesisComponent.cs | 18 + .../ADT/SlimeHair/SharedSlimeHairSystem.cs | 148 +++ .../SwitchableWeaponComponent.cs | 51 + .../ADT/Wizard/Components/WizardSpawnData.cs | 20 + Content.Shared/ADT/Wizard/SharedWizard.cs | 65 + .../ADT/hemophilia/HemophiliaComponent.cs | 10 + Content.Shared/ADT/license.txt | 19 + Content.Shared/Eye/VisibilityFlags.cs | 1 + 131 files changed, 9988 insertions(+), 1 deletion(-) create mode 100644 Content.Client/ADT/ApathySystem.cs create mode 100644 Content.Client/ADT/BoomBox/UI/BoomBoxBoundUi.cs create mode 100644 Content.Client/ADT/BoomBox/UI/BoomBoxWindow.xaml create mode 100644 Content.Client/ADT/BoomBox/UI/BoomBoxWindow.xaml.cs create mode 100644 Content.Client/ADT/Changeling/ChangelingPanelSystem.cs create mode 100644 Content.Client/ADT/ChangelingEggsSystem.cs create mode 100644 Content.Client/ADT/Chemistry/UI/ReagentAnalyzerBoundUserInterface.cs create mode 100644 Content.Client/ADT/Chemistry/UI/ReagentAnalyzerWindow.xaml create mode 100644 Content.Client/ADT/Chemistry/UI/ReagentAnalyzerWindow.xaml.cs create mode 100644 Content.Client/ADT/CollectiveMind/CollectiveMindSystem.cs create mode 100644 Content.Client/ADT/Language/LanguageMenuUIController.cs create mode 100644 Content.Client/ADT/Language/LanguageMenuWindow.xaml create mode 100644 Content.Client/ADT/Language/LanguageMenuWindow.xaml.cs create mode 100644 Content.Client/ADT/Language/Systems/LanguageSystem.cs create mode 100644 Content.Client/ADT/Language/Systems/TranslatorImplanterSystem.cs create mode 100644 Content.Client/ADT/NovakidFeatures/NovakidFeaturesSystem.cs create mode 100644 Content.Client/ADT/SlimeHair/SlimeHairBoundUserInterface.cs create mode 100644 Content.Client/ADT/SlimeHair/SlimeHairWindow.xaml create mode 100644 Content.Client/ADT/SlimeHair/SlimeHairWindow.xaml.cs create mode 100644 Content.Client/ADT/TailAnimantionSystem.cs create mode 100644 Content.Client/ADT/license.txt create mode 100644 Content.Server/ADT/Abilities/Felinid/CoughingUpHairballComponent.cs create mode 100644 Content.Server/ADT/Abilities/Felinid/FelinidComponent.cs create mode 100644 Content.Server/ADT/Abilities/Felinid/FelinidFoodComponent.cs create mode 100644 Content.Server/ADT/Abilities/Felinid/FelinidSystem.cs create mode 100644 Content.Server/ADT/Abilities/Felinid/HairballComponent.cs create mode 100644 Content.Server/ADT/BoomBoxTape/BoomBoxTapeComponent.cs create mode 100644 Content.Server/ADT/Boombox/BoomBoxComponent.cs create mode 100644 Content.Server/ADT/Boombox/BoomBoxSystem.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/ChangelingSlugSystem.Abilities.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/ChangelingSlugSystem.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/ChangelingSyntEggSystem.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/ChangelingSystem.Abilities.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/ChangelingSystem.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/DNARefresh.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/LingHallucinationSystem.cs create mode 100644 Content.Server/ADT/Changeling/EntitySystems/LingHallucinationsSystem.cs create mode 100644 Content.Server/ADT/Chemistry/Components/ReagentAnalyzerComponent.cs create mode 100644 Content.Server/ADT/Chemistry/ReagentAnalyzerSystem.cs create mode 100644 Content.Server/ADT/CollectiveMind/CollectiveMindCommand.cs create mode 100644 Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.Abilities.cs create mode 100644 Content.Server/ADT/ComponentalActions/EntitySystems/ComponentalActions.cs create mode 100644 Content.Server/ADT/DNALocker/DNALockComponent.cs create mode 100644 Content.Server/ADT/DNALocker/DNALockerSystem.cs create mode 100644 Content.Server/ADT/EmitEmote/EmitEmoteSystem.cs create mode 100644 Content.Server/ADT/ExternalNetwork/ExternalNetworkComponent.cs create mode 100644 Content.Server/ADT/ExternalNetwork/ExternalNetworkSystem.cs create mode 100644 Content.Server/ADT/Hemophilia/HemophiliaSystem.cs create mode 100644 Content.Server/ADT/HiddenDescription/HiddenDescriptionComponent.cs create mode 100644 Content.Server/ADT/HiddenDescription/HiddenDescriptionSystem.cs create mode 100644 Content.Server/ADT/Jumpboots/JumpbootsSystem.cs create mode 100644 Content.Server/ADT/Language/Commands/ListLanguagesCommand.cs create mode 100644 Content.Server/ADT/Language/Commands/SayLanguageCommand.cs create mode 100644 Content.Server/ADT/Language/Commands/SelectLanguageCommand.cs create mode 100644 Content.Server/ADT/Language/LanguageSystem.Windows.cs create mode 100644 Content.Server/ADT/Language/LanguageSystem.cs create mode 100644 Content.Server/ADT/Language/TranslatorImplanterSystem.cs create mode 100644 Content.Server/ADT/Language/TranslatorSystem.cs create mode 100644 Content.Server/ADT/Lizard/LizardBloodComponent.cs create mode 100644 Content.Server/ADT/Lizard/LizardBloodSystem.cs create mode 100644 Content.Server/ADT/NarcoticEffects/HallucinationSystem.cs create mode 100644 Content.Server/ADT/NarcoticEffects/NarcoHallucinationsSystem.cs create mode 100644 Content.Server/ADT/SecretTrans/SecretTransComponent.cs create mode 100644 Content.Server/ADT/SecretTrans/SecretTransSystem.cs create mode 100644 Content.Server/ADT/SecretTrans/blank.txt create mode 100644 Content.Server/ADT/ShuttleDroneCentCom/CentComShuttleComponent.cs create mode 100644 Content.Server/ADT/SizeAttribute/SizeAttributeComponent.cs create mode 100644 Content.Server/ADT/SizeAttribute/SizeAttributeSystem.cs create mode 100644 Content.Server/ADT/SizeAttribute/SizeAttributeWhitelistComponent.cs create mode 100644 Content.Server/ADT/SlimeHair/SlimeHairComponent.cs create mode 100644 Content.Server/ADT/SlimeHair/SlimeHairSystem.Abilities.cs create mode 100644 Content.Server/ADT/SlimeHair/SlimeHairSystem.cs create mode 100644 Content.Server/ADT/SmokeGrenadeComponent/SmokeOnTriggerComponent.cs create mode 100644 Content.Server/ADT/StationEvents/Components/TraderSpawnRuleComponent.cs create mode 100644 Content.Server/ADT/StationEvents/Events/TraderSpawnRule.cs create mode 100644 Content.Server/ADT/SwitchableWeapon/SwitchableWeaponSystem.cs create mode 100644 Content.Server/ADT/Wizard/WizardSystem.Abilities.cs create mode 100644 Content.Server/ADT/Wizard/WizardSystem.cs create mode 100644 Content.Server/ADT/license.txt create mode 100644 Content.Shared/ADT/ACCVars/ACCVars.cs create mode 100644 Content.Shared/ADT/ApathyComponent.cs create mode 100644 Content.Shared/ADT/Boombox/SharedBoomBox.cs create mode 100644 Content.Shared/ADT/Changeling/Components/AbsorbedComponent.cs create mode 100644 Content.Shared/ADT/Changeling/Components/ChangelingComponent.cs create mode 100644 Content.Shared/ADT/Changeling/Components/LingEggsHolder.cs create mode 100644 Content.Shared/ADT/Changeling/Components/LingHallucinationComponent.cs create mode 100644 Content.Shared/ADT/Changeling/Components/LingHallucinationsComponent.cs create mode 100644 Content.Shared/ADT/Changeling/Components/LingSlugComponent.cs create mode 100644 Content.Shared/ADT/Changeling/Components/SyntLingEggsHolder.cs create mode 100644 Content.Shared/ADT/Changeling/SharedChangeling.cs create mode 100644 Content.Shared/ADT/Chemistry/SharedReagentAnalyzer.cs create mode 100644 Content.Shared/ADT/Cloning/ITransferredByCloning.cs create mode 100644 Content.Shared/ADT/CollectiveMind/CollectiveMindComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/ComponentActionSpawnData.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/HealActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/InvisibilityActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/JumpActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/LevitationActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/ProjectileActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/StasisHealActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/Components/TeleportActComponent.cs create mode 100644 Content.Shared/ADT/ComponentalActions/SharedComponentalActions.cs create mode 100644 Content.Shared/ADT/EmitEmote/BaseEmitEmoteComponent.cs create mode 100644 Content.Shared/ADT/EmitEmote/EmitEmoteOnUseComponent.cs create mode 100644 Content.Shared/ADT/Item/PseudoItemComponent.cs create mode 100644 Content.Shared/ADT/Jumpboots/JumpbootsComponent.cs create mode 100644 Content.Shared/ADT/Jumpboots/SharedJumpbootsSystem.cs create mode 100644 Content.Shared/ADT/Language/Components/CommonLangUnknown.cs create mode 100644 Content.Shared/ADT/Language/Components/LanguageSpeakerComponent.cs create mode 100644 Content.Shared/ADT/Language/Components/TranslatorComponent.cs create mode 100644 Content.Shared/ADT/Language/Components/TranslatorImplanterComponent.cs create mode 100644 Content.Shared/ADT/Language/Components/UniversalLanguageSpeacerComponent.cs create mode 100644 Content.Shared/ADT/Language/LanguagePrototype.cs create mode 100644 Content.Shared/ADT/Language/Systems/SharedLanguageSystem.cs create mode 100644 Content.Shared/ADT/Language/Systems/SharedTranslatorImplanterSystem.cs create mode 100644 Content.Shared/ADT/Language/Systems/SharedTranslatorSystem.cs create mode 100644 Content.Shared/ADT/NarcoticEffect/Components/HallucinationComponent.cs create mode 100644 Content.Shared/ADT/NarcoticEffect/Components/NarcoHallucinationsComponent.cs create mode 100644 Content.Shared/ADT/NovakidFeatures/NovakidGlowingComponent.cs create mode 100644 Content.Shared/ADT/OwOAccent/OwOAccentActionEvent.cs create mode 100644 Content.Shared/ADT/Psionics/Events.cs create mode 100644 Content.Shared/ADT/Psionics/PsychokinesisComponent.cs create mode 100644 Content.Shared/ADT/SlimeHair/SharedSlimeHairSystem.cs create mode 100644 Content.Shared/ADT/SwitchableWeapon/SwitchableWeaponComponent.cs create mode 100644 Content.Shared/ADT/Wizard/Components/WizardSpawnData.cs create mode 100644 Content.Shared/ADT/Wizard/SharedWizard.cs create mode 100644 Content.Shared/ADT/hemophilia/HemophiliaComponent.cs create mode 100644 Content.Shared/ADT/license.txt diff --git a/Content.Client/ADT/ApathySystem.cs b/Content.Client/ADT/ApathySystem.cs new file mode 100644 index 0000000000..f1c2bff109 --- /dev/null +++ b/Content.Client/ADT/ApathySystem.cs @@ -0,0 +1,49 @@ +using Content.Shared.Drugs; +using Robust.Client.Graphics; +using Robust.Client.Player; +using Robust.Shared.Player; +using Content.Shared.Alert; +using Content.Client.UserInterface.Systems.DamageOverlays; +using Content.Shared.ADT; + +namespace Content.Client.ADT; + +public sealed class ApathySystem : EntitySystem +{ + [Dependency] private readonly IPlayerManager _player = default!; + [Dependency] private readonly AlertsSystem _alertsSystem = default!; + public static string ApathyKey = "Apathy"; + + public override void Initialize() + { + base.Initialize(); + + SubscribeLocalEvent(OnInit); + SubscribeLocalEvent(OnShutdown); + SubscribeLocalEvent(OnPlayerAttached); + SubscribeLocalEvent(OnPlayerDetached); + + } + + private void OnInit(EntityUid uid, ApathyComponent component, ComponentInit args) + { + if (_player.LocalPlayer?.ControlledEntity == uid) + _alertsSystem.ShowAlert(uid, component.Alert); + } + + private void OnShutdown(EntityUid uid, ApathyComponent component, ComponentShutdown args) + { + if (_player.LocalPlayer?.ControlledEntity == uid) + _alertsSystem.ClearAlert(uid, component.Alert); + } + + private void OnPlayerAttached(EntityUid uid, ApathyComponent component, LocalPlayerAttachedEvent args) + { + _alertsSystem.ShowAlert(uid, component.Alert); + } + + private void OnPlayerDetached(EntityUid uid, ApathyComponent component, LocalPlayerDetachedEvent args) + { + _alertsSystem.ClearAlert(uid, component.Alert); + } +} diff --git a/Content.Client/ADT/BoomBox/UI/BoomBoxBoundUi.cs b/Content.Client/ADT/BoomBox/UI/BoomBoxBoundUi.cs new file mode 100644 index 0000000000..db3a6057ba --- /dev/null +++ b/Content.Client/ADT/BoomBox/UI/BoomBoxBoundUi.cs @@ -0,0 +1,67 @@ +using Content.Shared.BoomBox; +using JetBrains.Annotations; +using Robust.Client.GameObjects; + +namespace Content.Client.ADT.BoomBox.UI; + +[UsedImplicitly] +public sealed class BoomBoxBoundUi : BoundUserInterface +{ + [ViewVariables] + private BoomBoxWindow? _window; + + public BoomBoxBoundUi(EntityUid owner, Enum uiKey) : base(owner, uiKey) + { + } + + protected override void Open() + { + base.Open(); + + _window = new BoomBoxWindow(); + _window.OpenCentered(); + + _window.OnClose += Close; + _window.MinusVolButtonPressed += OnMinusVolButtonPressed; + _window.PlusVolButtonPressed += OnPlusVolButtonPressed; + _window.StartButtonPressed += OnStartButtonPressed; + _window.StopButtonPressed += OnStopButtonPressed; + } + + private void OnMinusVolButtonPressed() + { + SendMessage(new BoomBoxMinusVolMessage()); + } + + private void OnPlusVolButtonPressed() + { + SendMessage(new BoomBoxPlusVolMessage()); + } + + private void OnStartButtonPressed() + { + SendMessage(new BoomBoxStartMessage()); + } + + private void OnStopButtonPressed() + { + SendMessage(new BoomBoxStopMessage()); + } + + protected override void UpdateState(BoundUserInterfaceState state) + { + base.UpdateState(state); + + if (_window == null || state is not BoomBoxUiState cast) + return; + + _window.UpdateState(cast); + } + + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + if (disposing) + _window?.Dispose(); + } +} diff --git a/Content.Client/ADT/BoomBox/UI/BoomBoxWindow.xaml b/Content.Client/ADT/BoomBox/UI/BoomBoxWindow.xaml new file mode 100644 index 0000000000..a3653d0557 --- /dev/null +++ b/Content.Client/ADT/BoomBox/UI/BoomBoxWindow.xaml @@ -0,0 +1,25 @@ + + + +