diff --git a/NewHorizons/Builder/General/MarkerBuilder.cs b/NewHorizons/Builder/General/MarkerBuilder.cs index 29626f7c..a228f20a 100644 --- a/NewHorizons/Builder/General/MarkerBuilder.cs +++ b/NewHorizons/Builder/General/MarkerBuilder.cs @@ -3,7 +3,6 @@ using NewHorizons.Components; using NewHorizons.External.Configs; using NewHorizons.Handlers; -using NewHorizons.Utility; using UnityEngine; #endregion @@ -16,7 +15,7 @@ namespace NewHorizons.Builder.General { var module = config.MapMarker; NHMapMarker mapMarker = body.AddComponent(); - mapMarker._labelID = (UITextType)TranslationHandler.AddUI(config.name.ToUpperFixed()); + mapMarker._labelID = (UITextType)TranslationHandler.AddUI(config.name, true); var markerType = MapMarker.MarkerType.Planet; diff --git a/NewHorizons/Handlers/EyeSceneHandler.cs b/NewHorizons/Handlers/EyeSceneHandler.cs index dadf34f8..e0e3bccc 100644 --- a/NewHorizons/Handlers/EyeSceneHandler.cs +++ b/NewHorizons/Handlers/EyeSceneHandler.cs @@ -96,7 +96,7 @@ namespace NewHorizons.Handlers vesselAO._type = AstroObject.Type.SpaceStation; vesselAO.Register(); vesselMapMarker._markerType = MapMarker.MarkerType.Moon; - vesselMapMarker._labelID = (UITextType)TranslationHandler.AddUI("VESSEL"); + vesselMapMarker._labelID = (UITextType)TranslationHandler.AddUI("Vessel", true); 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. diff --git a/NewHorizons/Handlers/TranslationHandler.cs b/NewHorizons/Handlers/TranslationHandler.cs index 9ce24859..753e13d6 100644 --- a/NewHorizons/Handlers/TranslationHandler.cs +++ b/NewHorizons/Handlers/TranslationHandler.cs @@ -205,11 +205,14 @@ namespace NewHorizons.Handlers TextTranslation.Get().m_table.theShipLogTable[key] = value; } - public static int AddUI(string rawText) + public static int AddUI(string rawText) => AddUI(rawText, false); + + public static int AddUI(string rawText, bool upper) { var uiTable = TextTranslation.Get().m_table.theUITable; var text = GetTranslation(rawText, TextType.UI); + if (upper) text = text.ToUpperFixed(); var key = uiTable.Keys.Max() + 1; try diff --git a/NewHorizons/Handlers/VesselWarpHandler.cs b/NewHorizons/Handlers/VesselWarpHandler.cs index 14c3d9c0..87f8d1ad 100644 --- a/NewHorizons/Handlers/VesselWarpHandler.cs +++ b/NewHorizons/Handlers/VesselWarpHandler.cs @@ -210,7 +210,7 @@ namespace NewHorizons.Handlers vesselWarpController._whiteHoleOneShot = vesselWarpController._whiteHole.transform.parent.Find("WhiteHoleAudio_OneShot").GetComponent(); vesselWarpController._whiteHole._startActive = true; - vesselObject.GetComponent()._labelID = (UITextType)TranslationHandler.AddUI("VESSEL"); + vesselObject.GetComponent()._labelID = (UITextType)TranslationHandler.AddUI("Vessel", true); var hasParentBody = !string.IsNullOrEmpty(system.Config.Vessel?.vesselSpawn?.parentBody); var hasPhysics = system.Config.Vessel?.hasPhysics ?? !hasParentBody;