From e224dc01c4ffabd877060ddbc222e4dec5c0be04 Mon Sep 17 00:00:00 2001 From: osquallo Date: Thu, 9 Aug 2018 16:14:11 +0200 Subject: [PATCH] =?UTF-8?q?nettoyage=20de=20print=20de=20debug=20oubli?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global.gd | 8 +------- login_scene/character_selection_menu.gd | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/global.gd b/global.gd index f0cc2da..5595bad 100644 --- a/global.gd +++ b/global.gd @@ -40,8 +40,6 @@ func change_title(): ######## #### scene loading func goto_scene_loading( path ): - print( "goto: "+str(path) ) - get_node("background_loader").show() loader = ResourceLoader.load_interactive( path ) if loader == null: # check for errors @@ -57,7 +55,6 @@ func goto_scene_loading( path ): wait_frames = 1 func _process( time ): - print( "process" ) if loader == null: # no need to process anymore set_process(false) @@ -68,10 +65,7 @@ func _process( time ): return var t = OS.get_ticks_msec() - while OS.get_ticks_msec() < t + time_max: # use "time_max" to control how much time we block this thread - - print( "poll: "+str((float(loader.get_stage()) / loader.get_stage_count())*100)+"%" ) - + while OS.get_ticks_msec() < t + time_max: # use "time_max" to control how much time we block this thread # poll your loader var err = loader.poll() # update_progress() diff --git a/login_scene/character_selection_menu.gd b/login_scene/character_selection_menu.gd index c4d99d8..fca53f6 100644 --- a/login_scene/character_selection_menu.gd +++ b/login_scene/character_selection_menu.gd @@ -17,7 +17,6 @@ func update_character_slots(): print("Error code when loading player config file: ", err) var useds_slot = [] - var last_slot = 0 for section in config_file.get_sections(): useds_slot.append( int(section) ) @@ -57,12 +56,8 @@ func update_character_slots(): delete_button.connect( "mouse_entered", self, "_on_name_mouse_entered_pressed", [int(section)] ) - - print( str(useds_slot) ) if has_node( "h_box_container/character_slots/creation_button" ): -# self.remove_child( $h_box_container/character_slots/creation_button ) $h_box_container/character_slots/creation_button.free() -# if not has_node( "h_box_container/character_slots/creation_button" ): var index = 0 while index in useds_slot: @@ -112,7 +107,6 @@ func _on_delete_pressed( slot, node_to_delete ): func _on_name_mouse_entered_pressed( slot ): - print("azertyuiop") preview_slot = slot update_preview()