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

Public Member Functions

IEnumerator Animate ()
 
void ApplySkin ()
 
void ApplySkin ()
 

Public Attributes

ImageType imageType
 
BaseSkinRoot skinRoot
 
bool animate
 
Vector2 animeSpeed
 

Protected Member Functions

override void Awake ()
 
override void OnEnable ()
 
override void OnDisable ()
 
override void OnPopulateMesh (VertexHelper vh)
 

Detailed Description

Definition at line 5 of file UIRawImage.cs.

Member Function Documentation

◆ Animate()

IEnumerator UIRawImage.Animate ( )
inline

Definition at line 39 of file UIRawImage.cs.

40 {
41 while (true)
42 {
43 Rect rect = base.uvRect;
44 rect.x += animeSpeed.x * Time.smoothDeltaTime;
45 rect.y += animeSpeed.y * Time.smoothDeltaTime;
46 base.uvRect = rect;
47 yield return true;
48 }
49 }

◆ ApplySkin()

void UIRawImage.ApplySkin ( )
inline

Implements IUISkin.

Definition at line 51 of file UIRawImage.cs.

52 {
54 baseSkinRoot.ApplySkin(this);
55 if (imageType == ImageType.Line)
56 {
57 color = baseSkinRoot.Colors.colorLine;
58 }
59 }
ImageType
Definition: ImageType.cs:2
virtual void ApplySkin(UIImage t)
Definition: BaseSkinRoot.cs:16
virtual SkinColorProfile Colors
Definition: BaseSkinRoot.cs:7
SkinRootStatic currentSkin
Definition: SkinManager.cs:53
static SkinManager Instance
Definition: SkinManager.cs:78
BaseSkinRoot skinRoot
Definition: UIRawImage.cs:9
ImageType imageType
Definition: UIRawImage.cs:7

References BaseSkinRoot.ApplySkin(), SkinColorProfile.colorLine, BaseSkinRoot.Colors, SkinManager.currentSkin, imageType, SkinManager.Instance, and skinRoot.

Referenced by Awake().

◆ Awake()

override void UIRawImage.Awake ( )
inlineprotected

Definition at line 15 of file UIRawImage.cs.

16 {
17 ApplySkin();
18 base.Awake();
19 }
void ApplySkin()
Definition: UIRawImage.cs:51

References ApplySkin().

◆ OnDisable()

override void UIRawImage.OnDisable ( )
inlineprotected

Definition at line 30 of file UIRawImage.cs.

31 {
32 if (animate)
33 {
34 StopCoroutine("Animate");
35 }
36 base.OnDisable();
37 }
bool animate
Definition: UIRawImage.cs:11

References animate.

◆ OnEnable()

override void UIRawImage.OnEnable ( )
inlineprotected

Definition at line 21 of file UIRawImage.cs.

22 {
23 if (animate)
24 {
25 StartCoroutine("Animate");
26 }
27 base.OnEnable();
28 }

References animate.

◆ OnPopulateMesh()

override void UIRawImage.OnPopulateMesh ( VertexHelper  vh)
inlineprotected

Definition at line 61 of file UIRawImage.cs.

62 {
63 if (color.a == 0f || !base.texture)
64 {
65 vh.Clear();
66 }
67 else
68 {
69 base.OnPopulateMesh(vh);
70 }
71 }

Member Data Documentation

◆ animate

bool UIRawImage.animate

Definition at line 11 of file UIRawImage.cs.

Referenced by OnDisable(), and OnEnable().

◆ animeSpeed

Vector2 UIRawImage.animeSpeed

Definition at line 13 of file UIRawImage.cs.

◆ imageType

ImageType UIRawImage.imageType

Definition at line 7 of file UIRawImage.cs.

Referenced by ApplySkin(), and SkinRoot.ApplySkin().

◆ skinRoot

BaseSkinRoot UIRawImage.skinRoot

Definition at line 9 of file UIRawImage.cs.

Referenced by ApplySkin().


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