-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhud.gd
20 lines (12 loc) · 784 Bytes
/
hud.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
extends Control
@onready var _brightness_slider_control: SliderControl = %BrightnessSliderControl
@onready var _contrast_slider_control: SliderControl = %ContrastSliderControl
@onready var _world_environment: WorldEnvironment = %WorldEnvironment
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
_brightness_slider_control.value = _world_environment.environment.adjustment_brightness;
_contrast_slider_control.value = _world_environment.environment.adjustment_contrast;
func _on_brightness_slider_control_value_changed(value: float) -> void:
_world_environment.environment.adjustment_brightness = value;
func _on_contrast_slider_control_value_changed(value: float) -> void:
_world_environment.environment.adjustment_contrast = value;