mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
Ajout cercle progress
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user