* Content - change the (should-be-obsolete) DisposeAllChildren into the more robust RemoveAllChildren. * Remove duplicate calls. --------- Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
32 lines
789 B
C#
32 lines
789 B
C#
using Content.Client.CrewManifest.UI;
|
|
using Content.Shared.CrewManifest;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.CrewManifest;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class CrewManifestUi : DefaultWindow
|
|
{
|
|
public CrewManifestUi()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
StationName.AddStyleClass("LabelBig");
|
|
}
|
|
|
|
public void Populate(string name, CrewManifestEntries? entries)
|
|
{
|
|
CrewManifestListing.RemoveAllChildren();
|
|
|
|
StationNameContainer.Visible = entries != null;
|
|
StationName.Text = name;
|
|
|
|
if (entries == null)
|
|
return;
|
|
|
|
CrewManifestListing.AddCrewManifestEntries(entries);
|
|
}
|
|
}
|