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:
@@ -103,12 +103,12 @@ public sealed class CartridgeLoaderSystem : SharedCartridgeLoaderSystem
|
||||
if (!Resolve(loaderUid, ref loader))
|
||||
return;
|
||||
|
||||
if (!_userInterfaceSystem.TryGetUi(loaderUid, loader.UiKey, out var ui))
|
||||
if (!_userInterfaceSystem.HasUi(loaderUid, loader.UiKey))
|
||||
return;
|
||||
|
||||
var programs = GetAvailablePrograms(loaderUid, loader);
|
||||
var state = new CartridgeLoaderUiState(programs, GetNetEntity(loader.ActiveProgram));
|
||||
_userInterfaceSystem.SetUiState(ui, state, session);
|
||||
_userInterfaceSystem.SetUiState(loaderUid, loader.UiKey, state);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -127,8 +127,8 @@ public sealed class CartridgeLoaderSystem : SharedCartridgeLoaderSystem
|
||||
if (!Resolve(loaderUid, ref loader))
|
||||
return;
|
||||
|
||||
if (_userInterfaceSystem.TryGetUi(loaderUid, loader.UiKey, out var ui))
|
||||
_userInterfaceSystem.SetUiState(ui, state, session);
|
||||
if (_userInterfaceSystem.HasUi(loaderUid, loader.UiKey))
|
||||
_userInterfaceSystem.SetUiState(loaderUid, loader.UiKey, state);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user