Files
Pal3.Unity/Assets/Scripts/Pal3.Game/UI/UITheme.cs
Jiaqi (0x7c13) Liu e870cf487a Add core protocol regression tests and copyright checks
Cover SCE command contracts, binary readers, resource layouts and full local CPK decompression for PAL3 and PAL3A. Fix CVD time rebasing, binary read bounds and short reads, and CPK/NAV validation.

Standardize first-party copyright headers, preserve correct creation years, and update console source generation. Validate both variants in Unity and verify all live CPK entries.
2026-11-12 13:37:27 +08:00

46 lines
1.9 KiB
C#

// ------------------------------------------------------------------------
// Copyright (c) 2021-2026, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ------------------------------------------------------------------------
namespace Pal3.Game.UI
{
using UnityEngine;
using UnityEngine.UI;
public static class UITheme
{
public static ColorBlock GetButtonColors()
{
#if PAL3
return new ColorBlock()
{
colorMultiplier = 1f,
normalColor = new Color(100f / 255f, 80f / 255f, 40f / 255f, 190f / 255f),
highlightedColor = new Color(30f / 255f, 75f / 255f, 140f / 255f, 200f / 255f),
pressedColor = new Color(20f / 255f, 50f / 255f, 100f / 255f, 200f / 255f),
selectedColor = new Color(30f / 255f, 75f / 255f, 140f / 255f, 200f / 255f),
};
#elif PAL3A
return new ColorBlock()
{
colorMultiplier = 1f,
normalColor = new Color(100f / 255f, 80f / 255f, 40f / 255f, 190f / 255f),
highlightedColor = new Color(160f / 255f, 40f / 255f, 110f / 255f, 200f / 255f),
pressedColor = new Color(110f / 255f, 25f / 255f, 75f / 255f, 200f / 255f),
selectedColor = new Color(160f / 255f, 40f / 255f, 110f / 255f, 200f / 255f),
};
#endif
}
public static Color MinimapObstacleColor = new Color(0f, 0f, 0f, 0f);
public static Color MinimapWallColor = new Color(1f, 0.9f, 0.1f, 0.7f);
#if PAL3
public static Color MinimapFloorColor = new Color(30f / 255f, 75f / 255f, 140f / 255f, 100f / 255f);
#elif PAL3A
public static Color MinimapFloorColor = new Color(160f / 255f, 40f / 255f, 110f / 255f, 100f / 255f);
#endif
}
}