Remove debug prints

This commit is contained in:
Philippe Roy 2022-04-23 11:04:45 +02:00
parent af31fd44e0
commit 7c24adde46

10
ct.py
View File

@ -498,7 +498,6 @@ def endbanner_hl(cont):
# Fermer la page de fin # Fermer la page de fin
def endbanner_close(): def endbanner_close():
print("endbanner_close")
sound_play (sndbuff_click) sound_play (sndbuff_click)
scene.objects['Terrain']['manip_mode']=0 scene.objects['Terrain']['manip_mode']=0
scene.objects['End'].setVisible(False,True) scene.objects['End'].setVisible(False,True)
@ -729,23 +728,16 @@ def mode(cont):
# Touche ESC # Touche ESC
if JUST_ACTIVATED in keyboard.inputs[bge.events.ESCKEY].queue: if JUST_ACTIVATED in keyboard.inputs[bge.events.ESCKEY].queue:
print("ESC")
print(scene.objects['Terrain']['manip_mode'])
# Fenêtres modales # Fenêtres modales
if scene.objects['Terrain']['manip_mode']==9: if scene.objects['Terrain']['manip_mode']==9:
print("['manip_mode']==9")
if scene.objects['Book'].visible: if scene.objects['Book'].visible:
print("Book")
doc_close() doc_close()
if scene.objects['About'].visible: if scene.objects['About'].visible:
print("About")
about_close() about_close()
if scene.objects['End'].visible: if scene.objects['End'].visible:
print("End")
endbanner_close() endbanner_close()
return return
else: # Sortir du jeux else: # Sortir du jeux
print("endgame")
terrain_stop () terrain_stop ()
bge.logic.endGame() bge.logic.endGame()
@ -1063,7 +1055,6 @@ def doc (cont):
# Fermer le livre # Fermer le livre
def doc_close (): def doc_close ():
print("doc_close")
sound_play (sndbuff_book_close) sound_play (sndbuff_book_close)
scene.objects['Terrain']['manip_mode']=0 # Fenêtre modale scene.objects['Terrain']['manip_mode']=0 # Fenêtre modale
scene.objects['Book_page_screen'].setVisible(False,True) scene.objects['Book_page_screen'].setVisible(False,True)
@ -1171,7 +1162,6 @@ def about_hl(cont):
# Fermer le about # Fermer le about
def about_close(): def about_close():
print("about_close")
sound_play (sndbuff_click) sound_play (sndbuff_click)
scene.objects['Terrain']['manip_mode']=0 scene.objects['Terrain']['manip_mode']=0
scene.objects['About'].setVisible(False,True) scene.objects['About'].setVisible(False,True)