2022-06-10 03:28:24 +02:00
|
|
|
|
using Content.Client.Stylesheets;
|
2022-09-11 18:56:21 -07:00
|
|
|
|
using Content.Client.UserInterface.Controls;
|
2022-09-05 18:22:39 -07:00
|
|
|
|
using Content.Shared.DeviceNetwork;
|
2022-06-10 03:28:24 +02:00
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.NetworkConfigurator;
|
|
|
|
|
|
|
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
|
public sealed partial class NetworkConfiguratorConfigurationMenu : FancyWindow
|
|
|
|
|
|
{
|
|
|
|
|
|
public NetworkConfiguratorConfigurationMenu()
|
|
|
|
|
|
{
|
|
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
|
|
|
|
|
|
|
|
Clear.StyleClasses.Add(StyleBase.ButtonOpenLeft);
|
|
|
|
|
|
Clear.StyleClasses.Add(StyleNano.StyleClassButtonColorRed);
|
|
|
|
|
|
}
|
2022-09-05 18:22:39 -07:00
|
|
|
|
|
|
|
|
|
|
public void UpdateState(DeviceListUserInterfaceState state)
|
|
|
|
|
|
{
|
|
|
|
|
|
DeviceList.UpdateState(null, state.DeviceList);
|
|
|
|
|
|
|
|
|
|
|
|
Count.Text = Loc.GetString("network-configurator-ui-count-label", ("count", state.DeviceList.Count));
|
|
|
|
|
|
}
|
2022-06-10 03:28:24 +02:00
|
|
|
|
}
|