mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
1.27.2 (#1063)
## Improvements - No longer forces all translations added with TranslationHandler.AddUI into being uppercase. Fixes #1062. ## Bug fixes - Fixed a config migration issue that was breaking Lonesome Lake
This commit is contained in:
commit
70bfb8f3cd
@ -3,6 +3,7 @@
|
|||||||
using NewHorizons.Components;
|
using NewHorizons.Components;
|
||||||
using NewHorizons.External.Configs;
|
using NewHorizons.External.Configs;
|
||||||
using NewHorizons.Handlers;
|
using NewHorizons.Handlers;
|
||||||
|
using NewHorizons.Utility;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -15,7 +16,7 @@ namespace NewHorizons.Builder.General
|
|||||||
{
|
{
|
||||||
var module = config.MapMarker;
|
var module = config.MapMarker;
|
||||||
NHMapMarker mapMarker = body.AddComponent<NHMapMarker>();
|
NHMapMarker mapMarker = body.AddComponent<NHMapMarker>();
|
||||||
mapMarker._labelID = (UITextType)TranslationHandler.AddUI(config.name);
|
mapMarker._labelID = (UITextType)TranslationHandler.AddUI(config.name.ToUpperFixed());
|
||||||
|
|
||||||
var markerType = MapMarker.MarkerType.Planet;
|
var markerType = MapMarker.MarkerType.Planet;
|
||||||
|
|
||||||
|
|||||||
6
NewHorizons/External/Configs/PlanetConfig.cs
vendored
6
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -669,14 +669,12 @@ namespace NewHorizons.External.Configs
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(volume.gameOverText))
|
if (!string.IsNullOrEmpty(volume.gameOverText))
|
||||||
{
|
{
|
||||||
if (volume.gameOver == null)
|
volume.gameOver ??= new();
|
||||||
{
|
|
||||||
volume.gameOver = new();
|
|
||||||
}
|
|
||||||
volume.gameOver.text = volume.gameOverText;
|
volume.gameOver.text = volume.gameOverText;
|
||||||
}
|
}
|
||||||
if (volume.creditsType != null)
|
if (volume.creditsType != null)
|
||||||
{
|
{
|
||||||
|
volume.gameOver ??= new();
|
||||||
volume.gameOver.creditsType = (SerializableEnums.NHCreditsType)volume.creditsType;
|
volume.gameOver.creditsType = (SerializableEnums.NHCreditsType)volume.creditsType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ namespace NewHorizons.Handlers
|
|||||||
vesselAO._type = AstroObject.Type.SpaceStation;
|
vesselAO._type = AstroObject.Type.SpaceStation;
|
||||||
vesselAO.Register();
|
vesselAO.Register();
|
||||||
vesselMapMarker._markerType = MapMarker.MarkerType.Moon;
|
vesselMapMarker._markerType = MapMarker.MarkerType.Moon;
|
||||||
vesselMapMarker._labelID = (UITextType)TranslationHandler.AddUI("Vessel");
|
vesselMapMarker._labelID = (UITextType)TranslationHandler.AddUI("VESSEL");
|
||||||
RFVolumeBuilder.Make(vessel, vesselBody, 600, new External.Modules.ReferenceFrameModule { localPosition = new MVector3(0, 0, -207.375f) });
|
RFVolumeBuilder.Make(vessel, vesselBody, 600, new External.Modules.ReferenceFrameModule { localPosition = new MVector3(0, 0, -207.375f) });
|
||||||
|
|
||||||
// Resize vessel sector so that the vessel is fully collidable.
|
// Resize vessel sector so that the vessel is fully collidable.
|
||||||
|
|||||||
@ -209,7 +209,7 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
var uiTable = TextTranslation.Get().m_table.theUITable;
|
var uiTable = TextTranslation.Get().m_table.theUITable;
|
||||||
|
|
||||||
var text = GetTranslation(rawText, TextType.UI).ToUpperFixed();
|
var text = GetTranslation(rawText, TextType.UI);
|
||||||
|
|
||||||
var key = uiTable.Keys.Max() + 1;
|
var key = uiTable.Keys.Max() + 1;
|
||||||
try
|
try
|
||||||
|
|||||||
@ -210,7 +210,7 @@ namespace NewHorizons.Handlers
|
|||||||
vesselWarpController._whiteHoleOneShot = vesselWarpController._whiteHole.transform.parent.Find("WhiteHoleAudio_OneShot").GetComponent<OWAudioSource>();
|
vesselWarpController._whiteHoleOneShot = vesselWarpController._whiteHole.transform.parent.Find("WhiteHoleAudio_OneShot").GetComponent<OWAudioSource>();
|
||||||
vesselWarpController._whiteHole._startActive = true;
|
vesselWarpController._whiteHole._startActive = true;
|
||||||
|
|
||||||
vesselObject.GetComponent<MapMarker>()._labelID = (UITextType)TranslationHandler.AddUI("Vessel");
|
vesselObject.GetComponent<MapMarker>()._labelID = (UITextType)TranslationHandler.AddUI("VESSEL");
|
||||||
|
|
||||||
var hasParentBody = !string.IsNullOrEmpty(system.Config.Vessel?.vesselSpawn?.parentBody);
|
var hasParentBody = !string.IsNullOrEmpty(system.Config.Vessel?.vesselSpawn?.parentBody);
|
||||||
var hasPhysics = system.Config.Vessel?.hasPhysics ?? !hasParentBody;
|
var hasPhysics = system.Config.Vessel?.hasPhysics ?? !hasParentBody;
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, and friends",
|
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, and friends",
|
||||||
"name": "New Horizons",
|
"name": "New Horizons",
|
||||||
"uniqueName": "xen.NewHorizons",
|
"uniqueName": "xen.NewHorizons",
|
||||||
"version": "1.27.1",
|
"version": "1.27.2",
|
||||||
"owmlVersion": "2.12.1",
|
"owmlVersion": "2.12.1",
|
||||||
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
||||||
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user