Красивое УИ телепорта для призрака (#378)
* add: nice ghost teleport ui * fix: fix unused import * wtf * fuck you, search bar * fix-add: finally
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Content.Client.Gameplay;
|
||||
using Content.Client.Ghost;
|
||||
using Content.Client.Ghost;
|
||||
using Content.Client.UserInterface.Systems.Gameplay;
|
||||
using Content.Client.UserInterface.Systems.Ghost.Widgets;
|
||||
using Content.Shared._White.MagGloves;
|
||||
using Content.Shared.Ghost;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controllers;
|
||||
@@ -59,9 +59,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
public void UpdateGui()
|
||||
{
|
||||
if (Gui == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Gui.Visible = _system?.IsGhost ?? false;
|
||||
Gui.Update(_system?.AvailableGhostRoleCount, _system?.Player?.CanReturnToBody);
|
||||
@@ -96,7 +94,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
if (Gui?.TargetWindow is not { } window)
|
||||
return;
|
||||
|
||||
window.UpdateWarps(msg.Warps);
|
||||
window.UpdateWarps(msg.Players, msg.Places, msg.Antagonists);
|
||||
window.Populate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user