Add group for loadouts (#36951)

Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
qrwas
2025-06-16 12:36:06 +03:00
committed by GitHub
parent d8b70a3887
commit f8cf4dc829
10 changed files with 295 additions and 56 deletions

View File

@@ -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<LoadoutPrototype> 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;
}
}