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
|
||||
|
|
|
|||
|
|
@ -64,6 +64,26 @@ Var ProductCodeRandomTea = RandMystTeaEnabled[ResultRandomIndexTea]
|
|||
Var ProductCodeRandomMilk = RandMystMilkEnabled[ResultRandomIndexMilk]
|
||||
Var ResultRandomIndexOther = RandMystOtherEnabled[ResultRandomIndexOtherTemp]
|
||||
|
||||
; Get_Random_Name
|
||||
Var ProductCodeRandomCoffeeName[0] = RandMystCoffeeNameEnabled[ResultRandomIndexCofee][0]
|
||||
Var ProductCodeRandomCoffeeName[1] = RandMystCoffeeNameEnabled[ResultRandomIndexCofee][1]
|
||||
Var ProductCodeRandomCoffeeName[2] = RandMystCoffeeNameEnabled[ResultRandomIndexCofee][2]
|
||||
Var ProductCodeRandomCoffeeName[3] = RandMystCoffeeNameEnabled[ResultRandomIndexCofee][3]
|
||||
Var ProductCodeRandomCoffeeName[4] = RandMystCoffeeNameEnabled[ResultRandomIndexCofee][4]
|
||||
|
||||
Var ProductCodeRandomTeaName[0] = RandMystTeaNameEnabled[ResultRandomIndexTea][0]
|
||||
Var ProductCodeRandomTeaName[1] = RandMystTeaNameEnabled[ResultRandomIndexTea][1]
|
||||
Var ProductCodeRandomTeaName[2] = RandMystTeaNameEnabled[ResultRandomIndexTea][2]
|
||||
Var ProductCodeRandomTeaName[3] = RandMystTeaNameEnabled[ResultRandomIndexTea][3]
|
||||
Var ProductCodeRandomTeaName[4] = RandMystTeaNameEnabled[ResultRandomIndexTea][4]
|
||||
|
||||
Var ProductCodeRandomMilkName[0] = RandMystMilkNameEnabled[ResultRandomIndexMilk][0]
|
||||
Var ProductCodeRandomMilkName[1] = RandMystMilkNameEnabled[ResultRandomIndexMilk][1]
|
||||
Var ProductCodeRandomMilkName[2] = RandMystMilkNameEnabled[ResultRandomIndexMilk][2]
|
||||
Var ProductCodeRandomMilkName[3] = RandMystMilkNameEnabled[ResultRandomIndexMilk][3]
|
||||
Var ProductCodeRandomMilkName[4] = RandMystMilkNameEnabled[ResultRandomIndexMilk][4]
|
||||
|
||||
|
||||
; ProductCodeRandom -> ProductCodeRandomCoffee
|
||||
|
||||
DEBUGVAR ProductCodeRandomCoffee
|
||||
|
|
|
|||
|
|
@ -1,54 +1,176 @@
|
|||
DEBUGVAR "Random Pool Setup"
|
||||
Var PriceProMystRandom = 0
|
||||
Var PriceProMystRandom = 0
|
||||
|
||||
Var RandMystCoffeePrice = 550
|
||||
If Discount50 = "true" Then
|
||||
Var RandMystCoffeePrice = 275
|
||||
EndIf
|
||||
|
||||
; Thai Espresso Smoothie
|
||||
Var RandMystCoffee[0] = "12-31-03-0001"
|
||||
Var RandMystCoffeeName[0][0] = "THAI Iced ESPRESSO SMOOTHIE"
|
||||
Var RandMystCoffeeName[0][1] = "-"
|
||||
Var RandMystCoffeeName[0][2] = "-"
|
||||
Var RandMystCoffeeName[0][3] = "-"
|
||||
Var RandMystCoffeeName[0][4] = "SMOOTHIE ESPRESSO THAI"
|
||||
|
||||
; Peach Cafe Latte Smoothie
|
||||
Var RandMystCoffee[1] = "12-21-03-0060"
|
||||
Var RandMystCoffeeName[1][0] = "PEACH CAFE LATTE SMOOTHIE"
|
||||
Var RandMystCoffeeName[1][1] = "-"
|
||||
Var RandMystCoffeeName[1][2] = "-"
|
||||
Var RandMystCoffeeName[1][3] = "-"
|
||||
Var RandMystCoffeeName[1][4] = "PEACH CAFE LATTE SMOOTHIE"
|
||||
|
||||
; Cafe Latte Smoothie
|
||||
Var RandMystCoffee[2] = "12-21-03-0002"
|
||||
Var RandMystCoffeeName[2][0] = "CAFE LATTE SMOOTHIE"
|
||||
Var RandMystCoffeeName[2][1] = "-"
|
||||
Var RandMystCoffeeName[2][2] = "-"
|
||||
Var RandMystCoffeeName[2][3] = "-"
|
||||
Var RandMystCoffeeName[2][4] = "SMOOTHIE KAFÉ LATTE"
|
||||
|
||||
|
||||
; Mint Cafe Latte Smoothie
|
||||
Var RandMystCoffee[3] = "12-21-03-0057"
|
||||
Var RandMystCoffeeName[3][0] = "MINT CAFE LATTE\nSMOOTHIE"
|
||||
Var RandMystCoffeeName[3][1] = "-"
|
||||
Var RandMystCoffeeName[3][2] = "-"
|
||||
Var RandMystCoffeeName[3][3] = "-"
|
||||
Var RandMystCoffeeName[3][4] = "KOPI LATTE MINT\nSMOOTHIE"
|
||||
|
||||
|
||||
; Taiwanese Tea Cafe Latte Smoothie
|
||||
Var RandMystCoffee[4] = "12-21-03-0030"
|
||||
Var RandMystCoffeeName[4][0] = "TAIWANESE TEA CAFÉ SMOOTHIE"
|
||||
Var RandMystCoffeeName[4][1] = "-"
|
||||
Var RandMystCoffeeName[4][2] = "-"
|
||||
Var RandMystCoffeeName[4][3] = "-"
|
||||
Var RandMystCoffeeName[4][4] = "SMOOTHIE CHAM TAIWAN"
|
||||
|
||||
|
||||
Var RandMystTeaPrice = 450
|
||||
If Discount50 = "true" Then
|
||||
Var RandMystTeaPrice = 225
|
||||
EndIf
|
||||
|
||||
; JASMINE MILK TEA\nOREO SMOOTHIE ----- Secret Rare
|
||||
Var RandMystTea[0] = "12-02-03-0048"
|
||||
Var RandMystTeaName[0][0] = "JASMINE MILK TEA\nOREO SMOOTHIE###size=58"
|
||||
Var RandMystTeaName[0][1] = "-"
|
||||
Var RandMystTeaName[0][2] = "-"
|
||||
Var RandMystTeaName[0][3] = "-"
|
||||
Var RandMystTeaName[0][4] = "TEH SUSU JASMINE\nOREO SMOOTHIE###size=58"
|
||||
|
||||
; Thai Milk Tea Smoothie
|
||||
Var RandMystTea[1] = "12-02-02-0039"
|
||||
Var RandMystTea[1] = "12-02-03-0039"
|
||||
Var RandMystTeaName[1][0] = "THAI MILK TEA SMOOTHIE"
|
||||
Var RandMystTeaName[1][1] = "-"
|
||||
Var RandMystTeaName[1][2] = "-"
|
||||
Var RandMystTeaName[1][3] = "-"
|
||||
Var RandMystTeaName[1][4] = "SMOOTHIE TEH SUSU THAI"
|
||||
|
||||
; Taiwanese Milk Tea Smoothie
|
||||
Var RandMystTea[2] = "12-02-03-0025"
|
||||
Var RandMystTeaName[2][0] = "TAIWANESE TEA SMOOTHIE"
|
||||
Var RandMystTeaName[2][1] = "-"
|
||||
Var RandMystTeaName[2][2] = "-"
|
||||
Var RandMystTeaName[2][3] = "-"
|
||||
Var RandMystTeaName[2][4] = "SMOOTHIE TEH SUSU TAIWAN"
|
||||
|
||||
; Matcha Latte Smootie
|
||||
Var RandMystTea[3] = "12-02-03-0026"
|
||||
Var RandMystTeaName[3][0] = "MATCHA LATTE SMOOTHIE"
|
||||
Var RandMystTeaName[3][1] = "-"
|
||||
Var RandMystTeaName[3][2] = "-"
|
||||
Var RandMystTeaName[3][3] = "-"
|
||||
Var RandMystTeaName[3][4] = "SMOOTHIE MATCHA LATTE"
|
||||
|
||||
; Coconut Thai Milk Tea Smoothie
|
||||
Var RandMystTea[4] = "12-02-03-0062"
|
||||
Var RandMystTeaName[4][0] = "Coconut Thai Milk \nTea SMOOTHIE###size=58"
|
||||
Var RandMystTeaName[4][1] = "-"
|
||||
Var RandMystTeaName[4][2] = "-"
|
||||
Var RandMystTeaName[4][3] = "-"
|
||||
Var RandMystTeaName[4][4] = "SMOOTHIE TEH SUSU THAI KELAPA###size=58"
|
||||
|
||||
; Coconut Matcha Latte Smoothie
|
||||
Var RandMystTea[5] = "12-02-03-0060"
|
||||
Var RandMystTeaName[5][0] = "Coconut Matcha \nlatte SMOOTHIE###size=58"
|
||||
Var RandMystTeaName[5][1] = "-"
|
||||
Var RandMystTeaName[5][2] = "-"
|
||||
Var RandMystTeaName[5][3] = "-"
|
||||
Var RandMystTeaName[5][4] = "SMOOTHIE MACTHA \nLATTE KELAPA###size=58"
|
||||
|
||||
; Coconut Jasmine Milk Tea Smoothie
|
||||
Var RandMystTea[6] = "12-02-03-0064"
|
||||
Var RandMystTeaName[6][0] = "Coconut Jasmine milk \ntea SMOOTHIE###size=58"
|
||||
Var RandMystTeaName[6][1] = "-"
|
||||
Var RandMystTeaName[6][2] = "-"
|
||||
Var RandMystTeaName[6][3] = "-"
|
||||
Var RandMystTeaName[6][4] = "SMOOTHIE TEH SUSU \nJASMINE KELAPA###size=58"
|
||||
|
||||
|
||||
Var RandMystMilkPrice = 350
|
||||
If Discount50 = "true" Then
|
||||
Var RandMystMilkPrice = 175
|
||||
EndIf
|
||||
|
||||
; Oreo Volcano Smoothie ----- Secret Rare
|
||||
Var RandMystMilk[0] = "12-03-03-0009"
|
||||
Var RandMystMilkName[0][0] = "OREO SMOOTHIE VOLCANO"
|
||||
Var RandMystMilkName[0][1] = "-"
|
||||
Var RandMystMilkName[0][2] = "-"
|
||||
Var RandMystMilkName[0][3] = "-"
|
||||
Var RandMystMilkName[0][4] = "SMOOTHIE OREO VOLCANO"
|
||||
|
||||
; Strawberry Mint Milk Smoothie
|
||||
Var RandMystMilk[1] = "12-03-03-0037"
|
||||
Var RandMystMilkName[1][0] = "STRAWBERRY MINT MILK\nSMOOTHIE"
|
||||
Var RandMystMilkName[1][1] = "-"
|
||||
Var RandMystMilkName[1][2] = "-"
|
||||
Var RandMystMilkName[1][3] = "-"
|
||||
Var RandMystMilkName[1][4] = "SUSU STRAWBERI MINT\nSMOOTHIE"
|
||||
|
||||
; Melon Milk Smoothie
|
||||
Var RandMystMilk[2] = "12-03-03-0022"
|
||||
Var RandMystMilkName[2][0] = "MELON MILK SMOOTHIE"
|
||||
Var RandMystMilkName[2][1] = "-"
|
||||
Var RandMystMilkName[2][2] = "-"
|
||||
Var RandMystMilkName[2][3] = "-"
|
||||
Var RandMystMilkName[2][4] = "SMOOTHIE SUSU MELON"
|
||||
|
||||
; Coconut Milk Smoothie
|
||||
Var RandMystMilk[3] = "12-03-03-0058"
|
||||
Var RandMystMilkName[3][0] = "Coconut milk SMOOTHIE"
|
||||
Var RandMystMilkName[3][1] = "-"
|
||||
Var RandMystMilkName[3][2] = "-"
|
||||
Var RandMystMilkName[3][3] = "-"
|
||||
Var RandMystMilkName[3][4] = "SMOOTHIE SUSU KELAPA"
|
||||
|
||||
; Peach Milk Smoothie
|
||||
Var RandMystMilk[4] = "12-03-03-0038"
|
||||
Var RandMystMilkName[4][0] = "PEACH MILK SMOOTHIE"
|
||||
Var RandMystMilkName[4][1] = "-"
|
||||
Var RandMystMilkName[4][2] = "-"
|
||||
Var RandMystMilkName[4][3] = "-"
|
||||
Var RandMystMilkName[4][4] = "PEACH MILK SMOOTHIE"
|
||||
|
||||
; Straw Milk Smoothie
|
||||
Var RandMystMilk[5] = "12-03-03-0011"
|
||||
Var RandMystMilkName[5][0] = "STRAWMILK SMOOTHIE"
|
||||
Var RandMystMilkName[5][1] = "-"
|
||||
Var RandMystMilkName[5][2] = "-"
|
||||
Var RandMystMilkName[5][3] = "-"
|
||||
Var RandMystMilkName[5][4] = "SMOOTHIE SUSU STRAWBERI"
|
||||
|
||||
; Mint Milk Smoothie
|
||||
Var RandMystMilk[6] = "12-03-03-0036"
|
||||
Var RandMystMilkName[6][0] = "MINT MILK\nSMOOTHIE"
|
||||
Var RandMystMilkName[6][1] = "-"
|
||||
Var RandMystMilkName[6][2] = "-"
|
||||
Var RandMystMilkName[6][3] = "-"
|
||||
Var RandMystMilkName[6][4] = "SUSU MINT\nSMOOTHIE"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,12 @@
|
|||
; malaysia
|
||||
|
||||
|
||||
|
||||
; e-receipt-flag
|
||||
Var eReceiptFlag = 0
|
||||
|
||||
DEBUGVAR eReceiptFlag
|
||||
|
||||
;DEBUGVAR SystemDateMonthInt
|
||||
;DEBUGVAR SystemDateDayInt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue