mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
rotate slides
This commit is contained in:
parent
230f4e842e
commit
fbe301224a
@ -419,6 +419,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
var slide = new Slide();
|
var slide = new Slide();
|
||||||
var slideInfo = slides[i];
|
var slideInfo = slides[i];
|
||||||
|
slide._streamingImageID = i; // for SlideRotationModule
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(slideInfo.imagePath))
|
if (string.IsNullOrEmpty(slideInfo.imagePath))
|
||||||
{
|
{
|
||||||
@ -493,6 +494,10 @@ namespace NewHorizons.Builder.Props
|
|||||||
};
|
};
|
||||||
modules.Add(shipLogEntry);
|
modules.Add(shipLogEntry);
|
||||||
}
|
}
|
||||||
|
if (slideInfo.rotate)
|
||||||
|
{
|
||||||
|
modules.Add(new SlideRotationModule());
|
||||||
|
}
|
||||||
|
|
||||||
Slide.WriteModules(modules, ref slide._modulesList, ref slide._modulesData, ref slide.lengths);
|
Slide.WriteModules(modules, ref slide._modulesList, ref slide._modulesData, ref slide.lengths);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,5 +84,12 @@ namespace NewHorizons.External.Modules.Props.EchoesOfTheEye
|
|||||||
/// Set this to include ship log entry module. Base game default is "".
|
/// Set this to include ship log entry module. Base game default is "".
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string reveal;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user