[F] SelectionDetail Font size

[RF] Move SelectionDetail to Utils
[RF] Remove UrGui
[RF] Refactor SelectionDetail
This commit is contained in:
Clansty
2024-09-29 23:12:22 +08:00
parent 43997f2215
commit 78a396ce4b
11 changed files with 110 additions and 102 deletions

View File

@@ -0,0 +1,12 @@
using UnityEngine;
namespace AquaMai.Helpers;
public static class GuiSizes
{
public static float PlayerWidth => Screen.height / 1920f * 1080;
public static float PlayerCenter => AquaMai.AppConfig.UX.SinglePlayer ? Screen.width / 2f : Screen.width / 2f - PlayerWidth / 2;
public static int FontSize => (int)(PlayerWidth * .015f);
public static float LabelHeight => FontSize * 1.5f;
public static float Margin => PlayerWidth * .005f;
}