xml/page_topping_select7.xml

This commit is contained in:
wanlop run 2023-12-25 13:04:08 +07:00
parent c7cb20fae9
commit e9852fca96
10 changed files with 14325 additions and 40 deletions

View file

@ -79,8 +79,8 @@ If SystemDateMonthInt = 12 Then
Var MyMintEnable = 1
EndIf
if SystemDateMonthInt = 1 Then
if SystemDateDayInt < 15 Then
If SystemDateMonthInt = 1 Then
If SystemDateDayInt < 15 Then
Var MyMintEnable = 1
EndIf
EndIf

View file

@ -7,6 +7,7 @@
<EventOpen>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
Var TextSelfTestCntColor = "0x746253"
Var UserSeletedSugar = 0
SAVELOG "Event Open Select 7"
@ -465,6 +466,8 @@
TRY "/mnt/sdcard/coffeevending/taobin_project/flash_deal/topping_page.ev"
Var MenuReason = ""
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -475,6 +478,8 @@
If SelectDrinkType = 1 Then
If MenuReady = "YES" Then
@ -591,6 +596,9 @@
EndIf
DEBUGVAR MenuReason
; arm-not-ready
; brew-stg
If show_eng = "true" Then
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
@ -599,6 +607,7 @@
Else
Var ShowTextSelfTestCountDown = "Please wait a moment"
EndIf
Else
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
Var ShowTextSelfTestCountDown ="กรุณารอสักครู่ (" + MACHINE_SELF_TEST_COUNT_DOWN
@ -606,6 +615,39 @@
Else
Var ShowTextSelfTestCountDown ="กรุณารอสักครู่"
EndIf
EndIf
If Seeker = "curr" Then
If MenuReason = "arm-not-ready" Then
SAVELOG "goto mode arm-not-ready"
DEBUGVAR DoorCupPosition
If DoorCupPosition = "bottom" Then
Machine RemoveCup
Machine DoorLidOpen
Else
Var TextSelfTestCntColor = "0x513C2F"
Var ConfirmDrinkButtonState = "Enable"
If show_eng = "true" Then
Var ShowTextSelfTestCountDown = "Please take out the glass."
Else
Var ShowTextSelfTestCountDown = "กรุณานําแก้วออก"
EndIf
EndIf
EndIf
EndIf
If MenuReason = "brew-stg" Then
Var ConfirmDrinkButtonState = "Enable"
If Timeout > 15 Then
Var MenuReason = "-"
Var Timeout = 0
Var ConfirmDrinkButtonState = "Invisible"
EndIf
EndIf
Refresh
@ -5021,6 +5063,8 @@
;Var Seeker = "curr"
Var Timeout = 0
Var StatementCheckMenu = "ProductCodeCheck=" + UserSelectProductCode
@ -5316,9 +5360,6 @@
If SelectDrinkType = 1 Then
; Move to MenuReady
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
;Open "ROOT/taobin_project/xml/page_payment.xml"
EndIf
EndIf
@ -5850,9 +5891,19 @@
<Width> 512 </Width>
<Font> KanitTTF </Font>
<Size> 36 </Size>
<Color> 0x746253 </Color>
<Color> TextSelfTestCntColor </Color>
<Value> ShowTextSelfTestCountDown </Value>
</Text>
<EventClick>
If Seeker = "curr" Then
If MenuReason = "arm-not-ready" Then
Machine RemoveCup
Machine DoorLidOpen
EndIf
EndIf
</EventClick>
</Button>
; zone

View file

@ -1163,32 +1163,32 @@
EndIf
If TOPPING10 = "tampping-espv2" Then
If TOPPING8 = "tampping-espv2" Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
var showCoffeeTamping = "Enable"
If toppingID10Default = "" Then
If toppingID8Default = "" Then
Var CustomCoffeeTampingState[1] = "PressForever"
Else
If toppingID10index1 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index1
If toppingID8index1 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index1
Var CustomCoffeeTampingState[0] = "PressForever"
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "Enable"
EndIf
If toppingID10index2 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index2
If toppingID8index2 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index2
Var CustomCoffeeTampingState[0] = "Enable"
Var CustomCoffeeTampingState[1] = "PressForever"
Var CustomCoffeeTampingState[2] = "Enable"
EndIf
If toppingID10index3 = toppingID10Default Then
Var CurrentCoffeeTampingId = toppingID10index3
If toppingID8index3 = toppingID8Default Then
Var CurrentCoffeeTampingId = toppingID8index3
Var CustomCoffeeTampingState[0] = "Enable"
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "PressForever"
@ -4332,7 +4332,7 @@
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "Enable"
Var CurrentCoffeeTampingId = toppingID10index1
Var CurrentCoffeeTampingId = toppingID8index1
Function 2
@ -4355,7 +4355,7 @@
Var CustomCoffeeTampingState[1] = "PressForever"
Var CustomCoffeeTampingState[2] = "Enable"
Var CurrentCoffeeTampingId = toppingID10index2
Var CurrentCoffeeTampingId = toppingID8index2
Function 2
@ -4379,7 +4379,7 @@
Var CustomCoffeeTampingState[1] = "Enable"
Var CustomCoffeeTampingState[2] = "PressForever"
Var CurrentCoffeeTampingId = toppingID10index3
Var CurrentCoffeeTampingId = toppingID8index3
Function 2
@ -5109,16 +5109,16 @@
If showCoffeeTamping = "Enable" Then
If CustomCoffeeTampingState[0] = "PressForever" Then
Var topping10 = toppingID10index1
Var topping8 = toppingID8index1
EndIf
If CustomCoffeeTampingState[1] = "PressForever" Then
Var topping10 = toppingID10index2
Var topping8 = toppingID8index2
EndIf
If CustomCoffeeTampingState[2] = "PressForever" Then
Var topping10 = toppingID10index3
Var topping8 = toppingID8index3
EndIf
Else
Var topping10 = 0
Var topping8 = 0
EndIf
Else
If toppingID2index3 = "" Then
@ -5639,7 +5639,7 @@
EndIf
If showCoffeeTamping = "Enable" Then
If CurrentCoffeeTampingId = toppingID10Default Then
If CurrentCoffeeTampingId = toppingID8Default Then
Else
Var CustomCoffeeDefault = "false"
EndIf

View file

@ -294,20 +294,18 @@
<Y> info_1Y </Y>
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
<EventClick>
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
READ_FILE "/mnt/sdcard/coffeevending/sim_on" str_sim_on
DEBUGVAR str_sim_on
If str_sim_on = "1" Then
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
;If TaobinOnline = "true" Then
; OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog.xml"
;EndIf
;If TermTemOnline = "true" Then
; OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
;EndIf
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
TopView "show"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"
EndIf
</EventClick>
</Image>