DO
This commit is contained in:
parent
859cb63417
commit
cadb7d6224
6 changed files with 591 additions and 242 deletions
|
|
@ -136,10 +136,10 @@ else:
|
||||||
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
file_inc3_content = file_inc3_content.replace( "###" + key_val[0], '"' + key_val[1].strip() + '"')
|
||||||
|
|
||||||
|
|
||||||
# file_inc_event_click = open(directory_to_process + "/event/promotion_onclick3.inc", 'r')
|
file_inc_event_click = open(directory_to_process + "/event/promotion_onclick3.inc", 'r')
|
||||||
# file_inc_event_click_content = file_inc_event_click.read()
|
file_inc_event_click_content = file_inc_event_click.read()
|
||||||
|
|
||||||
# file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
file_inc3_content = file_inc3_content.replace("###EventOnClick", file_inc_event_click_content)
|
||||||
|
|
||||||
|
|
||||||
print(file_inc3_content)
|
print(file_inc3_content)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventOpen>
|
<EventOpen>
|
||||||
; On open
|
; On open
|
||||||
Var BigButtonEnable = "Enable"
|
|
||||||
Var NextPage = "-"
|
Var NextPage = "-"
|
||||||
|
|
||||||
DEBUGVAR ICE_PROCESS_STATUS
|
DEBUGVAR ICE_PROCESS_STATUS
|
||||||
|
|
@ -199,13 +198,6 @@
|
||||||
|
|
||||||
If Timeout > 60 Then
|
If Timeout > 60 Then
|
||||||
SAVELOG "Timeout"
|
SAVELOG "Timeout"
|
||||||
Var BigButtonEnable = "Enable"
|
|
||||||
Var SubRandMilkButtonEnable = "Invisible"
|
|
||||||
Var SubRandTeaButtonEnable = "Invisible"
|
|
||||||
Var SubRandCoffButtonEnable = "Invisible"
|
|
||||||
Var SubRandAllButtonEnable = "Invisible"
|
|
||||||
|
|
||||||
|
|
||||||
If Seeker = "next" Then
|
If Seeker = "next" Then
|
||||||
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
||||||
Else
|
Else
|
||||||
|
|
@ -8936,6 +8928,9 @@ LIMENADE SODA" </Value>
|
||||||
Var buttonRemoveCup = "Invisible"
|
Var buttonRemoveCup = "Invisible"
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
|
@ -8960,18 +8955,19 @@ LIMENADE SODA" </Value>
|
||||||
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||||
)
|
)
|
||||||
</FilenamePress>
|
</FilenamePress>
|
||||||
<FilenameDisable>
|
<FilenameDisable>
|
||||||
eval(
|
eval(
|
||||||
Var return = "ROOT/taobin_project/image/event/bd_random_milk.png"
|
Var return = "ROOT/taobin_project/image/event/bd_random_milk.png"
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
Random2 0 IndexOfMilk ResultRandomIndex
|
Random2 0 IndexOfMilk ResultRandomIndex
|
||||||
Var ProductCodeRandom = ListOfMilk[ResultRandomIndex]
|
Var ProductCodeRandom = ListOfMilk[ResultRandomIndex]
|
||||||
DEBUGVAR ListOfMilk[ResultRandomIndex]
|
DEBUGVAR ListOfMilk[ResultRandomIndex]
|
||||||
Topping "Load" ProductCodeRandom
|
Topping "Load" ProductCodeRandom
|
||||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
</EventClick>
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -8988,18 +8984,19 @@ LIMENADE SODA" </Value>
|
||||||
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||||
)
|
)
|
||||||
</FilenamePress>
|
</FilenamePress>
|
||||||
<FilenameDisable>
|
<FilenameDisable>
|
||||||
eval(
|
eval(
|
||||||
Var return = "ROOT/taobin_project/image/event/bd_random_tea.png"
|
Var return = "ROOT/taobin_project/image/event/bd_random_tea.png"
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
Random2 0 IndexOfTea ResultRandomIndex
|
Random2 0 IndexOfTea ResultRandomIndex
|
||||||
Var ProductCodeRandom = ListOfTea[ResultRandomIndex]
|
Var ProductCodeRandom = ListOfTea[ResultRandomIndex]
|
||||||
DEBUGVAR ListOfTea[ResultRandomIndex]
|
DEBUGVAR ListOfTea[ResultRandomIndex]
|
||||||
Topping "Load" ProductCodeRandom
|
Topping "Load" ProductCodeRandom
|
||||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
</EventClick>
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -9016,18 +9013,19 @@ LIMENADE SODA" </Value>
|
||||||
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||||
)
|
)
|
||||||
</FilenamePress>
|
</FilenamePress>
|
||||||
<FilenameDisable>
|
<FilenameDisable>
|
||||||
eval(
|
eval(
|
||||||
Var return = "ROOT/taobin_project/image/event/bd_random_coffee.png"
|
Var return = "ROOT/taobin_project/image/event/bd_random_coffee.png"
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
Random2 0 IndexOfCoffee ResultRandomIndex
|
Random2 0 IndexOfCoffee ResultRandomIndex
|
||||||
Var ProductCodeRandom = ListOfCoffee[ResultRandomIndex]
|
Var ProductCodeRandom = ListOfCoffee[ResultRandomIndex]
|
||||||
DEBUGVAR ListOfCoffee[ResultRandomIndex]
|
DEBUGVAR ListOfCoffee[ResultRandomIndex]
|
||||||
Topping "Load" ProductCodeRandom
|
Topping "Load" ProductCodeRandom
|
||||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
</EventClick>
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button>
|
<Button>
|
||||||
|
|
@ -9044,18 +9042,19 @@ LIMENADE SODA" </Value>
|
||||||
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||||
)
|
)
|
||||||
</FilenamePress>
|
</FilenamePress>
|
||||||
<FilenameDisable>
|
<FilenameDisable>
|
||||||
eval(
|
eval(
|
||||||
Var return = "ROOT/taobin_project/image/event/bd_random_all.png"
|
Var return = "ROOT/taobin_project/image/event/bd_random_all.png"
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
Random2 0 IndexOfAllRandom ResultRandomIndex
|
Random2 0 IndexOfAllRandom ResultRandomIndex
|
||||||
Var ProductCodeRandom = ListOfAllRandom[ResultRandomIndex]
|
Var ProductCodeRandom = ListOfAllRandom[ResultRandomIndex]
|
||||||
DEBUGVAR ListOfAllRandom[ResultRandomIndex]
|
DEBUGVAR ListOfAllRandom[ResultRandomIndex]
|
||||||
Topping "Load" ProductCodeRandom
|
Topping "Load" ProductCodeRandom
|
||||||
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
</EventClick>
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
@ -9099,198 +9098,198 @@ LIMENADE SODA" </Value>
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventOnClick>
|
<EventOnClick>
|
||||||
Var BigButtonEnable = "Invisible"
|
Var BigButtonEnable = "Invisible"
|
||||||
DEBUGVAR BigButtonEnable
|
DEBUGVAR BigButtonEnable
|
||||||
|
|
||||||
; Enable all 4 buttons
|
; Enable all 4 buttons
|
||||||
Var SubRandMilkButtonEnable = "Enable"
|
Var SubRandMilkButtonEnable = "Enable"
|
||||||
DEBUGVAR SubRandMilkButtonEnable
|
DEBUGVAR SubRandMilkButtonEnable
|
||||||
|
|
||||||
Var SubRandTeaButtonEnable = "Enable"
|
Var SubRandTeaButtonEnable = "Enable"
|
||||||
DEBUGVAR SubRandTeaButtonEnable
|
DEBUGVAR SubRandTeaButtonEnable
|
||||||
|
|
||||||
Var SubRandCoffButtonEnable = "Enable"
|
Var SubRandCoffButtonEnable = "Enable"
|
||||||
DEBUGVAR SubRandCoffButtonEnable
|
DEBUGVAR SubRandCoffButtonEnable
|
||||||
|
|
||||||
Var SubRandAllButtonEnable = "Enable"
|
Var SubRandAllButtonEnable = "Enable"
|
||||||
DEBUGVAR SubRandAllButtonEnable
|
DEBUGVAR SubRandAllButtonEnable
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; For real, yeah for real
|
; For real, yeah for real
|
||||||
; All random cup
|
; All random cup
|
||||||
|
|
||||||
Var IndexOfAllRandom = 0
|
Var IndexOfAllRandom = 0
|
||||||
Var IndexOfMilk = 0
|
Var IndexOfMilk = 0
|
||||||
Var IndexOfTea = 0
|
Var IndexOfTea = 0
|
||||||
Var IndexOfCoffee = 0
|
Var IndexOfCoffee = 0
|
||||||
|
|
||||||
; Oreo smoothie volcano
|
; Oreo smoothie volcano
|
||||||
If $12-99-03-0020.Button = "Enable" Then
|
If $12-99-03-0020.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0020"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0020"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0020"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0020"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Pink milk oreo volcano
|
; Pink milk oreo volcano
|
||||||
If $12-99-03-0021.Button = "Enable" Then
|
If $12-99-03-0021.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0021"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0021"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0021"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0021"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Choco oreo volcano
|
; Choco oreo volcano
|
||||||
If $12-99-03-0022.Button = "Enable" Then
|
If $12-99-03-0022.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0022"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0022"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0022"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0022"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Caramel milk oreo volcano
|
; Caramel milk oreo volcano
|
||||||
If $12-99-03-0023.Button = "Enable" Then
|
If $12-99-03-0023.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0023"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0023"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0023"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0023"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Thai milk tea oreo smoothie
|
; Thai milk tea oreo smoothie
|
||||||
If $12-99-03-0024.Button = "Enable" Then
|
If $12-99-03-0024.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0024"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0024"
|
||||||
Var ListOfTea[IndexOfTea] = "12-99-03-0024"
|
Var ListOfTea[IndexOfTea] = "12-99-03-0024"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfTea = IndexOfTea + 1
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Cafe late oreo smoothie
|
; Cafe late oreo smoothie
|
||||||
If $12-99-03-0025.Button = "Enable" Then
|
If $12-99-03-0025.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0025"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0025"
|
||||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0025"
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0025"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Strawberry milk oreo volcano
|
; Strawberry milk oreo volcano
|
||||||
If $12-99-03-0026.Button = "Enable" Then
|
If $12-99-03-0026.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0026"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0026"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0026"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0026"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Melon milk oreo volcano
|
; Melon milk oreo volcano
|
||||||
If $12-99-03-0027.Button = "Enable" Then
|
If $12-99-03-0027.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0027"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0027"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0027"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0027"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Bana^2 milk oreo volcano
|
; Bana^2 milk oreo volcano
|
||||||
If $12-99-03-0028.Button = "Enable" Then
|
If $12-99-03-0028.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0028"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0028"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0028"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0028"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; HOJICHA Oreo smoothie
|
; HOJICHA Oreo smoothie
|
||||||
If $12-99-03-0029.Button = "Enable" Then
|
If $12-99-03-0029.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0029"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0029"
|
||||||
Var ListOfTea[IndexOfTea] = "12-99-03-0029"
|
Var ListOfTea[IndexOfTea] = "12-99-03-0029"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfTea = IndexOfTea + 1
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Thai milk tea smoothie
|
; Thai milk tea smoothie
|
||||||
If $12-99-03-0030.Button = "Enable" Then
|
If $12-99-03-0030.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0030"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0030"
|
||||||
Var ListOfTea[IndexOfTea] = "12-99-03-0030"
|
Var ListOfTea[IndexOfTea] = "12-99-03-0030"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfTea = IndexOfTea + 1
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Melon milk smoothie
|
; Melon milk smoothie
|
||||||
If $12-99-03-0031.Button = "Enable" Then
|
If $12-99-03-0031.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0031"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0031"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0031"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0031"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Taiwanese tea smoothie
|
; Taiwanese tea smoothie
|
||||||
If $12-99-03-0032.Button = "Enable" Then
|
If $12-99-03-0032.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0032"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0032"
|
||||||
Var ListOfTea[IndexOfTea] = "12-99-03-0032"
|
Var ListOfTea[IndexOfTea] = "12-99-03-0032"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfTea = IndexOfTea + 1
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Tokyo bana^2 milk smoothie
|
; Tokyo bana^2 milk smoothie
|
||||||
If $12-99-03-0033.Button = "Enable" Then
|
If $12-99-03-0033.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0033"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0033"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0033"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0033"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Hojicha smoothie
|
; Hojicha smoothie
|
||||||
If $12-99-03-0034.Button = "Enable" Then
|
If $12-99-03-0034.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0034"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0034"
|
||||||
Var ListOfTea[IndexOfTea] = "12-99-03-0034"
|
Var ListOfTea[IndexOfTea] = "12-99-03-0034"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfTea = IndexOfTea + 1
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Cocoa bana^2 smoothie
|
; Cocoa bana^2 smoothie
|
||||||
If $12-99-03-0035.Button = "Enable" Then
|
If $12-99-03-0035.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0035"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0035"
|
||||||
Var ListOfMilk[IndexOfMilk] = "12-99-03-0035"
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0035"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfMilk = IndexOfMilk + 1
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Taiwanese tea cafe latte smoothie
|
; Taiwanese tea cafe latte smoothie
|
||||||
If $12-99-03-0036.Button = "Enable" Then
|
If $12-99-03-0036.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0036"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0036"
|
||||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0036"
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0036"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Melon cafe latte smoothie
|
; Melon cafe latte smoothie
|
||||||
If $12-99-03-0037.Button = "Enable" Then
|
If $12-99-03-0037.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0037"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0037"
|
||||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0037"
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0037"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Taiwanese tea cafe latte smoothie v2
|
; Taiwanese tea cafe latte smoothie v2
|
||||||
If $12-99-03-0038.Button = "Enable" Then
|
If $12-99-03-0038.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0038"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0038"
|
||||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0038"
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0038"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
; Melon cafe latte smoothie v2
|
; Melon cafe latte smoothie v2
|
||||||
If $12-99-03-0039.Button = "Enable" Then
|
If $12-99-03-0039.Button = "Enable" Then
|
||||||
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0039"
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0039"
|
||||||
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0039"
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0039"
|
||||||
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
Var IndexOfCoffee = IndexOfCoffee + 1
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
DEBUGVAR IndexOfAllRandom
|
DEBUGVAR IndexOfAllRandom
|
||||||
DEBUGVAR IndexOfCoffee
|
DEBUGVAR IndexOfCoffee
|
||||||
DEBUGVAR IndexOfMilk
|
DEBUGVAR IndexOfMilk
|
||||||
DEBUGVAR IndexOfTea
|
DEBUGVAR IndexOfTea
|
||||||
|
|
||||||
If IndexOfAllRandom = 0 Then
|
If IndexOfAllRandom = 0 Then
|
||||||
Var SubRandAllButtonEnable = "Disable"
|
Var SubRandAllButtonEnable = "Disable"
|
||||||
|
|
@ -9306,7 +9305,11 @@ LIMENADE SODA" </Value>
|
||||||
Var SubRandTeaButtonEnable = "Disable"
|
Var SubRandTeaButtonEnable = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Refresh
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -9321,3 +9324,4 @@ LIMENADE SODA" </Value>
|
||||||
|
|
||||||
|
|
||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
|
|
|
||||||
211
xml/event/promotion_onclick3.inc
Normal file
211
xml/event/promotion_onclick3.inc
Normal file
|
|
@ -0,0 +1,211 @@
|
||||||
|
Var BigButtonEnable = "Invisible"
|
||||||
|
DEBUGVAR BigButtonEnable
|
||||||
|
|
||||||
|
; Enable all 4 buttons
|
||||||
|
Var SubRandMilkButtonEnable = "Enable"
|
||||||
|
DEBUGVAR SubRandMilkButtonEnable
|
||||||
|
|
||||||
|
Var SubRandTeaButtonEnable = "Enable"
|
||||||
|
DEBUGVAR SubRandTeaButtonEnable
|
||||||
|
|
||||||
|
Var SubRandCoffButtonEnable = "Enable"
|
||||||
|
DEBUGVAR SubRandCoffButtonEnable
|
||||||
|
|
||||||
|
Var SubRandAllButtonEnable = "Enable"
|
||||||
|
DEBUGVAR SubRandAllButtonEnable
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; For real, yeah for real
|
||||||
|
; All random cup
|
||||||
|
|
||||||
|
Var IndexOfAllRandom = 0
|
||||||
|
Var IndexOfMilk = 0
|
||||||
|
Var IndexOfTea = 0
|
||||||
|
Var IndexOfCoffee = 0
|
||||||
|
|
||||||
|
; Oreo smoothie volcano
|
||||||
|
If $12-99-03-0020.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0020"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0020"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Pink milk oreo volcano
|
||||||
|
If $12-99-03-0021.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0021"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0021"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Choco oreo volcano
|
||||||
|
If $12-99-03-0022.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0022"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0022"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Caramel milk oreo volcano
|
||||||
|
If $12-99-03-0023.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0023"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0023"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Thai milk tea oreo smoothie
|
||||||
|
If $12-99-03-0024.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0024"
|
||||||
|
Var ListOfTea[IndexOfTea] = "12-99-03-0024"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Cafe late oreo smoothie
|
||||||
|
If $12-99-03-0025.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0025"
|
||||||
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0025"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Strawberry milk oreo volcano
|
||||||
|
If $12-99-03-0026.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0026"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0026"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Melon milk oreo volcano
|
||||||
|
If $12-99-03-0027.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0027"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0027"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Bana^2 milk oreo volcano
|
||||||
|
If $12-99-03-0028.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0028"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0028"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; HOJICHA Oreo smoothie
|
||||||
|
If $12-99-03-0029.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0029"
|
||||||
|
Var ListOfTea[IndexOfTea] = "12-99-03-0029"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Thai milk tea smoothie
|
||||||
|
If $12-99-03-0030.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0030"
|
||||||
|
Var ListOfTea[IndexOfTea] = "12-99-03-0030"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Melon milk smoothie
|
||||||
|
If $12-99-03-0031.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0031"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0031"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Taiwanese tea smoothie
|
||||||
|
If $12-99-03-0032.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0032"
|
||||||
|
Var ListOfTea[IndexOfTea] = "12-99-03-0032"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Tokyo bana^2 milk smoothie
|
||||||
|
If $12-99-03-0033.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0033"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0033"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Hojicha smoothie
|
||||||
|
If $12-99-03-0034.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0034"
|
||||||
|
Var ListOfTea[IndexOfTea] = "12-99-03-0034"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfTea = IndexOfTea + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Cocoa bana^2 smoothie
|
||||||
|
If $12-99-03-0035.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0035"
|
||||||
|
Var ListOfMilk[IndexOfMilk] = "12-99-03-0035"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfMilk = IndexOfMilk + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Taiwanese tea cafe latte smoothie
|
||||||
|
If $12-99-03-0036.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0036"
|
||||||
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0036"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Melon cafe latte smoothie
|
||||||
|
If $12-99-03-0037.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0037"
|
||||||
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0037"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Taiwanese tea cafe latte smoothie v2
|
||||||
|
If $12-99-03-0038.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0038"
|
||||||
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0038"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
; Melon cafe latte smoothie v2
|
||||||
|
If $12-99-03-0039.Button = "Enable" Then
|
||||||
|
Var ListOfAllRandom[IndexOfAllRandom] = "12-99-03-0039"
|
||||||
|
Var ListOfCoffee[IndexOfCoffee] = "12-99-03-0039"
|
||||||
|
Var IndexOfAllRandom = IndexOfAllRandom + 1
|
||||||
|
Var IndexOfCoffee = IndexOfCoffee + 1
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
DEBUGVAR IndexOfAllRandom
|
||||||
|
DEBUGVAR IndexOfCoffee
|
||||||
|
DEBUGVAR IndexOfMilk
|
||||||
|
DEBUGVAR IndexOfTea
|
||||||
|
|
||||||
|
If IndexOfAllRandom = 0 Then
|
||||||
|
Var SubRandAllButtonEnable = "Disable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If IndexOfCoffee = 0 Then
|
||||||
|
Var SubRandCoffButtonEnable = "Disable"
|
||||||
|
EndIf
|
||||||
|
If IndexOfMilk = 0 Then
|
||||||
|
Var SubRandMilkButtonEnable = "Disable"
|
||||||
|
EndIf
|
||||||
|
If IndexOfTea = 0 Then
|
||||||
|
Var SubRandTeaButtonEnable = "Disable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Refresh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,3 +1,137 @@
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;
|
||||||
|
|
||||||
|
; Sub-button for 4 random menu
|
||||||
|
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 43 </X>
|
||||||
|
<Y> 519 </Y>
|
||||||
|
<State> SubRandMilkButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_milk.png"
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bd_random_milk.png"
|
||||||
|
)
|
||||||
|
</FilenameDisable>
|
||||||
|
<EventClick>
|
||||||
|
Random2 0 IndexOfMilk ResultRandomIndex
|
||||||
|
Var ProductCodeRandom = ListOfMilk[ResultRandomIndex]
|
||||||
|
DEBUGVAR ListOfMilk[ResultRandomIndex]
|
||||||
|
Topping "Load" ProductCodeRandom
|
||||||
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 301 </X>
|
||||||
|
<Y> 519 </Y>
|
||||||
|
<State> SubRandTeaButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_tea.png"
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bd_random_tea.png"
|
||||||
|
)
|
||||||
|
</FilenameDisable>
|
||||||
|
<EventClick>
|
||||||
|
Random2 0 IndexOfTea ResultRandomIndex
|
||||||
|
Var ProductCodeRandom = ListOfTea[ResultRandomIndex]
|
||||||
|
DEBUGVAR ListOfTea[ResultRandomIndex]
|
||||||
|
Topping "Load" ProductCodeRandom
|
||||||
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 43 </X>
|
||||||
|
<Y> 837 </Y>
|
||||||
|
<State> SubRandCoffButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_coffee.png"
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bd_random_coffee.png"
|
||||||
|
)
|
||||||
|
</FilenameDisable>
|
||||||
|
<EventClick>
|
||||||
|
Random2 0 IndexOfCoffee ResultRandomIndex
|
||||||
|
Var ProductCodeRandom = ListOfCoffee[ResultRandomIndex]
|
||||||
|
DEBUGVAR ListOfCoffee[ResultRandomIndex]
|
||||||
|
Topping "Load" ProductCodeRandom
|
||||||
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button>
|
||||||
|
<X> 301 </X>
|
||||||
|
<Y> 837 </Y>
|
||||||
|
<State> SubRandAllButtonEnable </State>
|
||||||
|
<Filename>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||||
|
)
|
||||||
|
</Filename>
|
||||||
|
<FilenamePress>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bn_random_all.png"
|
||||||
|
)
|
||||||
|
</FilenamePress>
|
||||||
|
<FilenameDisable>
|
||||||
|
eval(
|
||||||
|
Var return = "ROOT/taobin_project/image/event/bd_random_all.png"
|
||||||
|
)
|
||||||
|
</FilenameDisable>
|
||||||
|
<EventClick>
|
||||||
|
Random2 0 IndexOfAllRandom ResultRandomIndex
|
||||||
|
Var ProductCodeRandom = ListOfAllRandom[ResultRandomIndex]
|
||||||
|
DEBUGVAR ListOfAllRandom[ResultRandomIndex]
|
||||||
|
Topping "Load" ProductCodeRandom
|
||||||
|
Var OpenFromXML = CurrentXMLFileName2
|
||||||
|
Open "ROOT/taobin_project/xml/page_topping_select_35.xml"
|
||||||
|
</EventClick>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; Big button for mys event
|
||||||
|
;
|
||||||
|
;
|
||||||
|
;
|
||||||
|
|
||||||
<Button>
|
<Button>
|
||||||
<X> 42 </X>
|
<X> 42 </X>
|
||||||
|
|
@ -6,34 +140,32 @@
|
||||||
<Filename>
|
<Filename>
|
||||||
eval(
|
eval(
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var return = ###normal_eng
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||||
Else
|
Else
|
||||||
Var return = ###normal_thai
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||||
EndIf
|
EndIf
|
||||||
)
|
)
|
||||||
</Filename>
|
</Filename>
|
||||||
<FilenamePress>
|
<FilenamePress>
|
||||||
eval(
|
eval(
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var return = ###press_eng
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||||
Else
|
Else
|
||||||
Var return = ###press_thai
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||||
EndIf
|
EndIf
|
||||||
)
|
)
|
||||||
</FilenamePress>
|
</FilenamePress>
|
||||||
<FilenameDisable>
|
<FilenameDisable>
|
||||||
eval(
|
eval(
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var return = ###disable_eng
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_en.png"
|
||||||
Else
|
Else
|
||||||
Var return = ###disable_thai
|
Var return = "ROOT/taobin_project/image/event/pro_mystery_cup_th.png"
|
||||||
EndIf
|
EndIf
|
||||||
)
|
)
|
||||||
</FilenameDisable>
|
</FilenameDisable>
|
||||||
<EventOnClick>
|
<EventOnClick>
|
||||||
|
###EventOnClick
|
||||||
;This is Custom Click for Mystery cup
|
|
||||||
|
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1084,22 +1084,22 @@
|
||||||
|
|
||||||
;DEBUGVAR CountDownCheckCamera
|
;DEBUGVAR CountDownCheckCamera
|
||||||
DEBUGVAR Not#CameraSettingStatus
|
DEBUGVAR Not#CameraSettingStatus
|
||||||
If CountDownCheckCamera = 0 Then
|
;If CountDownCheckCamera = 0 Then
|
||||||
|
;
|
||||||
If Not#CameraSettingStatus = "" Then
|
; If Not#CameraSettingStatus = "" Then
|
||||||
If CameraCount = 1 Then
|
; If CameraCount = 1 Then
|
||||||
|
;
|
||||||
Var CountDownCheckCamera = 2
|
; Var CountDownCheckCamera = 2
|
||||||
CameraSetting "usbfront" "default" "Rotate=90,Resolution=1280x720,scaleX=1.0,scaleY=0.7"
|
; CameraSetting "usbfront" "default" "Rotate=90,Resolution=1280x720,scaleX=1.0,scaleY=0.7"
|
||||||
Else
|
; Else
|
||||||
Var CountDownCheckCamera = 5
|
; Var CountDownCheckCamera = 5
|
||||||
EndIf
|
; EndIf
|
||||||
Else
|
; Else
|
||||||
Var CountDownCheckCamera = 20
|
; Var CountDownCheckCamera = 20
|
||||||
EndIf
|
; EndIf
|
||||||
Else
|
;Else
|
||||||
Var CountDownCheckCamera = CountDownCheckCamera - 1
|
; Var CountDownCheckCamera = CountDownCheckCamera - 1
|
||||||
EndIf
|
;EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
<EventOpen>
|
<EventOpen>
|
||||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
||||||
|
|
||||||
|
OpenInst 0 "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
|
||||||
|
|
||||||
TopView "show"
|
TopView "show"
|
||||||
; On open
|
; On open
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue