Files
AquaDX/AquaMai/Helpers/GuiSizes.cs
Clansty 78a396ce4b [F] SelectionDetail Font size
[RF] Move SelectionDetail to Utils
[RF] Remove UrGui
[RF] Refactor SelectionDetail
2024-09-29 23:12:22 +08:00

13 lines
459 B
C#

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;
}