mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 04:30:57 +01:00
* Reapply "Remove some BUI boilerplate" (#30214)
This reverts commit cb0ba66be3.
* Fix gas tank
* Fix PA
* Fix microwave
* Comms console underwrap
* Fix rcd
* log wehs
This commit is contained in:
@@ -9,17 +9,23 @@ namespace Content.Client.NetworkConfigurator;
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class NetworkConfiguratorConfigurationMenu : FancyWindow
|
||||
{
|
||||
public event Action<string>? OnRemoveAddress;
|
||||
|
||||
public NetworkConfiguratorConfigurationMenu()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
Clear.StyleClasses.Add(StyleBase.ButtonOpenLeft);
|
||||
Clear.StyleClasses.Add(StyleNano.StyleClassButtonColorRed);
|
||||
DeviceList.OnRemoveAddress += args =>
|
||||
{
|
||||
OnRemoveAddress?.Invoke(args);
|
||||
};
|
||||
}
|
||||
|
||||
public void UpdateState(DeviceListUserInterfaceState state)
|
||||
{
|
||||
DeviceList.UpdateState(null, state.DeviceList);
|
||||
DeviceList.UpdateState(state.DeviceList, false);
|
||||
|
||||
Count.Text = Loc.GetString("network-configurator-ui-count-label", ("count", state.DeviceList.Count));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user