FunkPanion/scripts/config/config_window.gd

17 lines
579 B
GDScript

extends ScrollContainer
var main_window: Window
# 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"
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")