diff --git a/Patches/MedalsDisplayPatches.cs b/Patches/MedalsDisplayPatches.cs index 183418f..79dd9b1 100644 --- a/Patches/MedalsDisplayPatches.cs +++ b/Patches/MedalsDisplayPatches.cs @@ -17,13 +17,6 @@ namespace DiamondTimeViewer.Patches // Get diamond time (since it is not passed in as a parameter) float diamond = LevelSelect.instance.level.DiamondTime; - bool hasEgg = eggUnlock != null && eggUnlock.Count > 0; - bool gotEgg = hasEgg && UnlockManager.Get().IsUnlocked(eggUnlock[0]) && !CosmeticValues.WasPurchased(eggUnlock[0]); - - string eggText = ""; - if (hasEgg) - eggText = (gotEgg ? " " : " "); - bool showDiamondTime = false; switch (Config.Mode) { @@ -41,14 +34,26 @@ namespace DiamondTimeViewer.Patches break; } + string spacingText = " "; string diamondText = ""; if (showDiamondTime) - diamondText = " " + SegmentedTime.SPTimeText(diamond); + { + spacingText = " "; + diamondText = spacingText + " " + SegmentedTime.SPTimeText(diamond); + } + + bool hasEgg = eggUnlock != null && eggUnlock.Count > 0; + bool gotEgg = hasEgg && UnlockManager.Get().IsUnlocked(eggUnlock[0]) && !CosmeticValues.WasPurchased(eggUnlock[0]); + + string eggText = ""; + if (hasEgg) + eggText = spacingText + (gotEgg ? "" : ""); __instance.MedalTimes.text = string.Concat(new string[] { " ", SegmentedTime.SPTimeText(silver), + spacingText, " ", SegmentedTime.SPTimeText(gold), diamondText,