mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'dev' into bramble-scaling
This commit is contained in:
commit
886af98f4c
@ -69,6 +69,7 @@ namespace NewHorizons.Builder.Orbital
|
||||
*/
|
||||
|
||||
orbitLine._color = color;
|
||||
orbitLine._lineRenderer.endColor = new Color(color.r, color.g, color.b, 0f);
|
||||
|
||||
orbitLine._astroObject = astroObject;
|
||||
orbitLine._fade = fade;
|
||||
|
||||
@ -213,8 +213,8 @@ namespace NewHorizons.Builder.Props
|
||||
// change the colors
|
||||
//
|
||||
|
||||
if (config.isSeed) SetSeedColors(brambleNode, config.fogTint.ToColor(), config.lightTint.ToColor());
|
||||
else SetNodeColors(brambleNode, config.fogTint.ToColor(), config.lightTint.ToColor());
|
||||
if (config.isSeed) SetSeedColors(brambleNode, config.fogTint?.ToColor(), config.lightTint?.ToColor());
|
||||
else SetNodeColors(brambleNode, config.fogTint?.ToColor(), config.lightTint?.ToColor());
|
||||
|
||||
//
|
||||
// set up warps
|
||||
@ -254,13 +254,13 @@ namespace NewHorizons.Builder.Props
|
||||
return brambleNode;
|
||||
}
|
||||
|
||||
public static void SetNodeColors(GameObject brambleNode, Color fogTint, Color lightTint)
|
||||
public static void SetNodeColors(GameObject brambleNode, Color? fogTint, Color? lightTint)
|
||||
{
|
||||
if (fogTint != null)
|
||||
{
|
||||
var fogRenderer = brambleNode.GetComponent<InnerFogWarpVolume>();
|
||||
|
||||
fogRenderer._fogColor = fogTint;
|
||||
fogRenderer._fogColor = fogTint.Value;
|
||||
fogRenderer._useFarFogColor = false;
|
||||
|
||||
var fogBackdrop = brambleNode.FindChild("Terrain_DB_BrambleSphere_Inner_v2")?.FindChild("fogbackdrop_v2");
|
||||
@ -273,7 +273,7 @@ namespace NewHorizons.Builder.Props
|
||||
|
||||
var lightShaft1 = lightShafts.FindChild("BrambleLightShaft1");
|
||||
var mat = lightShaft1.GetComponent<MeshRenderer>().material;
|
||||
mat.color = lightTint;
|
||||
mat.color = lightTint.Value;
|
||||
|
||||
for (int i = 1; i <= 6; i++)
|
||||
{
|
||||
@ -283,7 +283,7 @@ namespace NewHorizons.Builder.Props
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetSeedColors(GameObject brambleSeed, Color fogTint, Color lightTint)
|
||||
public static void SetSeedColors(GameObject brambleSeed, Color? fogTint, Color? lightTint)
|
||||
{
|
||||
if (fogTint != null)
|
||||
{
|
||||
@ -291,7 +291,7 @@ namespace NewHorizons.Builder.Props
|
||||
|
||||
var fogMeshRenderer = fogRenderer.GetComponent<MeshRenderer>();
|
||||
var mat = fogMeshRenderer.material;
|
||||
mat.color = fogTint;
|
||||
mat.color = fogTint.Value;
|
||||
fogMeshRenderer.sharedMaterial = mat;
|
||||
}
|
||||
|
||||
@ -301,7 +301,7 @@ namespace NewHorizons.Builder.Props
|
||||
|
||||
var lightShaft1 = lightShafts.FindChild("DB_SeedLightShafts1");
|
||||
var mat = lightShaft1.GetComponent<MeshRenderer>().material;
|
||||
mat.color = lightTint;
|
||||
mat.color = lightTint.Value;
|
||||
|
||||
for (int i = 1; i <= 6; i++)
|
||||
{
|
||||
|
||||
@ -30,7 +30,7 @@ namespace NewHorizons.External.Configs
|
||||
/// <summary>
|
||||
/// Translation table for achievements. The key is the unique ID of the achievement
|
||||
/// </summary>
|
||||
private readonly Dictionary<string, AchievementTranslationInfo> AchievementTranslations;
|
||||
public Dictionary<string, AchievementTranslationInfo> AchievementTranslations;
|
||||
|
||||
[JsonObject]
|
||||
public class AchievementTranslationInfo
|
||||
@ -38,12 +38,12 @@ namespace NewHorizons.External.Configs
|
||||
/// <summary>
|
||||
/// The name of the achievement.
|
||||
/// </summary>
|
||||
private string Name;
|
||||
public string Name;
|
||||
|
||||
/// <summary>
|
||||
/// The short description for this achievement.
|
||||
/// </summary>
|
||||
private readonly string Description;
|
||||
public string Description;
|
||||
}
|
||||
#pragma warning restore 0169
|
||||
#endregion
|
||||
|
||||
@ -25,11 +25,34 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"AchievementTranslations": {
|
||||
"type": "object",
|
||||
"description": "Translation table for achievements. The key is the unique ID of the achievement",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/AchievementTranslationInfo"
|
||||
}
|
||||
},
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"description": "The schema to validate with"
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"AchievementTranslationInfo": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"Name": {
|
||||
"type": "string",
|
||||
"description": "The name of the achievement."
|
||||
},
|
||||
"Description": {
|
||||
"type": "string",
|
||||
"description": "The short description for this achievement."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$docs": {
|
||||
"title": "Translation Schema",
|
||||
"description": "Schema for a translation file in New Horizons"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user