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

Classes

class  Highlight
 

Public Member Functions

void Add (Component target)
 
void Clear ()
 
void ApplySkin ()
 
void ApplySkin ()
 

Public Attributes

Image imageHighlight
 

Protected Attributes

List< Highlightlist = new List<Highlight>()
 

Private Member Functions

void Awake ()
 

Detailed Description

Definition at line 5 of file UIHighlight.cs.

Member Function Documentation

◆ Add()

void UIHighlight.Add ( Component  target)
inline

Definition at line 34 of file UIHighlight.cs.

35 {
36 Image image = Object.Instantiate(imageHighlight);
37 image.transform.SetParent(target.transform, worldPositionStays: false);
38 list.Add(new Highlight(image));
39 }
List< Highlight > list
Definition: UIHighlight.cs:27
Image imageHighlight
Definition: UIHighlight.cs:25

References imageHighlight, and list.

◆ ApplySkin()

void UIHighlight.ApplySkin ( )
inline

Implements IUISkin.

Definition at line 50 of file UIHighlight.cs.

51 {
52 }

Referenced by Awake().

◆ Awake()

void UIHighlight.Awake ( )
inlineprivate

Definition at line 29 of file UIHighlight.cs.

30 {
31 ApplySkin();
32 }
void ApplySkin()
Definition: UIHighlight.cs:50

References ApplySkin().

◆ Clear()

void UIHighlight.Clear ( )
inline

Definition at line 41 of file UIHighlight.cs.

42 {
43 for (int num = list.Count - 1; num >= 0; num--)
44 {
45 list[num].Kill();
46 }
47 list.Clear();
48 }

References list.

Member Data Documentation

◆ imageHighlight

Image UIHighlight.imageHighlight

Definition at line 25 of file UIHighlight.cs.

Referenced by Add().

◆ list

List<Highlight> UIHighlight.list = new List<Highlight>()
protected

Definition at line 27 of file UIHighlight.cs.

Referenced by Add(), and Clear().


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