mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Map Mode Focal Point
This commit is contained in:
parent
883e5669f6
commit
9780163b8d
@ -237,6 +237,12 @@ namespace NewHorizons.Builder.ShipLog
|
||||
{
|
||||
GameObject newMapModeGO = CreateMapModeGameObject(body, transformParent, layer, body.Config.ShipLog?.mapMode?.manualPosition);
|
||||
ShipLogAstroObject newAstroObject = AddShipLogAstroObject(newMapModeGO, body, greyScaleMaterial, layer);
|
||||
if (body.Config.FocalPoint != null)
|
||||
{
|
||||
newAstroObject._imageObj.GetComponent<Image>().enabled = false;
|
||||
newAstroObject._outlineObj.GetComponent<Image>().enabled = false;
|
||||
newAstroObject._unviewedObj.GetComponent<Image>().enabled = false;
|
||||
}
|
||||
MakeDetails(body, newMapModeGO.transform, greyScaleMaterial);
|
||||
Vector2 navigationPosition = body.Config.ShipLog?.mapMode?.manualNavigationPosition;
|
||||
navMatrix[(int)navigationPosition.y][(int)navigationPosition.x] = newAstroObject;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user