Skip to content

Commit

Permalink
Organize error messages better
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTwentyThree committed Feb 1, 2025
1 parent cc33f0f commit 2e9483f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Nautilus/Patchers/DependencyWarningPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ private static void CreateDependencyWarningUI(uGUI_MainMenu mainMenu)
layoutGroup.padding = new RectOffset(15, 15, 40, 15);
#endif
// Create a list of all error messages that should be displayed
var errorsToDisplay = new List<string> { formattedMissingDependencies };
var errorsToDisplay = new List<string>
{
$"<color=#FF0000>{formattedMissingDependencies}</color>",
"<color=#FFFFFF>Mod load errors:</color>"
};
errorsToDisplay.AddRange(dependencyErrors.Where(ShouldDisplayError));
// Add error messages to menu
foreach (var error in errorsToDisplay)
Expand All @@ -104,6 +108,7 @@ private static void CreateDependencyWarningUI(uGUI_MainMenu mainMenu)
errorEntryText.text = error;
errorEntryText.enableWordWrapping = true;
errorEntryText.fontSize = 25;
errorEntryText.richText = true;
errorEntryTextObj.SetActive(true);
errorEntryTextObj.transform.localScale = Vector3.one;
}
Expand Down

0 comments on commit 2e9483f

Please sign in to comment.