Build ship settings surfaces directly
This commit is contained in:
parent
09a5b019af
commit
cf09a33731
3 changed files with 34 additions and 14 deletions
|
|
@ -214,7 +214,10 @@ public class InventoryMenu : MonoBehaviour
|
|||
transform,
|
||||
_shipSettingsSurfaceDocument,
|
||||
"Aetheria Inventory Ship Settings Surface",
|
||||
AetheriaRuntimeShipSettingsSurfaceBuilder.Build(ComposeCurrentShipSettingsSurface(currentEntity)),
|
||||
AetheriaRuntimeShipSettingsSurfaceBuilder.Build(
|
||||
currentEntity?.Entity?.DisplayName ?? "",
|
||||
(float)(currentEntity?.ShutdownPerformance ?? 0),
|
||||
FormatValue),
|
||||
HandleCurrentShipSettingsSurfaceCommand,
|
||||
_shipSettingsSurfaceChrome);
|
||||
}
|
||||
|
|
@ -269,15 +272,6 @@ public class InventoryMenu : MonoBehaviour
|
|||
AetheriaEveUnitySurfaceHost.Hide(_shipSettingsSurfaceDocument);
|
||||
}
|
||||
|
||||
private AetheriaRuntimeShipSettingsSurfaceState ComposeCurrentShipSettingsSurface(
|
||||
AetheriaRuntimeCurrentEntityDocument currentEntity)
|
||||
{
|
||||
return AetheriaRuntimeShipSettingsSurfaceBuilder.Compose(
|
||||
currentEntity?.Entity?.DisplayName ?? "",
|
||||
(float)(currentEntity?.ShutdownPerformance ?? 0),
|
||||
FormatValue);
|
||||
}
|
||||
|
||||
private void RenderCargoItemDetailsSurface(ItemInstance item)
|
||||
{
|
||||
var typedItem = FindTypedInventoryItem(item);
|
||||
|
|
|
|||
Loading…
Reference in a new issue