Rename config to title screen config

This commit is contained in:
Noah Pilarski 2025-01-25 04:19:45 -05:00
parent e494a82fea
commit d17221da92
3 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace NewHorizons.External.Configs
{
[JsonObject]
public class MainMenuConfig
public class TitleScreenConfig
{
/// <summary>
/// Colour of the text on the main menu

View File

@ -28,12 +28,11 @@ namespace NewHorizons.Handlers
subtitleContainer.AddComponent<SubtitlesHandler>();
}
public static void SetUp(MainMenuConfig config)
public static void SetUp(TitleScreenConfig config)
{
if (config.menuTextTint != null)
{
TitleScreenColourHandler.SetColour((Color)config.menuTextTint.ToColor());
TitleScreenColourHandler.SetColour(config.menuTextTint.ToColor());
}
}

View File

@ -433,7 +433,7 @@ namespace NewHorizons
// FOR TESTING!!!!
// Remove once actually loading a json file is implemented
TitleSceneHandler.SetUp(new MainMenuConfig() { menuTextTint = new External.SerializableData.MColor(128, 128, 255) });
TitleSceneHandler.SetUp(new TitleScreenConfig() { menuTextTint = new External.SerializableData.MColor(128, 128, 255) });
}
// EOTU fixes