Elin Modding Docs Doc
Loading...
Searching...
No Matches
WidgetArtTool.cs
1using System;
2
3// Token: 0x020005F5 RID: 1525
4public class WidgetArtTool : Widget
5{
6 // Token: 0x17000C18 RID: 3096
7 // (get) Token: 0x06002A1D RID: 10781 RVA: 0x000ED1B2 File Offset: 0x000EB3B2
8 public CinemaConfig conf
9 {
10 get
11 {
12 return EMono.player.cinemaConfig;
13 }
14 }
15
16 // Token: 0x06002A1E RID: 10782 RVA: 0x000ED1C0 File Offset: 0x000EB3C0
17 public override void OnActivate()
18 {
19 CameraSupport camSupport = EMono.scene.camSupport;
20 this.sliderSpeed.SetSlider((float)this.conf.speed, delegate(float a)
21 {
22 this.conf.speed = (int)a;
23 return "Speed (" + ((int)a).ToString() + ")";
24 }, -1, -1, true);
25 this.sliderBrightness.SetSlider((float)this.conf.brightness, delegate(float a)
26 {
27 this.conf.brightness = (int)a;
28 return "Brightness (" + ((int)a).ToString() + "%)";
29 }, -1, -1, true);
30 this.sliderLight.SetSlider((float)this.conf.light, delegate(float a)
31 {
32 this.conf.light = (int)a;
33 return "Light (" + ((int)a).ToString() + "%)";
34 }, -1, -1, true);
35 GameDate d = EMono.world.date;
36 this.sliderTime.SetSlider((float)d.hour, delegate(float a)
37 {
38 Weather.Condition currentCondition = EMono.world.weather.CurrentCondition;
39 if (d.hour != (int)a)
40 {
41 d.hour = (int)a - 1;
42 d.AdvanceHour();
43 EMono.world.weather.SetCondition(currentCondition, 20, false);
44 }
45 EMono._map.RefreshFOV(EMono.pc.pos.x, EMono.pc.pos.z, 20, true);
46 EMono.screen.RefreshAll();
47 return "Time (" + d.hour.ToString() + ")";
48 }, false);
49 this.sliderTime.SetActive(EMono.debug.enable);
50 this.RebuildLayout(true);
51 }
52
53 // Token: 0x06002A1F RID: 10783 RVA: 0x000ED2A8 File Offset: 0x000EB4A8
54 public void Reset()
55 {
56 EMono.player.cinemaConfig = new CinemaConfig();
57 this.sliderBrightness.value = (float)this.conf.brightness;
58 this.sliderLight.value = (float)this.conf.light;
59 this.sliderSpeed.value = (float)this.conf.speed;
60 }
61
62 // Token: 0x040017BF RID: 6079
63 public UISlider sliderSpeed;
64
65 // Token: 0x040017C0 RID: 6080
66 public UISlider sliderBrightness;
67
68 // Token: 0x040017C1 RID: 6081
69 public UISlider sliderLight;
70
71 // Token: 0x040017C2 RID: 6082
72 public UISlider sliderTime;
73
74 // Token: 0x040017C3 RID: 6083
75 public float zoom = 1f;
76
77 // Token: 0x040017C4 RID: 6084
78 public float hour = 12f;
79}
Definition EMono.cs:6