FunkPanion/scripts/config/config_window.gd

18 lines
579 B
GDScript3
Raw Normal View History

2024-11-23 20:36:52 +00:00
extends ScrollContainer
var main_window: Window
2024-11-23 20:36:52 +00:00
# Called when the node enters the scene tree for the first time.
func _enter_tree() -> void:
main_window = get_tree().root
main_window.borderless = false
main_window.always_on_top = false
main_window.transparent = false
main_window.min_size = Vector2i(640, 480)
main_window.size = Vector2i(640, 480)
main_window.title = "FunkPanion Config"
2024-11-23 20:36:52 +00:00
ProjectSettings.set_setting("display/window/subwindows/embed_subwindows", false)
func _on_back_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/main.tscn")