Files
AIGame/AIClient/Assets/HotUpdate/Scripts/UI/UiThemeCatalog.cs
T

26 lines
714 B
C#

using System;
using UnityEngine;
namespace HotUpdate.UI
{
/// <summary>Candy UI;旧启动配置中的其他主题值回退到 Candy。</summary>
public static class UiThemeCatalog
{
public const string Candy = "candy";
public static string Normalize(string theme)
{
if (string.IsNullOrWhiteSpace(theme)) return Candy;
theme = theme.Trim().ToLowerInvariant();
if (theme == Candy) return Candy;
Debug.LogWarning($"[UI] Unknown theme '{theme}', using candy.");
return Candy;
}
public static string Resolve(string logicalName, string theme)
{
return logicalName;
}
}
}