class_name ScreenEffectsTest extends Control @onready var _tint_button := ( $OuterMargin/Content/VBoxContainer/TintHBoxContainer/TintCheckButton ) as CheckButton @onready var _tint_color := ( $OuterMargin/Content/VBoxContainer/TintHBoxContainer/TintColorPickerButton ) as ColorPickerButton @onready var _fade_button := ( $OuterMargin/Content/VBoxContainer/FadeHBoxContainer/FadeCheckButton ) as CheckButton @onready var _fade_color := ( $OuterMargin/Content/VBoxContainer/FadeHBoxContainer/FadeColorPickerButton ) as ColorPickerButton @onready var _flash_button := ( $OuterMargin/Content/VBoxContainer/FlashHBoxContainer/FlashCheckButton ) as CheckButton @onready var _flash_color := ( $OuterMargin/Content/VBoxContainer/FlashHBoxContainer\ /FlashColorPickerButton ) as ColorPickerButton @onready var _rain_button := ( $OuterMargin/Content/VBoxContainer/RainHBoxContainer/RainCheckButton ) as CheckButton @onready var _rain_magnitude := ( $OuterMargin/Content/VBoxContainer/RainHBoxContainer/RainSpinBox ) as SpinBox @onready var _snow_button := ( $OuterMargin/Content/VBoxContainer/SnowHBoxContainer/SnowCheckButton ) as CheckButton @onready var _snow_magnitude := ( $OuterMargin/Content/VBoxContainer/SnowHBoxContainer/SnowSpinBox ) as SpinBox @onready var _stop_weather_button := ( $OuterMargin/Content/VBoxContainer/StopWeatherHBoxContainer\ /StopWeatherCheckButton ) as CheckButton @onready var _time_of_day_button := ( $OuterMargin/Content/VBoxContainer/TimeOfDayHBoxContainer\ /TimeOfDayCheckButton ) as CheckButton @onready var _time_of_day := ( $OuterMargin/Content/VBoxContainer/TimeOfDayHBoxContainer\ /TimeOfDayOptionButton ) as OptionButton @onready var _overcast_button := ( $OuterMargin/Content/VBoxContainer/OvercastHBoxContainer\ /OvercastCheckButton ) as CheckButton @onready var _overcast_magnitude := ( $OuterMargin/Content/VBoxContainer/OvercastHBoxContainer/OvercastSlider ) as HSlider @onready var _do_it_button := ( $OuterMargin/Content/VBoxContainer/DoIt ) as Button func _ready() -> void: _do_it_button.pressed.connect(_do_it) func _do_it() -> void: if _tint_button.button_pressed: FX.tint(_tint_color.color) elif _fade_button.button_pressed: FX.fade(_fade_color.color) elif _flash_button.button_pressed: FX.flash(_flash_color.color) elif _rain_button.button_pressed: FX.rain(int(_rain_magnitude.value)) elif _snow_button.button_pressed: FX.snow(int(_snow_magnitude.value)) elif _stop_weather_button.button_pressed: FX.stop_weather() elif _time_of_day_button.button_pressed: match _time_of_day.selected: 0: FX.morning() 1: FX.day() 2: FX.afternoon() 3: FX.evening() 4: FX.night() _: pass elif _overcast_button.button_pressed: FX.overcast(_overcast_magnitude.value) UI.Return(self, true)