8 lines
262 B
GDScript3
8 lines
262 B
GDScript3
|
extends CheckButton
|
||
|
|
||
|
func _ready():
|
||
|
set_pressed_no_signal(Global.camera_attributes.dof_blur_far_enabled)
|
||
|
|
||
|
func on_toggled(toggled_on: bool):
|
||
|
Global.camera_attributes.dof_blur_far_enabled = toggled_on
|
||
|
Global.camera_attributes.dof_blur_near_enabled = toggled_on
|