// Token: 0x060034AF RID: 13487 RVA: 0x0015AB2C File Offset: 0x00158F2C private static void onClickedTimeButton(SleekButton button) { int i; for (i = 0; i < EditorEnvironmentLightingUI.timeButtons.Length; i++) { if (EditorEnvironmentLightingUI.timeButtons[i] == button) { break; } } EditorEnvironmentLightingUI.selectedTime = (ELightingTime)i; EditorEnvironmentLightingUI.updateSelection(); switch (EditorEnvironmentLightingUI.selectedTime) { case ELightingTime.DAWN: LevelLighting.time = 0f; break; case ELightingTime.MIDDAY: LevelLighting.time = LevelLighting.bias / 2f; break; case ELightingTime.DUSK: LevelLighting.time = LevelLighting.bias; break; case ELightingTime.MIDNIGHT: LevelLighting.time = 1f - (1f - LevelLighting.bias) / 2f; break; } LevelLighting.updateClouds(); EditorEnvironmentLightingUI.timeSlider.state = LevelLighting.time; }
// Token: 0x060034B3 RID: 13491 RVA: 0x0015AC8C File Offset: 0x0015908C private static void onDraggedSingleSlider(SleekSlider slider, float state) { int i; for (i = 0; i < EditorEnvironmentLightingUI.singleSliders.Length; i++) { if (EditorEnvironmentLightingUI.singleSliders[i] == slider) { break; } } LevelLighting.times[(int)EditorEnvironmentLightingUI.selectedTime].singles[i] = state; LevelLighting.updateLighting(); if (i == 2) { LevelLighting.updateClouds(); } }