Content update for UI prediction (#27214)
* Content update for UI refactor * Big update * Sharing * Remaining content updates * First big update * Prototype updates * AUGH * Fix UI comp ref * Cleanup - Fix predicted message, fix item slots, fix interaction range check. * Fix regressions * Make this predictive idk why it wasn't. * Fix slime merge * Merge conflict * Fix merge
This commit is contained in:
@@ -57,7 +57,7 @@ public sealed partial class ShuttleSystem
|
||||
!TryComp<TransformComponent>(uid, out var xform) ||
|
||||
!TryComp<IFFComponent>(xform.GridUid, out var iff))
|
||||
{
|
||||
_uiSystem.TrySetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
_uiSystem.SetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
{
|
||||
AllowedFlags = component.AllowedFlags,
|
||||
Flags = IFFFlags.None,
|
||||
@@ -65,7 +65,7 @@ public sealed partial class ShuttleSystem
|
||||
}
|
||||
else
|
||||
{
|
||||
_uiSystem.TrySetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
_uiSystem.SetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
{
|
||||
AllowedFlags = component.AllowedFlags,
|
||||
Flags = iff.Flags,
|
||||
@@ -83,7 +83,7 @@ public sealed partial class ShuttleSystem
|
||||
if (xform.GridUid != gridUid)
|
||||
continue;
|
||||
|
||||
_uiSystem.TrySetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
_uiSystem.SetUiState(uid, IFFConsoleUiKey.Key, new IFFConsoleBoundUserInterfaceState()
|
||||
{
|
||||
AllowedFlags = comp.AllowedFlags,
|
||||
Flags = component.Flags,
|
||||
|
||||
Reference in New Issue
Block a user