2018-08-07 08:18:26 +00:00
|
|
|
extends Node
|
|
|
|
|
2018-08-08 13:48:37 +00:00
|
|
|
signal logout_button_pressed
|
|
|
|
|
2018-08-07 08:18:26 +00:00
|
|
|
const WINDOW_TITLE_INPUT = "GUI/Settings/Menus/TabContainer/Test/ScrollContainer/VBoxContainer/TitleBox/Title"
|
|
|
|
|
|
|
|
func _ready():
|
2018-08-23 14:03:36 +00:00
|
|
|
|
2018-08-07 08:18:26 +00:00
|
|
|
get_tree().get_root().connect("size_changed", self, "on_window_size_changed")
|
2018-08-25 06:36:37 +00:00
|
|
|
|
2018-08-23 14:03:36 +00:00
|
|
|
global.get_node("GUI").show()
|
2018-08-21 08:41:41 +00:00
|
|
|
global.get_node("GUI").play()
|
2018-08-09 07:36:14 +00:00
|
|
|
|
2018-08-25 06:36:37 +00:00
|
|
|
character.show_third_person_camera()
|
|
|
|
character.get_node( "infos_spatial" ).show()
|
|
|
|
|
2018-09-30 14:22:07 +00:00
|
|
|
global.get_node( "audio_stream_player" ).stop()
|
|
|
|
|
2018-08-07 08:18:26 +00:00
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
|
|
|
func on_window_size_changed():
|
|
|
|
change_title()
|
|
|
|
|
|
|
|
func change_title():
|
2018-08-26 07:04:02 +00:00
|
|
|
if has_node( WINDOW_TITLE_INPUT ):
|
|
|
|
var title_node = get_node( WINDOW_TITLE_INPUT )
|
|
|
|
var title = "Khanat"
|
|
|
|
if title_node and not title_node.text.strip_edges() == "":
|
|
|
|
title = title_node.text.strip_edges()
|
|
|
|
title += " (" + String(OS.get_window_size().x) + "x" + String(OS.get_window_size().y) + ")"
|
|
|
|
OS.set_window_title( title )
|