correction d'un erreur avec change_title lorsquele node n'existe pas encore.
This commit is contained in:
parent
2a4d823c28
commit
d7070c14e5
1 changed files with 5 additions and 3 deletions
|
@ -21,13 +21,15 @@ func on_window_size_changed():
|
|||
change_title()
|
||||
|
||||
func change_title():
|
||||
var title = "Khanat"
|
||||
|
||||
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 )
|
||||
|
||||
title += " (" + String(OS.get_window_size().x) + "x" + String(OS.get_window_size().y) + ")"
|
||||
OS.set_window_title( title )
|
||||
|
||||
func _on_login_scene_character_creation_finished():
|
||||
var config_file = ConfigFile.new()
|
||||
|
|
Loading…
Reference in a new issue