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

Public Member Functions

void Play (float mtp=1f)
 

Static Public Member Functions

static void Reset ()
 
static void Play (string id, float mtp=1f)
 

Public Attributes

Color color
 
AnimationCurve ease
 
float duration
 

Static Public Attributes

static Color currentColor
 
static Color clearColor = new Color(0f, 0f, 0f, 0f)
 

Static Private Attributes

static Tween tween
 

Detailed Description

Definition at line 4 of file ScreenFlash.cs.

Member Function Documentation

◆ Play() [1/2]

void ScreenFlash.Play ( float  mtp = 1f)
inline

Definition at line 29 of file ScreenFlash.cs.

30 {
31 TweenUtil.KillTween(ref tween);
32 tween = DOTween.To(() => currentColor, delegate(Color x)
33 {
34 currentColor = x;
35 }, color * mtp, duration).SetEase(ease).OnComplete(delegate
36 {
37 Reset();
38 });
39 }
static void Reset()
Definition: ScreenFlash.cs:18
static Tween tween
Definition: ScreenFlash.cs:6
AnimationCurve ease
Definition: ScreenFlash.cs:14
static Color currentColor
Definition: ScreenFlash.cs:8
Color color
Definition: ScreenFlash.cs:12
float duration
Definition: ScreenFlash.cs:16

References Color, color, currentColor, duration, ease, Reset(), and tween.

◆ Play() [2/2]

static void ScreenFlash.Play ( string  id,
float  mtp = 1f 
)
inlinestatic

Definition at line 24 of file ScreenFlash.cs.

25 {
26 ResourceCache.Load<ScreenFlash>("Media/Effect/ScreenEffect/Flash/" + id).Play(mtp);
27 }
static void Play(string id, float mtp=1f)
Definition: ScreenFlash.cs:24

References Play().

Referenced by Play(), and GameUpdater.Update100ms().

◆ Reset()

static void ScreenFlash.Reset ( )
inlinestatic

Definition at line 18 of file ScreenFlash.cs.

19 {
20 TweenUtil.KillTween(ref tween);
22 }
static Color clearColor
Definition: ScreenFlash.cs:10

References clearColor, currentColor, and tween.

Referenced by Scene.Init(), and Play().

Member Data Documentation

◆ clearColor

Color ScreenFlash.clearColor = new Color(0f, 0f, 0f, 0f)
static

Definition at line 10 of file ScreenFlash.cs.

Referenced by Reset().

◆ color

Color ScreenFlash.color

Definition at line 12 of file ScreenFlash.cs.

Referenced by Play().

◆ currentColor

Color ScreenFlash.currentColor
static

Definition at line 8 of file ScreenFlash.cs.

Referenced by Play(), Reset(), and BaseGameScreen.UpdateShaders().

◆ duration

float ScreenFlash.duration

Definition at line 16 of file ScreenFlash.cs.

Referenced by Play().

◆ ease

AnimationCurve ScreenFlash.ease

Definition at line 14 of file ScreenFlash.cs.

Referenced by Play().

◆ tween

Tween ScreenFlash.tween
staticprivate

Definition at line 6 of file ScreenFlash.cs.

Referenced by Play(), and Reset().


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