mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add options to disable parts of remote props (#288)
You can now disable individual parts of projection platforms and shared whiteboards. For whiteboards you can disable walls   For platforms you can disable the floor structure and the pool that rises when you place a stone.  
This commit is contained in:
commit
6603a602f6
@ -208,6 +208,8 @@ namespace NewHorizons.Builder.Props
|
||||
component._nomaiTexts[i] = wallText;
|
||||
}
|
||||
|
||||
if (info.disableWall) whiteboard.FindChild("Props_NOM_Whiteboard_Shared").SetActive(false);
|
||||
|
||||
whiteboard.SetActive(true);
|
||||
}
|
||||
|
||||
@ -251,6 +253,14 @@ namespace NewHorizons.Builder.Props
|
||||
component._visualSector = sector;
|
||||
component._dataPointID = info.reveals;
|
||||
|
||||
if (info.disableStructure)
|
||||
{
|
||||
platform.FindChild("Structure_NOM_RemoteViewer").SetActive(false);
|
||||
platform.FindChild("RemoteViewer_FadeGeo").SetActive(false);
|
||||
}
|
||||
|
||||
if (info.disablePool) platform.FindChild("RemoteViewer_Pool").SetActive(false);
|
||||
|
||||
platform.SetActive(true);
|
||||
}
|
||||
|
||||
|
||||
15
NewHorizons/External/Modules/PropModule.cs
vendored
15
NewHorizons/External/Modules/PropModule.cs
vendored
@ -891,6 +891,11 @@ namespace NewHorizons.External.Modules
|
||||
/// </summary>
|
||||
public string rename;
|
||||
|
||||
/// <summary>
|
||||
/// Disable the wall, leaving only the pedestal and text.
|
||||
/// </summary>
|
||||
public bool disableWall;
|
||||
|
||||
[JsonObject]
|
||||
public class SharedNomaiTextInfo
|
||||
{
|
||||
@ -953,6 +958,16 @@ namespace NewHorizons.External.Modules
|
||||
/// A ship log fact to reveal when the platform is connected to.
|
||||
/// </summary>
|
||||
[DefaultValue("")] public string reveals = "";
|
||||
|
||||
/// <summary>
|
||||
/// Disable the structure, leaving only the pedestal.
|
||||
/// </summary>
|
||||
public bool disableStructure;
|
||||
|
||||
/// <summary>
|
||||
/// Disable the pool that rises when you place a stone.
|
||||
/// </summary>
|
||||
public bool disablePool;
|
||||
}
|
||||
|
||||
[JsonObject]
|
||||
|
||||
@ -1973,6 +1973,10 @@
|
||||
"rename": {
|
||||
"type": "string",
|
||||
"description": "An optional rename of this object"
|
||||
},
|
||||
"disableWall": {
|
||||
"type": "boolean",
|
||||
"description": "Disable the wall, leaving only the pedestal and text."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -2035,6 +2039,14 @@
|
||||
"type": "string",
|
||||
"description": "A ship log fact to reveal when the platform is connected to.",
|
||||
"default": ""
|
||||
},
|
||||
"disableStructure": {
|
||||
"type": "boolean",
|
||||
"description": "Disable the structure, leaving only the pedestal."
|
||||
},
|
||||
"disablePool": {
|
||||
"type": "boolean",
|
||||
"description": "Disable the pool that rises when you place a stone."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user