* adds a link limit to device list * locale strings * uhhh what's efcore doing there * adds a UI for device list on the device * merge conflict fixing
30 lines
939 B
C#
30 lines
939 B
C#
using Content.Client.Stylesheets;
|
|
using Content.Client.UserInterface;
|
|
using Content.Shared.DeviceNetwork;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Client.Graphics;
|
|
|
|
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);
|
|
}
|
|
|
|
public void UpdateState(DeviceListUserInterfaceState state)
|
|
{
|
|
DeviceList.UpdateState(null, state.DeviceList);
|
|
|
|
Count.Text = Loc.GetString("network-configurator-ui-count-label", ("count", state.DeviceList.Count));
|
|
}
|
|
}
|