Add option to disable proxy generation #700

This commit is contained in:
Nick 2023-08-22 19:15:01 -04:00
parent 621ab4e33a
commit 37032ca222
2 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,12 @@ namespace NewHorizons.External.Modules
/// </summary>
public bool pushable;
/// <summary>
/// Set this to true to have no proxy be generated for this planet.
/// This is a small representation of the planet that appears when it is outside of the regular Unity camera range.
/// </summary>
public bool hideProxy;
#region Obsolete
[Obsolete("IsSatellite is deprecated, please use ShowMinimap instead")]

View File

@ -493,7 +493,7 @@ namespace NewHorizons.Handlers
var remnant = otherBodies.Where(x => x.Config.isStellarRemnant && x.Config.name == body.Config.name).FirstOrDefault();
// TODO: add proxies for quantum states
//var quantumStates = otherBodies.Where(x => x.Config.isQuantumState && x.Config.name == body.Config.name).ToArray();
if (!(body.Config.Cloak != null && body.Config.Cloak.radius != 0f))
if (!(body.Config.Cloak != null && body.Config.Cloak.radius != 0f) && !body.Config.Base.hideProxy)
{
Delay.FireOnNextUpdate(() =>
{