Remove facade wording from inventory docking helpers

This commit is contained in:
Meta Vens 2026-06-28 03:24:07 +01:00
commit dea31eed1b
3 changed files with 10 additions and 6 deletions

View file

@ -87,14 +87,14 @@ public class InventoryMenu : MonoBehaviour
// {
// _destroyItem = false;
// });
var hasObservedCurrentEntity = TryResolveCurrentEntityFacade(out var currentEntity);
var hasCurrentEntity = TryResolveCurrentEntity(out var currentEntity);
var cargo = TryResolveCurrentDockingBay(out var dockingBay)
? dockingBay
: currentEntity?.CargoBays.FirstOrDefault();
if (cargo!=null)
InventoryPanels[0].Display(cargo);
else InventoryPanels[0].Clear();
if(hasObservedCurrentEntity)
if(hasCurrentEntity)
InventoryPanels[1].Display(currentEntity);
else InventoryPanels[1].Clear();
}
@ -760,7 +760,7 @@ public class InventoryMenu : MonoBehaviour
return ResolveDockingState()?.StationRefit;
}
private bool TryResolveCurrentEntityFacade(out Entity currentEntity)
private bool TryResolveCurrentEntity(out Entity currentEntity)
{
currentEntity = null;
return TryResolveObservedDockingIndex(out var dockingIndex) &&

View file

@ -258,7 +258,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
}
return;
case AetheriaRuntimeInventoryDropdownSelectionKind.DockingBay:
if (TryResolveCurrentDockingBayFacade(out var dockingBay))
if (TryResolveCurrentDockingBay(out var dockingBay))
{
Display(dockingBay);
}
@ -1141,7 +1141,7 @@ private void Update()
dockingIndex.TryResolveCurrentDockingBayRow(out dockingBay);
}
private bool TryResolveCurrentDockingBayFacade(out EquippedCargoBay dockingBay)
private bool TryResolveCurrentDockingBay(out EquippedCargoBay dockingBay)
{
dockingBay = null;
if (!TryResolveObservedDockingIndex(out var dockingIndex) ||