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

Public Member Functions

void Refresh ()
 

Public Attributes

bool indoor
 

Static Public Attributes

static UIGameBG Instance
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

static bool IsActive [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]
 

Private Member Functions

void Awake ()
 

Private Attributes

Image image
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Detailed Description

Definition at line 4 of file UIGameBG.cs.

Member Function Documentation

◆ Awake()

void UIGameBG.Awake ( )
inlineprivate

Definition at line 24 of file UIGameBG.cs.

25 {
26 image = GetComponent<Image>();
27 InvokeRepeating("Refresh", 0.5f, 0.5f);
28 Refresh();
29 Instance = this;
30 }
static UIGameBG Instance
Definition: UIGameBG.cs:6
void Refresh()
Definition: UIGameBG.cs:32
Image image
Definition: UIGameBG.cs:10

References image, Instance, and Refresh().

◆ Refresh()

void UIGameBG.Refresh ( )
inline

Definition at line 32 of file UIGameBG.cs.

33 {
34 float timeRatio = EMono.scene.timeRatio;
36 color.sun.Evaluate(timeRatio);
37 Color color2 = color.sky.Evaluate(timeRatio);
38 color.skyBG.Evaluate(timeRatio);
39 if (timeRatio < 0.3f)
40 {
41 Mathf.Min((0.3f - timeRatio) * 10f, 1f);
42 }
43 if (!indoor)
44 {
45 image.color = color2;
46 }
47 }
Definition: EMono.cs:4
static Scene scene
Definition: EMono.cs:27
SceneColorProfile color
Definition: SceneProfile.cs:12
float timeRatio
Definition: Scene.cs:124
SceneProfile profile
Definition: Scene.cs:73
bool indoor
Definition: UIGameBG.cs:8

References Color, SceneProfile.color, indoor, Scene.profile, EMono.scene, SceneColorProfile.sky, SceneColorProfile.skyBG, SceneColorProfile.sun, and Scene.timeRatio.

Referenced by Awake().

Member Data Documentation

◆ image

Image UIGameBG.image
private

Definition at line 10 of file UIGameBG.cs.

Referenced by Awake().

◆ indoor

bool UIGameBG.indoor

Definition at line 8 of file UIGameBG.cs.

Referenced by Refresh().

◆ Instance

UIGameBG UIGameBG.Instance
static

Definition at line 6 of file UIGameBG.cs.

Referenced by Awake().

Property Documentation

◆ IsActive

bool UIGameBG.IsActive
staticget

Definition at line 12 of file UIGameBG.cs.

13 {
14 get
15 {
16 if ((bool)Instance)
17 {
18 return Instance.image.color.a >= 1f;
19 }
20 return false;
21 }
22 }

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