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

Public Member Functions

void SetText (string s, Sprite sprite=null, Color c=default(Color))
 

Public Attributes

UIText text
 
Image image
 
Outline outline2
 
bool setNativeSize = true
 
- Public Attributes inherited from PopItem
Anime animeIn
 
Anime animeOut
 
Image bg
 
Image arrow
 
float mtpDuration = 1f
 
Vector2 destPos
 
Tween killTimer
 
bool isDying
 
bool important
 

Detailed Description

Definition at line 4 of file PopItemText.cs.

Member Function Documentation

◆ SetText()

void PopItemText.SetText ( string  s,
Sprite  sprite = null,
Color  c = default(Color) 
)
inline

Definition at line 14 of file PopItemText.cs.

15 {
16 if ((bool)text)
17 {
18 if (c != default(Color))
19 {
20 text.SetText(s, c);
21 }
22 else
23 {
24 text.SetText(s);
25 }
26 text.SetActive(!s.IsEmpty());
27 }
28 if ((bool)image)
29 {
30 image.SetActive(sprite);
31 if ((bool)sprite)
32 {
33 image.sprite = sprite;
34 if (setNativeSize)
35 {
36 image.SetNativeSize();
37 }
38 }
39 }
40 if ((bool)outline2)
41 {
42 outline2.enabled = PopManager.outlineAlpha >= 0;
43 Color effectColor = outline2.effectColor;
44 effectColor.a = 0.01f * (float)PopManager.outlineAlpha;
45 outline2.effectColor = effectColor;
46 }
47 }
UIText text
Definition: PopItemText.cs:6
Outline outline2
Definition: PopItemText.cs:10
bool setNativeSize
Definition: PopItemText.cs:12
Image image
Definition: PopItemText.cs:8
static int outlineAlpha
Definition: PopManager.cs:9
void SetText(string s)
Definition: UIText.cs:159

References Color, image, outline2, PopManager.outlineAlpha, setNativeSize, UIText.SetText(), and text.

Referenced by PopManager.PopText().

Member Data Documentation

◆ image

Image PopItemText.image

Definition at line 8 of file PopItemText.cs.

Referenced by WidgetPopText._SayPick(), and SetText().

◆ outline2

Outline PopItemText.outline2

Definition at line 10 of file PopItemText.cs.

Referenced by SetText().

◆ setNativeSize

bool PopItemText.setNativeSize = true

Definition at line 12 of file PopItemText.cs.

Referenced by SetText().

◆ text

UIText PopItemText.text

Definition at line 6 of file PopItemText.cs.

Referenced by SetText().


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