Elin Decompiled Documentation
EA 23.102 Nightly
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
Files
File List
File Members
All
$
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
Functions
Variables
Enumerations
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
UIScaleFix.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
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
}
CoreConfig.UISetting.scale
int scale
Definition:
CoreConfig.cs:383
CoreConfig.ui
new UISetting ui
Definition:
CoreConfig.cs:588
Core.config
CoreConfig config
Definition:
Core.cs:70
EMono
Definition:
EMono.cs:4
EMono.core
static Core core
Definition:
EMono.cs:5
UIScaleFix
Definition:
UIScaleFix.cs:4
UIScaleFix.Awake
void Awake()
Definition:
UIScaleFix.cs:5
Elin
UIScaleFix.cs
Generated by
1.9.6