mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01: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
|