- Change namespace, and folder of FancyWindow to Content.Client.UserInterface.Controls - Change xaml reference from ui to controls in some places - Change ClientAlertsSystem from internal to public - Change namespace, and folder of HighDivider to Content.Client.UserInterface.Controls
26 lines
830 B
C#
26 lines
830 B
C#
using Content.Client.UserInterface.Controls;
|
|
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));
|
|
DeviceList.UpdateState(_ui, state.DeviceList);
|
|
}
|
|
}
|