mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-31 09:49:06 +03:00
15 lines
296 B
GDScript
15 lines
296 B
GDScript
extends ScrollContainer
|
|
|
|
|
|
@export var auto_scroll: bool = false
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
if auto_scroll:
|
|
var scrollbar := get_v_scroll_bar()
|
|
scrollbar.value = scrollbar.max_value
|
|
|
|
|
|
func _on_check_box_scroll_toggled(button_pressed: bool) -> void:
|
|
auto_scroll = button_pressed
|