From 8294df9ee4d5042db35f7d3c5684b336138d1c02 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Tue, 23 Aug 2022 18:23:27 -0400 Subject: [PATCH 1/2] Add options to disable parts of remote props --- NewHorizons/Builder/Props/RemoteBuilder.cs | 10 ++++++++++ NewHorizons/External/Modules/PropModule.cs | 15 +++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/NewHorizons/Builder/Props/RemoteBuilder.cs b/NewHorizons/Builder/Props/RemoteBuilder.cs index 9cfc911b..7be0c5c2 100644 --- a/NewHorizons/Builder/Props/RemoteBuilder.cs +++ b/NewHorizons/Builder/Props/RemoteBuilder.cs @@ -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); } diff --git a/NewHorizons/External/Modules/PropModule.cs b/NewHorizons/External/Modules/PropModule.cs index 70ebc244..0af60122 100644 --- a/NewHorizons/External/Modules/PropModule.cs +++ b/NewHorizons/External/Modules/PropModule.cs @@ -891,6 +891,11 @@ namespace NewHorizons.External.Modules /// public string rename; + /// + /// Disable the wall, leaving only the pedestal and text. + /// + 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. /// [DefaultValue("")] public string reveals = ""; + + /// + /// Disable the structure, leaving only the pedestal. + /// + public bool disableStructure; + + /// + /// Disable the pool that rises when you place a stone. + /// + public bool disablePool; } [JsonObject] From 7865b40d9040b442efd77d45c112c04763b96ba8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 23 Aug 2022 22:25:25 +0000 Subject: [PATCH 2/2] Updated Schemas --- NewHorizons/Schemas/body_schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index 03303e44..554d2944 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -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." } } },