Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
UIScaleFix.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class UIScaleFix : EMono
4{
5 private void Awake()
6 {
7 int scale = EMono.core.config.ui.scale;
8 if (scale > 20 && scale <= 22)
9 {
10 Vector3 localScale = new Vector3(1f, 1f / (1f * (float)scale * 0.05f), 1f);
11 base.transform.localScale = localScale;
12 if (localScale.y < 0.91f && base.transform.localPosition.y * 10f % 10f == 0f)
13 {
14 base.transform.localPosition = new Vector3(base.transform.localPosition.x, base.transform.localPosition.y + 0.1f, 1f);
15 }
16 }
17 else
18 {
19 base.transform.localScale = new Vector3(1f, 1f, 1f);
20 }
21 }
22}
new UISetting ui
Definition: CoreConfig.cs:588
CoreConfig config
Definition: Core.cs:70
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5
void Awake()
Definition: UIScaleFix.cs:5