nettoyage de print de debug oublié
This commit is contained in:
parent
8235794145
commit
e224dc01c4
2 changed files with 1 additions and 13 deletions
|
@ -40,8 +40,6 @@ func change_title():
|
||||||
########
|
########
|
||||||
#### scene loading
|
#### scene loading
|
||||||
func goto_scene_loading( path ):
|
func goto_scene_loading( path ):
|
||||||
print( "goto: "+str(path) )
|
|
||||||
|
|
||||||
get_node("background_loader").show()
|
get_node("background_loader").show()
|
||||||
loader = ResourceLoader.load_interactive( path )
|
loader = ResourceLoader.load_interactive( path )
|
||||||
if loader == null: # check for errors
|
if loader == null: # check for errors
|
||||||
|
@ -57,7 +55,6 @@ func goto_scene_loading( path ):
|
||||||
wait_frames = 1
|
wait_frames = 1
|
||||||
|
|
||||||
func _process( time ):
|
func _process( time ):
|
||||||
print( "process" )
|
|
||||||
if loader == null:
|
if loader == null:
|
||||||
# no need to process anymore
|
# no need to process anymore
|
||||||
set_process(false)
|
set_process(false)
|
||||||
|
@ -68,10 +65,7 @@ func _process( time ):
|
||||||
return
|
return
|
||||||
|
|
||||||
var t = OS.get_ticks_msec()
|
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
|
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)+"%" )
|
|
||||||
|
|
||||||
# poll your loader
|
# poll your loader
|
||||||
var err = loader.poll()
|
var err = loader.poll()
|
||||||
# update_progress()
|
# update_progress()
|
||||||
|
|
|
@ -17,7 +17,6 @@ func update_character_slots():
|
||||||
print("Error code when loading player config file: ", err)
|
print("Error code when loading player config file: ", err)
|
||||||
|
|
||||||
var useds_slot = []
|
var useds_slot = []
|
||||||
|
|
||||||
var last_slot = 0
|
var last_slot = 0
|
||||||
for section in config_file.get_sections():
|
for section in config_file.get_sections():
|
||||||
useds_slot.append( int(section) )
|
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)] )
|
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" ):
|
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()
|
$h_box_container/character_slots/creation_button.free()
|
||||||
# if not has_node( "h_box_container/character_slots/creation_button" ):
|
|
||||||
|
|
||||||
var index = 0
|
var index = 0
|
||||||
while index in useds_slot:
|
while index in useds_slot:
|
||||||
|
@ -112,7 +107,6 @@ func _on_delete_pressed( slot, node_to_delete ):
|
||||||
|
|
||||||
|
|
||||||
func _on_name_mouse_entered_pressed( slot ):
|
func _on_name_mouse_entered_pressed( slot ):
|
||||||
print("azertyuiop")
|
|
||||||
preview_slot = slot
|
preview_slot = slot
|
||||||
update_preview()
|
update_preview()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue