mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
25 lines
446 B
GDScript
25 lines
446 B
GDScript
extends ScrollContainer
|
|
|
|
|
|
export(bool) var auto_scroll = false setget set_auto_scroll
|
|
|
|
|
|
func _ready():
|
|
var scrollbar = get_v_scrollbar()
|
|
scrollbar.connect("scrolling", self, "_on_scrolling")
|
|
|
|
|
|
func _process(_delta):
|
|
if auto_scroll:
|
|
var scrollbar = get_v_scrollbar()
|
|
scrollbar.value = scrollbar.max_value
|
|
|
|
|
|
func set_auto_scroll(value):
|
|
auto_scroll = value
|
|
|
|
|
|
func _on_scrolling():
|
|
auto_scroll = false
|
|
$"../CheckBoxScroll".pressed = false
|