mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
rename here as well
This commit is contained in:
parent
73831f8ed6
commit
43be182cb1
@ -428,9 +428,9 @@ namespace NewHorizons.Handlers
|
||||
return meshRenderer;
|
||||
}
|
||||
|
||||
public static void RegisterBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets, bool shareTitleScreen, string conditionRequired, string factRequired)
|
||||
public static void RegisterBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets, bool shareTitleScreen, string persistentConditionRequired, string factRequired)
|
||||
{
|
||||
TitleScreenBuilders.SafeAdd(mod, new TitleScreenBuilder(mod, builder, disableNHPlanets, shareTitleScreen, conditionRequired, factRequired));
|
||||
TitleScreenBuilders.SafeAdd(mod, new TitleScreenBuilder(mod, builder, disableNHPlanets, shareTitleScreen, persistentConditionRequired, factRequired));
|
||||
}
|
||||
|
||||
internal class TitleScreenBuilder : ITitleScreenBuilder
|
||||
@ -439,16 +439,16 @@ namespace NewHorizons.Handlers
|
||||
public Action<GameObject> builder;
|
||||
public bool disableNHPlanets;
|
||||
public bool shareTitleScreen;
|
||||
public string conditionRequired;
|
||||
public string persistentConditionRequired;
|
||||
public string factRequired;
|
||||
|
||||
public TitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets, bool shareTitleScreen, string conditionRequired, string factRequired)
|
||||
public TitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets, bool shareTitleScreen, string persistentConditionRequired, string factRequired)
|
||||
{
|
||||
this.mod = mod;
|
||||
this.builder = builder;
|
||||
this.disableNHPlanets = disableNHPlanets;
|
||||
this.shareTitleScreen = shareTitleScreen;
|
||||
this.conditionRequired = conditionRequired;
|
||||
this.persistentConditionRequired = persistentConditionRequired;
|
||||
this.factRequired = factRequired;
|
||||
}
|
||||
|
||||
@ -482,7 +482,7 @@ namespace NewHorizons.Handlers
|
||||
|
||||
public bool KnowsFact() => string.IsNullOrEmpty(factRequired) || StandaloneProfileManager.SharedInstance.currentProfile != null && ShipLogHandler.KnowsFact(factRequired);
|
||||
|
||||
public bool HasCondition() => string.IsNullOrEmpty(conditionRequired) || StandaloneProfileManager.SharedInstance.currentProfile != null && PlayerData.GetPersistentCondition(conditionRequired);
|
||||
public bool HasCondition() => string.IsNullOrEmpty(persistentConditionRequired) || StandaloneProfileManager.SharedInstance.currentProfile != null && PlayerData.GetPersistentCondition(persistentConditionRequired);
|
||||
}
|
||||
|
||||
internal class TitleScreenConfigBuilder : ITitleScreenBuilder
|
||||
|
||||
@ -252,8 +252,8 @@ namespace NewHorizons
|
||||
/// <param name="builder">Builder to run when this title screen is selected. The GameObject passed through it is the main scene object containing both the background and menu planet.</param>
|
||||
/// <param name="disableNHPlanets">If set to true, NH generated planets will not show on the title screen. If false, this title screen has the same chance as other NH planet title screens to show.</param>
|
||||
/// <param name="shareTitleScreen">If set to true, this custom title screen will merge with all other custom title screens with shareTitleScreen set to true. If false, NH will randomly select between this and other valid title screens that are loaded.</param>
|
||||
/// <param name="conditionRequired">Persistent condition required for this title screen to appear.</param>
|
||||
/// <param name="persistentConditionRequired">Persistent condition required for this title screen to appear.</param>
|
||||
/// <param name="factRequired">Ship log fact required for this title screen to appear.</param>
|
||||
void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string conditionRequired = null, string factRequired = null);
|
||||
void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null);
|
||||
}
|
||||
}
|
||||
|
||||
@ -365,7 +365,7 @@ namespace NewHorizons
|
||||
|
||||
public void SetNextSpawnID(string id) => PlayerSpawnHandler.TargetSpawnID = id;
|
||||
|
||||
public void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string conditionRequired = null, string factRequired = null)
|
||||
=> TitleSceneHandler.RegisterBuilder(mod, builder, disableNHPlanets, shareTitleScreen, conditionRequired, factRequired);
|
||||
public void RegisterTitleScreenBuilder(IModBehaviour mod, Action<GameObject> builder, bool disableNHPlanets = true, bool shareTitleScreen = false, string persistentConditionRequired = null, string factRequired = null)
|
||||
=> TitleSceneHandler.RegisterBuilder(mod, builder, disableNHPlanets, shareTitleScreen, persistentConditionRequired, factRequired);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user