Keep Unity state surface compile fixes
This commit is contained in:
parent
9948d5eeca
commit
6dba17d86c
10 changed files with 53 additions and 11 deletions
|
|
@ -210,7 +210,7 @@ public class SchematicDisplay : MonoBehaviour
|
|||
HeatstrokeMeterFill.anchorMax = new Vector2((float)hud.Heatstroke, 1);
|
||||
HypothermiaMeterFill.anchorMax = new Vector2((float)hud.Hypothermia, 1);
|
||||
HeatstrokeLimitFill.anchorMax = new Vector2(
|
||||
(float)(_renderSettings?.NormalizeThermalRisk(_cockpit.Item.Temperature) ?? 0),
|
||||
(float)(_renderSettings.NormalizeThermalRisk(_cockpit.Item.Temperature)),
|
||||
1);
|
||||
}
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ public class SchematicDisplay : MonoBehaviour
|
|||
{
|
||||
var charge = hud.CapacitorCharge;
|
||||
var maxCharge = hud.CapacitorCapacity;
|
||||
EnergyFill.anchorMax = new Vector2(charge / maxCharge, 1);
|
||||
EnergyFill.anchorMax = new Vector2((float)(charge / maxCharge), 1);
|
||||
EnergyLabel.text = $"{((int)charge).ToString()}/{((int)maxCharge).ToString()} + ({((int)hud.ReactorDraw).ToString()})";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -254,8 +254,6 @@ public class MainMenu : MonoBehaviour
|
|||
AetheriaRuntimeMainMenuSurfaceBuilder.BuildInputSettings(
|
||||
AetheriaRuntimeMainMenuSurfaceBuilder.ProjectRoot(
|
||||
stateBoot,
|
||||
null,
|
||||
null,
|
||||
LatestPlayerSettings(stateBoot),
|
||||
CanOpenRuntimeInputScreen(),
|
||||
InGame,
|
||||
|
|
|
|||
|
|
@ -797,6 +797,22 @@ public class InventoryMenu : MonoBehaviour
|
|||
return currentEntity != null;
|
||||
}
|
||||
|
||||
private AetheriaRuntimeStationRefitDocument ResolveStationRefit()
|
||||
{
|
||||
try
|
||||
{
|
||||
return ResolveClient()
|
||||
.StationRefitAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarning($"Failed to read Aetheria station refit projection for inventory menu: {ex.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private bool TryResolveCurrentDocking(out AetheriaRuntimeCurrentDockingDocument docking)
|
||||
{
|
||||
docking = null;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using UniRx;
|
|||
using UniRx.Triggers;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using Path = System.IO.Path;
|
||||
|
||||
public class LocalMenu : MonoBehaviour
|
||||
{
|
||||
|
|
|
|||
|
|
@ -243,8 +243,7 @@ public class SectorMap : MonoBehaviour
|
|||
foreach (var factionIndex in ResolveFactionIndices())
|
||||
AddFactionMaterials(factionIndex);
|
||||
|
||||
foreach (var zoneIndex in _sectorMap.DiscoveredZoneIndices)
|
||||
QueueZoneReveal([zoneIndex]);
|
||||
QueueZoneReveal(_sectorMap.DiscoveredZoneIndices);
|
||||
|
||||
if (_queuedZoneReveals.Count == 0)
|
||||
QueueZoneReveal(_sectorMap.Zones.Select(zone => zone.ZoneIndex));
|
||||
|
|
|
|||
Loading…
Reference in a new issue