Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIScaleFix Class Reference
Inheritance diagram for UIScaleFix:
EMono

Private Member Functions

void Awake ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file UIScaleFix.cs.

Member Function Documentation

◆ Awake()

void UIScaleFix.Awake ( )
inlineprivate

Definition at line 5 of file UIScaleFix.cs.

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 }
new UISetting ui
Definition: CoreConfig.cs:588
CoreConfig config
Definition: Core.cs:70
Definition: EMono.cs:4
static Core core
Definition: EMono.cs:5

References Core.config, EMono.core, CoreConfig.UISetting.scale, and CoreConfig.ui.


The documentation for this class was generated from the following file: