Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
EffectText Class Reference
Inheritance diagram for EffectText:
Effect SceneObject EMono

Public Member Functions

EffectText Play (Vector3 _pos, string text, float _duration=0f)
 
EffectText SetColor (Color c)
 
EffectText SetSize (float a)
 
void LateUpdate ()
 
- Public Member Functions inherited from Effect
void Play (float delay, Point from, float fixY=0f, Point to=null, Sprite sprite=null)
 
Effect Play (Point from, float fixY=0f, Point to=null, Sprite sprite=null)
 
Effect _Play (Point from, Vector3 fromV, float fixY=0f, Point to=null, Sprite sprite=null)
 
Effect Play (Vector3 v)
 
Effect Flip (bool x=false, bool y=false)
 
Effect SetStartDelay (float a)
 
virtual void OnPlay ()
 
virtual void OnUpdate ()
 
void Kill ()
 
virtual void OnKill ()
 
void OnDisable ()
 
void OnDestroy ()
 
Effect Emit (int num)
 
Effect SetParticleColor (Color c)
 
Effect SetParticleColor (Color color, bool changeMaterial=false, string idCol="_Color")
 
Effect SetScale (float a)
 

Public Attributes

Text textMain
 
RectTransform rect
 
RectTransform body
 
bool addBrackets
 
Vector3 pos
 
- Public Attributes inherited from Effect
Type type
 
float duration = 1f
 
float speed
 
float startDelay
 
bool lookAtTarget
 
bool rotate
 
bool pool
 
SpriteRenderer sr
 
ParticleSystem[] systems
 
Vector3[] dirs
 
Ease ease
 
Vector3 posFix
 
Vector3 randomRange
 
Tween moveTween
 
Sprite[] sprites
 
bool randomFlip
 
bool randomSpeed
 
bool test
 
bool setColor = true
 
Action onComplete
 
int spriteIndex
 
float timer
 
Vector3 fromV
 
Vector3 destV
 
bool pooled
 
Transform poolParent
 
List< MaterialmaterialsToDestroy
 
Point destPos
 
Tween killTimer
 

Static Public Attributes

static RectTransform transRoot
 
- Static Public Attributes inherited from EMono
static Core core
 

Additional Inherited Members

- Public Types inherited from Effect
enum  Type { Default , Firework }
 
- Static Public Member Functions inherited from Effect
static Effect Get (Effect original)
 
static Effect Get (string id)
 
static T Get< T > (string id)
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Protected Member Functions inherited from Effect
void Activate ()
 
- Protected Attributes inherited from Effect
bool killed
 
- Properties inherited from Effect
static EffectManager manager [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 5 of file EffectText.cs.

Member Function Documentation

◆ LateUpdate()

void EffectText.LateUpdate ( )
inline

Definition at line 45 of file EffectText.cs.

46 {
47 rect.localPosition = Util.WorldToUIPos(pos, rect.parent as RectTransform);
48 }
RectTransform rect
Definition: EffectText.cs:11
Vector3 pos
Definition: EffectText.cs:18
Definition: Util.cs:10
static Vector2 WorldToUIPos(Vector3 worldPoint, RectTransform container)
Definition: Util.cs:209

References pos, rect, and Util.

Referenced by Play().

◆ Play()

EffectText EffectText.Play ( Vector3  _pos,
string  text,
float  _duration = 0f 
)
inline

Definition at line 20 of file EffectText.cs.

21 {
22 base.transform.SetParent(transRoot, worldPositionStays: false);
23 pos = _pos + posFix + randomRange.Random();
24 if (addBrackets)
25 {
26 text = "* " + text + " *";
27 }
28 textMain.text = text;
29 LateUpdate();
30 return this;
31 }
bool addBrackets
Definition: EffectText.cs:15
void LateUpdate()
Definition: EffectText.cs:45
static RectTransform transRoot
Definition: EffectText.cs:7
Vector3 randomRange
Definition: Effect.cs:38
Vector3 posFix
Definition: Effect.cs:36

References addBrackets, LateUpdate(), pos, Effect.posFix, Effect.randomRange, and transRoot.

◆ SetColor()

EffectText EffectText.SetColor ( Color  c)
inline

Definition at line 33 of file EffectText.cs.

34 {
35 textMain.color = c;
36 return this;
37 }

◆ SetSize()

EffectText EffectText.SetSize ( float  a)
inline

Definition at line 39 of file EffectText.cs.

40 {
41 textMain.fontSize = (int)(a * (float)textMain.fontSize);
42 return this;
43 }
Text textMain
Definition: EffectText.cs:9

References textMain.

Member Data Documentation

◆ addBrackets

bool EffectText.addBrackets

Definition at line 15 of file EffectText.cs.

Referenced by Play().

◆ body

RectTransform EffectText.body

Definition at line 13 of file EffectText.cs.

◆ pos

Vector3 EffectText.pos

Definition at line 18 of file EffectText.cs.

Referenced by LateUpdate(), and Play().

◆ rect

RectTransform EffectText.rect

Definition at line 11 of file EffectText.cs.

Referenced by LateUpdate().

◆ textMain

Text EffectText.textMain

Definition at line 9 of file EffectText.cs.

Referenced by SetSize().

◆ transRoot

RectTransform EffectText.transRoot
static

Definition at line 7 of file EffectText.cs.

Referenced by Play().


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