12 return EMono.player.cinemaConfig;
17 public override void OnActivate()
20 this.sliderSpeed.SetSlider((
float)this.conf.speed, delegate(
float a)
22 this.conf.speed = (int)a;
23 return "Speed (" + ((int)a).ToString() +
")";
25 this.sliderBrightness.SetSlider((
float)this.conf.brightness, delegate(
float a)
27 this.conf.brightness = (int)a;
28 return "Brightness (" + ((int)a).ToString() +
"%)";
30 this.sliderLight.SetSlider((
float)this.conf.light, delegate(
float a)
32 this.conf.light = (int)a;
33 return "Light (" + ((int)a).ToString() +
"%)";
36 this.sliderTime.SetSlider((
float)d.hour, delegate(
float a)
38 Weather.Condition currentCondition =
EMono.world.weather.CurrentCondition;
43 EMono.world.weather.SetCondition(currentCondition, 20,
false);
46 EMono.screen.RefreshAll();
47 return "Time (" + d.hour.ToString() +
")";
49 this.sliderTime.SetActive(
EMono.debug.enable);
50 this.RebuildLayout(
true);
57 this.sliderBrightness.value = (float)this.conf.brightness;
58 this.sliderLight.value = (float)this.conf.light;
59 this.sliderSpeed.value = (float)this.conf.speed;
63 public UISlider sliderSpeed;
66 public UISlider sliderBrightness;
69 public UISlider sliderLight;
72 public UISlider sliderTime;
75 public float zoom = 1f;
78 public float hour = 12f;