Bugfix : commandes de la vitesse toujours visibles lors la fermeture de la tablette

This commit is contained in:
Philippe Roy 2022-10-27 21:35:08 +02:00
parent 40e73dc224
commit e3e1c3c33d

7
rp.py
View File

@ -1054,6 +1054,13 @@ def tablet_close ():
scene.objects['Task-cmd'].restorePhysics() scene.objects['Task-cmd'].restorePhysics()
scene.objects['Task-cmd-Hl'].setVisible(False,True) scene.objects['Task-cmd-Hl'].setVisible(False,True)
# Vitesse
if scene.objects['Points']['upgrade_speed'] ==False:
scene.objects['Text_speed'].setVisible(False,True)
scene.objects['Text_speed_label-fr'].setVisible(False,True)
scene.objects['Speed_down'].setVisible(False,True)
scene.objects['Speed_up'].setVisible(False,True)
# Camera # Camera
scene.objects['Camera'].worldPosition.x = scene.objects['Camera']['current_lx'] scene.objects['Camera'].worldPosition.x = scene.objects['Camera']['current_lx']
scene.objects['Camera'].worldPosition.y = scene.objects['Camera']['current_ly'] scene.objects['Camera'].worldPosition.y = scene.objects['Camera']['current_ly']