MYS: add disabled buttons & show name for pro mystery, WIP staging e-receipt
This commit is contained in:
parent
ccbd8f8071
commit
cfb19451ad
27 changed files with 2051 additions and 1238 deletions
|
|
@ -8,12 +8,21 @@ For RandomCoffeeCheckIdx < 5 Loop
|
|||
Var CurrentPd = RandMystCoffee[RandomCoffeeCheckIdx]
|
||||
Var CurrentState !assigned @AutoVar ${CurrentPd}.Button
|
||||
|
||||
DEBUGVAR CurrentPd
|
||||
DEBUGVAR CurrentState
|
||||
|
||||
DEBUGVAR RandomCoffeeCheckIdx
|
||||
|
||||
If CurrentState = "Enable" Then
|
||||
|
||||
DEBUGVAR CurrentPd
|
||||
DEBUGVAR CurrentState
|
||||
|
||||
Var RandMystCoffeeEnabled[RandomCoffeeCheckOkIdx] = CurrentPd
|
||||
|
||||
Var RandMystCoffeeNameEnabled[RandomCoffeeCheckOkIdx][0] = RandMystCoffeeName[RandomCoffeeCheckIdx][0]
|
||||
Var RandMystCoffeeNameEnabled[RandomCoffeeCheckOkIdx][1] = RandMystCoffeeName[RandomCoffeeCheckIdx][1]
|
||||
Var RandMystCoffeeNameEnabled[RandomCoffeeCheckOkIdx][2] = RandMystCoffeeName[RandomCoffeeCheckIdx][2]
|
||||
Var RandMystCoffeeNameEnabled[RandomCoffeeCheckOkIdx][3] = RandMystCoffeeName[RandomCoffeeCheckIdx][3]
|
||||
Var RandMystCoffeeNameEnabled[RandomCoffeeCheckOkIdx][4] = RandMystCoffeeName[RandomCoffeeCheckIdx][4]
|
||||
|
||||
Var RandomCoffeeCheckOkIdx = RandomCoffeeCheckOkIdx + 1
|
||||
|
||||
EndIf
|
||||
|
|
@ -35,6 +44,13 @@ For RandomTeaCheckIdx < 7 Loop
|
|||
|
||||
If CurrentState = "Enable" Then
|
||||
Var RandMystTeaEnabled[RandomTeaCheckOkIdx] = CurrentPd
|
||||
|
||||
Var RandMystTeaNameEnabled[RandomTeaCheckOkIdx][0] = RandMystTeaName[RandomTeaCheckIdx][0]
|
||||
Var RandMystTeaNameEnabled[RandomTeaCheckOkIdx][1] = RandMystTeaName[RandomTeaCheckIdx][1]
|
||||
Var RandMystTeaNameEnabled[RandomTeaCheckOkIdx][2] = RandMystTeaName[RandomTeaCheckIdx][2]
|
||||
Var RandMystTeaNameEnabled[RandomTeaCheckOkIdx][3] = RandMystTeaName[RandomTeaCheckIdx][3]
|
||||
Var RandMystTeaNameEnabled[RandomTeaCheckOkIdx][4] = RandMystTeaName[RandomTeaCheckIdx][4]
|
||||
|
||||
Var RandomTeaCheckOkIdx = RandomTeaCheckOkIdx + 1
|
||||
|
||||
EndIf
|
||||
|
|
@ -56,6 +72,13 @@ For RandomMilkCheckIdx < 7 Loop
|
|||
|
||||
If CurrentState = "Enable" Then
|
||||
Var RandMystMilkEnabled[RandomMilkCheckOkIdx] = CurrentPd
|
||||
|
||||
Var RandMystMilkNameEnabled[RandomMilkCheckOkIdx][0] = RandMystMilkName[RandomMilkCheckIdx][0]
|
||||
Var RandMystMilkNameEnabled[RandomMilkCheckOkIdx][1] = RandMystMilkName[RandomMilkCheckIdx][1]
|
||||
Var RandMystMilkNameEnabled[RandomMilkCheckOkIdx][2] = RandMystMilkName[RandomMilkCheckIdx][2]
|
||||
Var RandMystMilkNameEnabled[RandomMilkCheckOkIdx][3] = RandMystMilkName[RandomMilkCheckIdx][3]
|
||||
Var RandMystMilkNameEnabled[RandomMilkCheckOkIdx][4] = RandMystMilkName[RandomMilkCheckIdx][4]
|
||||
|
||||
Var RandomMilkCheckOkIdx = RandomMilkCheckOkIdx + 1
|
||||
|
||||
EndIf
|
||||
|
|
@ -82,7 +105,7 @@ For RandomOtherCheckIdx < 12 Loop
|
|||
SPLIT CurrentPd "-" 2 DrinkCategory
|
||||
SPLIT CurrentPd "-" 3 DrinkType
|
||||
SPLIT CurrentPd "-" 4 DrinkId
|
||||
|
||||
|
||||
Var TypeIdx = 0
|
||||
SPLIT RandMystOther[RandomOtherCheckIdx][1] "," 1 CurrentType[0]
|
||||
SPLIT RandMystOther[RandomOtherCheckIdx][1] "," 2 CurrentType[1]
|
||||
|
|
@ -109,7 +132,7 @@ For RandomOtherCheckIdx < 12 Loop
|
|||
EndIf
|
||||
;
|
||||
EndIf
|
||||
Var TypeIdx = TypeIdx + 1
|
||||
Var TypeIdx = TypeIdx + 1
|
||||
EndFor
|
||||
|
||||
If AtLeastOneEnable >= 1 Then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue