From fbe301224aadf7240c3548ffc28e9954e69952a0 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Tue, 4 Jun 2024 08:09:10 -0400 Subject: [PATCH] rotate slides --- NewHorizons/Builder/Props/ProjectionBuilder.cs | 5 +++++ .../External/Modules/Props/EchoesOfTheEye/SlideInfo.cs | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/NewHorizons/Builder/Props/ProjectionBuilder.cs b/NewHorizons/Builder/Props/ProjectionBuilder.cs index ae85c5a8..3b85fccb 100644 --- a/NewHorizons/Builder/Props/ProjectionBuilder.cs +++ b/NewHorizons/Builder/Props/ProjectionBuilder.cs @@ -419,6 +419,7 @@ namespace NewHorizons.Builder.Props { var slide = new Slide(); var slideInfo = slides[i]; + slide._streamingImageID = i; // for SlideRotationModule if (string.IsNullOrEmpty(slideInfo.imagePath)) { @@ -493,6 +494,10 @@ namespace NewHorizons.Builder.Props }; modules.Add(shipLogEntry); } + if (slideInfo.rotate) + { + modules.Add(new SlideRotationModule()); + } Slide.WriteModules(modules, ref slide._modulesList, ref slide._modulesData, ref slide.lengths); } diff --git a/NewHorizons/External/Modules/Props/EchoesOfTheEye/SlideInfo.cs b/NewHorizons/External/Modules/Props/EchoesOfTheEye/SlideInfo.cs index 26b6053d..99a921d8 100644 --- a/NewHorizons/External/Modules/Props/EchoesOfTheEye/SlideInfo.cs +++ b/NewHorizons/External/Modules/Props/EchoesOfTheEye/SlideInfo.cs @@ -84,5 +84,12 @@ namespace NewHorizons.External.Modules.Props.EchoesOfTheEye /// Set this to include ship log entry module. Base game default is "". /// public string reveal; + + // SlideRotationModule + + /// + /// Exclusive to slide reels. Whether this slide should rotate the reel item while inside a projector. + /// + public bool rotate = true; } } \ No newline at end of file