rotate slides

This commit is contained in:
Noah Pilarski 2024-06-04 08:09:10 -04:00
parent 230f4e842e
commit fbe301224a
2 changed files with 12 additions and 0 deletions

View File

@ -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);
}

View File

@ -84,5 +84,12 @@ namespace NewHorizons.External.Modules.Props.EchoesOfTheEye
/// Set this to include ship log entry module. Base game default is "".
/// </summary>
public string reveal;
// SlideRotationModule
/// <summary>
/// Exclusive to slide reels. Whether this slide should rotate the reel item while inside a projector.
/// </summary>
public bool rotate = true;
}
}