Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
PopItemText.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
UnityEngine.UI;
3
4
public
class
PopItemText
:
PopItem
5
{
6
public
UIText
text
;
7
8
public
Image
image
;
9
10
public
Outline
outline2
;
11
12
public
bool
setNativeSize
=
true
;
13
14
public
void
SetText
(
string
s, Sprite sprite =
null
,
Color
c =
default
(
Color
))
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
}
48
}
FOWType.Color
@ Color
HitResult.Outline
@ Outline
PopItemText
Definition:
PopItemText.cs:5
PopItemText.SetText
void SetText(string s, Sprite sprite=null, Color c=default(Color))
Definition:
PopItemText.cs:14
PopItemText.text
UIText text
Definition:
PopItemText.cs:6
PopItemText.outline2
Outline outline2
Definition:
PopItemText.cs:10
PopItemText.setNativeSize
bool setNativeSize
Definition:
PopItemText.cs:12
PopItemText.image
Image image
Definition:
PopItemText.cs:8
PopItem
Definition:
PopItem.cs:7
PopManager
Definition:
PopManager.cs:8
PopManager.outlineAlpha
static int outlineAlpha
Definition:
PopManager.cs:9
UIText
Definition:
UIText.cs:6
UIText.SetText
void SetText(string s)
Definition:
UIText.cs:159
Elin
Plugins.UI
PopItemText.cs
Generated by
1.9.6