Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
SkinDecoActor.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
UnityEngine.UI;
3
4
public
class
SkinDecoActor
: MonoBehaviour
5
{
6
public
SkinDeco
owner
;
7
8
public
Image
image
;
9
10
public
Shadow
shadow
;
11
12
public
void
Refresh
()
13
{
14
image
.SetNativeSize();
15
Vector2 sizeDelta = this.Rect().sizeDelta;
16
this.Rect().sizeDelta =
new
Vector2(sizeDelta.x * (
float
)
owner
.
sx
* 0.01f, sizeDelta.y * (
float
)
owner
.
sy
* 0.01f);
17
image.color =
owner
.
color
;
18
base.transform.localEulerAngles =
new
Vector3(0f, 0f,
owner
.
rz
* 45);
19
base.transform.localScale =
new
Vector3((!
owner
.
reverse
) ? 1 : (-1), 1f, 1f);
20
shadow.enabled =
owner
.
shadow
;
21
shadow.effectDistance =
new
Vector2(
owner
.
reverse
? (-3) : 3, -3f);
22
if
(
owner
.
bottom
)
23
{
24
base.transform.SetSiblingIndex(1);
25
}
26
}
27
}
SkinDecoActor
Definition:
SkinDecoActor.cs:5
SkinDecoActor.image
Image image
Definition:
SkinDecoActor.cs:8
SkinDecoActor.owner
SkinDeco owner
Definition:
SkinDecoActor.cs:6
SkinDecoActor.Refresh
void Refresh()
Definition:
SkinDecoActor.cs:12
SkinDecoActor.shadow
Shadow shadow
Definition:
SkinDecoActor.cs:10
SkinDeco
Definition:
SkinDeco.cs:7
SkinDeco.sy
int sy
Definition:
SkinDeco.cs:64
SkinDeco.rz
int rz
Definition:
SkinDeco.cs:88
SkinDeco.color
Color color
Definition:
SkinDeco.cs:76
SkinDeco.bottom
bool bottom
Definition:
SkinDeco.cs:136
SkinDeco.reverse
bool reverse
Definition:
SkinDeco.cs:124
SkinDeco.sx
int sx
Definition:
SkinDeco.cs:52
SkinDeco.shadow
bool shadow
Definition:
SkinDeco.cs:112
Elin
Plugins.UI
SkinDecoActor.cs
Generated by
1.9.6