fix lathe syncing and tweak ui (#17489)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using Content.Shared.Research.Components;
|
||||
using Content.Shared.Research.Prototypes;
|
||||
using Content.Shared.Research.Systems;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
@@ -15,7 +13,7 @@ public sealed class ResearchConsoleBoundUserInterface : BoundUserInterface
|
||||
|
||||
public ResearchConsoleBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey)
|
||||
{
|
||||
SendMessage(new ConsoleServerSyncMessage());
|
||||
|
||||
}
|
||||
|
||||
protected override void Open()
|
||||
@@ -36,11 +34,6 @@ public sealed class ResearchConsoleBoundUserInterface : BoundUserInterface
|
||||
SendMessage(new ConsoleServerSelectionMessage());
|
||||
};
|
||||
|
||||
_consoleMenu.OnSyncButtonPressed += () =>
|
||||
{
|
||||
SendMessage(new ConsoleServerSyncMessage());
|
||||
};
|
||||
|
||||
_consoleMenu.OnClose += Close;
|
||||
|
||||
_consoleMenu.OpenCentered();
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
<!-- This is where we put all of the little graphics that display discipline tiers!-->
|
||||
</BoxContainer>
|
||||
<BoxContainer Orientation="Vertical" VerticalExpand="True" HorizontalAlignment="Right">
|
||||
<Button Name="ServerButton" Text="{Loc 'research-console-menu-server-selection-button'}" VerticalExpand="True"/>
|
||||
<Control MinHeight="5"/>
|
||||
<!--todo is this button even necessary?!-->
|
||||
<Button Name="SyncButton" Text="{Loc 'research-console-menu-server-sync-button'}" VerticalExpand="True"/>
|
||||
<Button Name="ServerButton" Text="{Loc 'research-console-menu-server-selection-button'}" MinHeight="40"/>
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
<BoxContainer Orientation="Horizontal"
|
||||
|
||||
@@ -16,7 +16,6 @@ public sealed partial class ResearchConsoleMenu : FancyWindow
|
||||
{
|
||||
public Action<string>? OnTechnologyCardPressed;
|
||||
public Action? OnServerButtonPressed;
|
||||
public Action? OnSyncButtonPressed;
|
||||
|
||||
[Dependency] private readonly IEntityManager _entity = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototype = default!;
|
||||
@@ -36,7 +35,6 @@ public sealed partial class ResearchConsoleMenu : FancyWindow
|
||||
Entity = entity;
|
||||
|
||||
ServerButton.OnPressed += _ => OnServerButtonPressed?.Invoke();
|
||||
SyncButton.OnPressed += _ => OnSyncButtonPressed?.Invoke();
|
||||
|
||||
_entity.TryGetComponent(entity, out _technologyDatabase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user