diff --git a/BtShowXp/Patches/SetPilotXpText.cs b/BtShowXp/Patches/SetPilotXpText.cs index 1ad31c7..abaacb1 100644 --- a/BtShowXp/Patches/SetPilotXpText.cs +++ b/BtShowXp/Patches/SetPilotXpText.cs @@ -42,7 +42,7 @@ public static void Postfix( Pilot ___pilot, LocalizableText ___callsign) if (Core.ModSettings.ShowPilotXp) { - pilotText.Append($"{___callsign.text} [{___pilot.TotalXP:#,#.##} XP] "); + pilotText.Append($" [{___pilot.TotalXP:#,#.##} XP] "); } if (Core.ModSettings.ShowPilotXpCorruption) @@ -116,7 +116,8 @@ public static void Postfix( Pilot ___pilot, LocalizableText ___callsign) if (pilotText.Length != 0) { - ___callsign.SetText(pilotText.ToString().TrimEnd()); + string displayText = pilotText.ToString().Trim(); + ___callsign.SetText("{0} {1}", ___callsign.text,displayText); } } diff --git a/BtShowXp/mod.json b/BtShowXp/mod.json index 2d62da5..7243d2d 100644 --- a/BtShowXp/mod.json +++ b/BtShowXp/mod.json @@ -8,7 +8,7 @@ "Enabled": true, "DLL": "BtShowXp.dll", - "OptionallyDependsOn": [ "BT_Extended_CE" ], + "OptionallyDependsOn": [ "BT_Extended_CE", "SoftExperienceCap"], "Settings": { "ShowPilotXp": true, "ShowPilotXpCorruption": true,