Elin Modding Docs Doc
Loading...
Searching...
No Matches
UIGameBG.cs
1using System;
2using UnityEngine;
3using UnityEngine.UI;
4
5// Token: 0x020005E5 RID: 1509
6public class UIGameBG : EMono
7{
8 // Token: 0x17000C00 RID: 3072
9 // (get) Token: 0x06002996 RID: 10646 RVA: 0x000EAF1B File Offset: 0x000E911B
10 public static bool IsActive
11 {
12 get
13 {
14 return UIGameBG.Instance && UIGameBG.Instance.image.color.a >= 1f;
15 }
16 }
17
18 // Token: 0x06002997 RID: 10647 RVA: 0x000EAF49 File Offset: 0x000E9149
19 private void Awake()
20 {
21 this.image = base.GetComponent<Image>();
22 base.InvokeRepeating("Refresh", 0.5f, 0.5f);
23 this.Refresh();
24 UIGameBG.Instance = this;
25 }
26
27 // Token: 0x06002998 RID: 10648 RVA: 0x000EAF78 File Offset: 0x000E9178
28 public void Refresh()
29 {
30 float timeRatio = EMono.scene.timeRatio;
31 SceneColorProfile color = EMono.scene.profile.color;
32 color.sun.Evaluate(timeRatio);
33 Color color2 = color.sky.Evaluate(timeRatio);
34 color.skyBG.Evaluate(timeRatio);
35 if (timeRatio < 0.3f)
36 {
37 Mathf.Min((0.3f - timeRatio) * 10f, 1f);
38 }
39 if (!this.indoor)
40 {
41 this.image.color = color2;
42 }
43 }
44
45 // Token: 0x04001777 RID: 6007
46 public static UIGameBG Instance;
47
48 // Token: 0x04001778 RID: 6008
49 public bool indoor;
50
51 // Token: 0x04001779 RID: 6009
52 private Image image;
53}
Definition EMono.cs:6