Add make not wait
This commit is contained in:
parent
43f1521a1e
commit
7a73561ec6
18 changed files with 124 additions and 1 deletions
|
|
@ -1,4 +1,59 @@
|
|||
<Page>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1312 </Height>
|
||||
<EventOpen>
|
||||
DEBUGVAR PaySuccessWithDaemonTask
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
If PaySuccessWithDaemonTask = 1 Then
|
||||
|
||||
DEBUGVAR PaidPaymentFromNextStage
|
||||
DEBUGVAR LastMakeDrinkResult
|
||||
; from
|
||||
If LastMakeDrinkResult = "success" Then
|
||||
If PaidPaymentFromNextStage = 1 Then
|
||||
Var DelayForMakeDrink = 0
|
||||
Var PaidPaymentFromNextStage = 2
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PaidPaymentFromNextStage = 2 Then
|
||||
DEBUGVAR HaveCup
|
||||
DEBUGVAR MachineStage
|
||||
DEBUGVAR DoorCupPosition
|
||||
If HaveCup = "false" Then
|
||||
If DoorCupPosition = "bottom" Then
|
||||
|
||||
Topping "Select" next.UserSelectDrinkFromPaid
|
||||
|
||||
; Set option toppinng and pack
|
||||
Topping "Select1-ID" next.UserSelecttopping1Paid
|
||||
Topping "Select2-ID" next.UserSelecttopping2Paid
|
||||
Topping "Select3-ID" next.UserSelecttopping3Paid
|
||||
|
||||
; Pack
|
||||
Topping "Pack" ExtendDataCurr
|
||||
|
||||
Var DelayForMakeDrink = 2
|
||||
Var PaidPaymentFromNextStage = 3
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR DelayForMakeDrink
|
||||
If DelayForMakeDrink > 3 Then
|
||||
DEBUGVAR DelayForMakeDrink
|
||||
Var DelayForMakeDrink = DelayForMakeDrink - 1
|
||||
If DelayForMakeDrink = 0 Then
|
||||
MakeDrinkV1 SelectDrink SelectSugarID
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
; hurr
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
</Page>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue