2022-09-11 18:56:21 -07:00
|
|
|
|
using Content.Client.UserInterface.Controls;
|
2022-06-10 03:28:24 +02:00
|
|
|
|
using Content.Shared.DeviceNetwork;
|
|
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.NetworkConfigurator;
|
|
|
|
|
|
|
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
|
public sealed partial class NetworkConfiguratorListMenu : FancyWindow
|
|
|
|
|
|
{
|
|
|
|
|
|
private readonly NetworkConfiguratorBoundUserInterface _ui;
|
|
|
|
|
|
public NetworkConfiguratorListMenu(NetworkConfiguratorBoundUserInterface ui)
|
|
|
|
|
|
{
|
|
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
|
|
|
|
|
|
|
|
_ui = ui;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateState(NetworkConfiguratorUserInterfaceState state)
|
|
|
|
|
|
{
|
|
|
|
|
|
DeviceCountLabel.Text = Loc.GetString("network-configurator-ui-count-label", ("count", state.DeviceList.Count));
|
2022-09-05 18:22:39 -07:00
|
|
|
|
DeviceList.UpdateState(_ui, state.DeviceList);
|
2022-06-10 03:28:24 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|