11 lines
321 B
GDScript

extends CheckButton
var environment: Environment
func _ready():
var world_environment := get_node("/root/Main/World/Environment") as WorldEnvironment
environment = world_environment.environment
set_pressed_no_signal(environment.glow_enabled)
func on_toggled(toggled_on: bool):
environment.glow_enabled = toggled_on