mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-08 00:40:08 +01:00
Added new test for 2D character controller: Character - Pixels Functional test for pixel art related issues around KinematicBody and RigidBody character controllers. Adjusted existing tests and added more test cases to cover most use cases from recent fixed issues and regressions for KinematicBody. Added a more automated way to run all tests with checks to see which ones failed in character controller tests. Also fixed some minor issues with the log scrollbar.
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
|