The popups, the volume slider, the player name field and the main window get a class_name, so the main window and the quiz hold them by their real type instead of Control. The classes already use the names the files will get.
10 lines
226 B
GDScript
10 lines
226 B
GDScript
class_name ScrollToEndContainer
|
|
extends ScrollContainer
|
|
|
|
var max_value = 0;
|
|
|
|
func _draw():
|
|
if max_value != self.get_v_scroll_bar().max_value:
|
|
max_value = self.get_v_scroll_bar().max_value
|
|
self.scroll_vertical = max_value
|