Files
Jiaqi Liu b1d9e3b0ac Bug fix + Bump Unity version + Update copyright text
- Fixed a bug caused by inconsistent state check between managed and native object.
- Bump Unity version.
- Update copyright text
2025-03-05 21:13:59 -08:00

46 lines
1.9 KiB
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2025, 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
}
}