mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 03:17:58 +08:00
[F] SelectionDetail Font size
[RF] Move SelectionDetail to Utils [RF] Remove UrGui [RF] Refactor SelectionDetail
This commit is contained in:
12
AquaMai/Helpers/GuiSizes.cs
Normal file
12
AquaMai/Helpers/GuiSizes.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user