Ajout cercle progress

This commit is contained in:
telereview
2023-03-28 12:18:36 +02:00
parent ef2c3cdce4
commit 269402775d
6 changed files with 29 additions and 15 deletions

View File

@@ -54,8 +54,8 @@ class Manager():
res = self.handDetector.detect()
if(res != False):
state, coords, size, finalDecision = res
self.server.sendMessage({"type": "effects", "effects": [{"type": state, "x":coords[0], "y": coords[1], "width": size, "height": size}]})
state, coords, size, finalDecision, progress = res
self.server.sendMessage({"type": "effects", "effects": [{"type": "loading", "x":coords[0], "y": coords[1], "width": size, "height": size, "progress": progress},{"type": state, "x":coords[0], "y": coords[1], "width": size, "height": size}]})
self.isLastHandPacketEmpty = False
self.timeLastChange = time.time()
if(finalDecision != False):