diff --git a/Content.Client/Lobby/UI/Loadouts/LoadoutContainer.xaml.cs b/Content.Client/Lobby/UI/Loadouts/LoadoutContainer.xaml.cs index 2ab40fb37d..2264cecd23 100644 --- a/Content.Client/Lobby/UI/Loadouts/LoadoutContainer.xaml.cs +++ b/Content.Client/Lobby/UI/Loadouts/LoadoutContainer.xaml.cs @@ -20,6 +20,12 @@ public sealed partial class LoadoutContainer : BoxContainer public Button Select => SelectButton; + public string? Text + { + get => SelectButton.Text; + set => SelectButton.Text = value; + } + public LoadoutContainer(ProtoId proto, bool disabled, FormattedMessage? reason) { RobustXamlLoader.Load(this); @@ -54,22 +60,9 @@ public sealed partial class LoadoutContainer : BoxContainer protected override void Dispose(bool disposing) { base.Dispose(disposing); - if (!disposing) return; _entManager.DeleteEntity(_entity); } - - public bool Pressed - { - get => SelectButton.Pressed; - set => SelectButton.Pressed = value; - } - - public string? Text - { - get => SelectButton.Text; - set => SelectButton.Text = value; - } } diff --git a/Content.Client/Lobby/UI/Loadouts/LoadoutGroupContainer.xaml b/Content.Client/Lobby/UI/Loadouts/LoadoutGroupContainer.xaml index 1e3eb14d3f..0deb1c82ba 100644 --- a/Content.Client/Lobby/UI/Loadouts/LoadoutGroupContainer.xaml +++ b/Content.Client/Lobby/UI/Loadouts/LoadoutGroupContainer.xaml @@ -1,10 +1,14 @@ - - + + -