2020-09-16 18:42:32 +07:00
|
|
|
<Popup>
|
|
|
|
|
<Cache> "Enable" </Cache>
|
|
|
|
|
<Width> 1080 </Width>
|
|
|
|
|
<Height> 1920 </Height>
|
|
|
|
|
<Background> "0xeae6e1" </Background>
|
|
|
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
|
<EventOpen>
|
|
|
|
|
; On open
|
2021-05-28 10:41:11 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var CountUpBrewing = BrewTime - CountDownBrewing
|
|
|
|
|
;Var CountUpBrewing = 0
|
|
|
|
|
Var CountDownVideoTimeReload = AnimationVideoPlayTime
|
|
|
|
|
Var CountDownVideoTime = 1
|
|
|
|
|
Var StepVideo = 1
|
|
|
|
|
Var PreviseStepVideo = 90
|
|
|
|
|
|
2024-02-28 13:57:41 +07:00
|
|
|
Var Timeout = 0
|
|
|
|
|
|
2021-05-28 11:38:05 +07:00
|
|
|
If show_eng = "true" Then
|
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/page_lid_straw_en"
|
|
|
|
|
Var PictureEnd = "_en.png"
|
|
|
|
|
Var BottomText = PicturePath + "text_bottom_eng.png"
|
|
|
|
|
|
|
|
|
|
Var lid_straw_bg_iamge = DirImage + "/img4.png"
|
|
|
|
|
|
|
|
|
|
If LidState = "Enable" Then
|
|
|
|
|
Var lid_straw_bg_iamge = DirImage + "/img3.png"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/page_lid_straw"
|
|
|
|
|
Var PictureEnd = ".png"
|
|
|
|
|
Var BottomText = PicturePath + "text_bottom_thai2.png"
|
|
|
|
|
|
|
|
|
|
Var lid_straw_bg_iamge = DirImage + "/img4.png"
|
|
|
|
|
|
|
|
|
|
If LidState = "Enable" Then
|
|
|
|
|
Var lid_straw_bg_iamge = DirImage + "/img3.png"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-10-17 13:36:31 +07:00
|
|
|
If InternationalEnable = 1 Then
|
2024-04-29 13:44:59 +07:00
|
|
|
|
2023-10-17 13:36:31 +07:00
|
|
|
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
|
|
|
|
Var PictureBegin = "txt_"
|
|
|
|
|
Var PictureEnd = "_en.png"
|
2024-04-29 13:44:59 +07:00
|
|
|
If SettingVideoBrewingUseCommon = 1 Then
|
|
|
|
|
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/inter/common/animation01/"
|
|
|
|
|
Var VideoFileBegin = "TaoBin2_draft02_art"
|
|
|
|
|
Var VideoFileEnd = ".mp4"
|
|
|
|
|
Else
|
|
|
|
|
;inter-play-list
|
|
|
|
|
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/animation01/"
|
|
|
|
|
Var VideoFileBegin = "TaoBin2_draft02_art"
|
|
|
|
|
Var VideoFileEnd = ".mp4"
|
|
|
|
|
EndIf
|
2021-05-28 11:38:05 +07:00
|
|
|
|
2024-01-31 21:30:53 +07:00
|
|
|
Var PicturePath = CountryRootPath + "/image/page_doing/"
|
|
|
|
|
Var PictureBegin = "txt_"
|
|
|
|
|
Var PictureEnd = "_en.png"
|
|
|
|
|
|
2024-04-05 14:23:46 +07:00
|
|
|
;inter-has-alter-anim
|
|
|
|
|
If CountryName = "UnitedArabEmirates Dubai" Then
|
|
|
|
|
;check LanguageShow
|
|
|
|
|
If LanguageShow = "ENG" Then
|
|
|
|
|
Var PicturePath = "ROOT/taobin_project/image/page_doing/"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
2023-10-17 13:36:31 +07:00
|
|
|
|
2024-08-13 14:43:45 +07:00
|
|
|
If UsePepsiTheme = 1 Then
|
|
|
|
|
|
|
|
|
|
Var VideoPath = CountryRootPath + "/animation01/"
|
|
|
|
|
Var VideoFileBegin = "TaoBin2_draft02_art"
|
|
|
|
|
Var VideoFileEnd = ".mp4"
|
|
|
|
|
|
|
|
|
|
Var PicturePath = "ROOT/taobin_project/inter/whatthecup/" + CountryShortName
|
|
|
|
|
Var PicturePath = PicturePath + "/image/page_doing/"
|
|
|
|
|
Var PictureBegin = "txt_"
|
|
|
|
|
Var PictureEnd = "_en.png"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-10-17 13:36:31 +07:00
|
|
|
Else
|
|
|
|
|
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/animation01/"
|
|
|
|
|
Var VideoFileBegin = "TaoBin2_draft02_art"
|
|
|
|
|
Var VideoFileEnd = ".mp4"
|
|
|
|
|
|
|
|
|
|
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
|
|
|
|
Var PictureBegin = "txt_"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
2021-05-28 11:38:05 +07:00
|
|
|
|
2021-05-28 10:41:11 +07:00
|
|
|
Var VideoPlayFile = VideoPath
|
|
|
|
|
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
|
|
|
|
|
Var VideoPlayFile = VideoPlayFile + "1"
|
|
|
|
|
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
|
|
|
|
|
|
|
|
|
|
Var PictureFile = PicturePath
|
|
|
|
|
Var PictureFile = PictureFile + PictureBegin
|
|
|
|
|
Var PictureFile = PictureFile + "1"
|
|
|
|
|
Var PictureFile = PictureFile + PictureEnd
|
|
|
|
|
|
2020-10-29 22:13:35 +07:00
|
|
|
|
2022-08-01 16:00:47 +07:00
|
|
|
If Seeker.PayWithQR = 0 Then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If Seeker.TNumberTaobinCredit = "" Then
|
|
|
|
|
Var TelephoneNumber = "0899999999"
|
|
|
|
|
Var PayO2 = ""
|
|
|
|
|
|
|
|
|
|
If Seeker.TNumberTaobinMember = "" Then
|
|
|
|
|
Else
|
|
|
|
|
Var TelephoneNumber = Seeker.TNumberTaobinMember
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
Var TelephoneNumber = Seeker.TNumberTaobinCredit
|
|
|
|
|
Var PayO2 = Seeker.CoffeePinNumber
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
2021-11-30 15:42:42 +07:00
|
|
|
|
2021-12-17 12:48:38 +07:00
|
|
|
If Seeker = "next" Then
|
2022-01-11 13:41:12 +07:00
|
|
|
;CoinBack
|
2022-04-20 17:57:34 +07:00
|
|
|
If ChangeFlag2 = 0 Then
|
2022-08-01 16:00:47 +07:00
|
|
|
If Seeker.PayWithQR = 0 Then
|
|
|
|
|
DEBUGVAR TxRef1
|
2024-04-09 16:00:36 +07:00
|
|
|
Var PayDetail2 = ToppingDetail
|
2024-04-08 22:05:55 +07:00
|
|
|
DEBUGVAR PayDetail
|
|
|
|
|
DEBUGVAR PayDetail2
|
|
|
|
|
|
|
|
|
|
UpdateTxRef2 TxRef1 ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate PayO2 PdpaAccept VendingDiscount VendingCampaign PayReference PayType CreditReference PayDetail PayDetail2
|
2022-08-01 16:00:47 +07:00
|
|
|
EndIf
|
2024-04-05 15:22:54 +07:00
|
|
|
If CountryName = "UnitedArabEmirates Dubai" Then
|
|
|
|
|
Var brewing3ContiInter = CountryRootPath + "/xml/page_brewing3Conti.lxml"
|
|
|
|
|
|
|
|
|
|
Open brewing3ContiInter
|
|
|
|
|
Else
|
2024-06-24 12:55:46 +07:00
|
|
|
|
|
|
|
|
If New_Payment = 1 Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/payment.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2024-04-05 15:22:54 +07:00
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2022-04-20 17:57:34 +07:00
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_get_yourchange.xml"
|
|
|
|
|
EndIf
|
2021-12-17 12:48:38 +07:00
|
|
|
Else
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2023-08-17 17:13:11 +07:00
|
|
|
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2024-07-19 13:51:36 +07:00
|
|
|
DEBUGVAR ChangeFlag2
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2022-04-20 17:57:34 +07:00
|
|
|
If ChangeFlag2 = 0 Then
|
2022-08-01 16:00:47 +07:00
|
|
|
If Seeker.PayWithQR = 0 Then
|
|
|
|
|
DEBUGVAR TxRef1
|
2024-04-09 16:00:36 +07:00
|
|
|
Var PayDetail2 = ToppingDetail
|
2024-04-08 22:05:55 +07:00
|
|
|
DEBUGVAR PayDetail
|
|
|
|
|
DEBUGVAR PayDetail2
|
2024-04-09 16:00:36 +07:00
|
|
|
|
2024-04-08 22:05:55 +07:00
|
|
|
UpdateTxRef2 TxRef1 ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate PayO2 PdpaAccept VendingDiscount VendingCampaign PayReference PayType CreditReference PayDetail PayDetail2
|
2022-08-01 16:00:47 +07:00
|
|
|
EndIf
|
2023-10-17 13:36:31 +07:00
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
|
|
|
|
Open Brew3Inter
|
|
|
|
|
Else
|
2024-06-24 12:55:46 +07:00
|
|
|
|
|
|
|
|
If New_Payment = 1 Then
|
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/process/payment.ev"
|
|
|
|
|
EndIf
|
|
|
|
|
|
2023-10-17 13:36:31 +07:00
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
|
|
|
|
EndIf
|
2022-04-20 17:57:34 +07:00
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_get_yourchange.xml"
|
|
|
|
|
EndIf
|
2021-12-17 12:48:38 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2021-05-28 10:41:11 +07:00
|
|
|
|
|
|
|
|
Var LidState = Lid1Status
|
|
|
|
|
;Lid1Status
|
|
|
|
|
Var StarwState = "Enable"
|
|
|
|
|
|
2020-12-05 22:46:39 +07:00
|
|
|
|
2021-04-06 14:50:53 +07:00
|
|
|
If Lid1Status = "Disable" Then
|
|
|
|
|
Var LidState = "Invisible"
|
|
|
|
|
EndIf
|
2020-10-30 18:21:06 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
STRCONTAIN "9701" BrewParam IgnoreLidStraw
|
|
|
|
|
|
|
|
|
|
DEBUGVAR BrewParam
|
|
|
|
|
DEBUGVAR IgnoreLidStraw
|
2021-05-10 09:55:03 +07:00
|
|
|
DEBUGVAR Service_LidStraw
|
2021-04-21 16:13:29 +07:00
|
|
|
|
2023-08-04 15:29:38 +07:00
|
|
|
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
|
2021-04-21 16:13:29 +07:00
|
|
|
|
|
|
|
|
If IgnoreLidStraw = "true" Then
|
|
|
|
|
Var IgnoreLidStraw = "false"
|
2021-05-10 09:55:03 +07:00
|
|
|
SAVELOG "Ignore lid straw because recipe disable"
|
2023-10-17 13:36:31 +07:00
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
|
|
|
|
Open Brew3Inter
|
|
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
|
|
|
|
EndIf
|
2021-04-21 16:13:29 +07:00
|
|
|
EndIf
|
|
|
|
|
|
2021-01-19 23:43:43 +07:00
|
|
|
If Service_LidStraw = "Disable" Then
|
2021-05-14 13:59:07 +07:00
|
|
|
SAVELOG "Service_LidStraw"
|
2023-10-17 13:36:31 +07:00
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
|
|
|
|
Open Brew3Inter
|
|
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
|
|
|
|
EndIf
|
2021-01-19 23:43:43 +07:00
|
|
|
EndIf
|
2020-12-26 01:33:30 +07:00
|
|
|
|
2021-01-23 17:48:02 +07:00
|
|
|
DEBUGVAR StrawAutoRelease1
|
2021-03-12 15:39:02 +07:00
|
|
|
Var UserPressButton = "false"
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2024-02-28 13:57:41 +07:00
|
|
|
SAVELOG "page_lid_straw.xml"
|
2023-08-04 15:29:38 +07:00
|
|
|
|
2024-02-28 13:57:41 +07:00
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
|
|
|
|
Open Brew3Inter
|
|
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
|
|
|
|
EndIf
|
2020-12-26 01:33:30 +07:00
|
|
|
|
2020-09-16 18:42:32 +07:00
|
|
|
</EventOpen>
|
2020-12-05 22:46:39 +07:00
|
|
|
<Timeout> 1000 </Timeout>
|
2020-09-16 18:42:32 +07:00
|
|
|
<EventTimeout>
|
|
|
|
|
|
2021-04-28 15:51:31 +07:00
|
|
|
If CountDownBrewing > 0 Then
|
|
|
|
|
Var CountDownBrewing = CountDownBrewing - 1
|
|
|
|
|
EndIf
|
2020-09-16 18:42:32 +07:00
|
|
|
|
2024-04-19 15:46:14 +07:00
|
|
|
Var ShowCountDownBrewing = BREW_CNT
|
|
|
|
|
|
|
|
|
|
|
2024-02-28 13:57:41 +07:00
|
|
|
Var Timeout = Timeout + 1
|
|
|
|
|
If Timeout > 10 Then
|
|
|
|
|
|
|
|
|
|
If InternationalEnable = 1 Then
|
|
|
|
|
Var Brew3Inter = CountryRootPath + "/xml/page_brewing3.lxml"
|
|
|
|
|
Open Brew3Inter
|
|
|
|
|
Else
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
EndIf
|
2020-09-16 20:05:55 +07:00
|
|
|
|
2020-09-16 18:42:32 +07:00
|
|
|
Refresh
|
|
|
|
|
TimerReset
|
|
|
|
|
</EventTimeout>
|
2024-02-27 21:53:17 +07:00
|
|
|
; remove by kong ; optimize new step advertise
|
2020-09-16 18:42:32 +07:00
|
|
|
|
|
|
|
|
|
2020-10-15 18:29:38 +07:00
|
|
|
|
|
|
|
|
;
|
2020-09-16 18:42:32 +07:00
|
|
|
<Image>
|
|
|
|
|
<X> 751 </X>
|
|
|
|
|
<Y> 413 </Y>
|
2020-10-30 18:21:06 +07:00
|
|
|
<Filename> page_doing_show_time_image </Filename>
|
2020-09-16 18:42:32 +07:00
|
|
|
</Image>
|
2020-10-15 18:29:38 +07:00
|
|
|
;
|
2020-09-16 18:42:32 +07:00
|
|
|
<Text>
|
2020-10-15 14:04:35 +07:00
|
|
|
<X> XPosiShowCountDownBrew </X>
|
2020-10-15 18:29:38 +07:00
|
|
|
<Y> 470 </Y>
|
|
|
|
|
<Align> End </Align>
|
|
|
|
|
<Width> 153 </Width>
|
2020-09-16 18:42:32 +07:00
|
|
|
<Size> 88 </Size>
|
2020-10-15 18:29:38 +07:00
|
|
|
<Font> RobotoBold </Font>
|
2020-09-16 18:42:32 +07:00
|
|
|
<Color> 0x513C2F </Color>
|
|
|
|
|
<Value> ShowCountDownBrewing </Value>
|
|
|
|
|
</Text>
|
|
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
|
|
|
|
|
<EventMachine>
|
|
|
|
|
|
2020-10-28 13:43:30 +07:00
|
|
|
If MachineStage = "drink-success" Then
|
|
|
|
|
Var MachineState_Result = 1
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
If MachineStage = "drink-failed" Then
|
|
|
|
|
Var MachineState_Result = 2
|
|
|
|
|
EndIf
|
|
|
|
|
</EventMachine>
|
|
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
|
2023-01-01 20:14:53 +07:00
|
|
|
|
2020-09-16 18:42:32 +07:00
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
<EventChangeStatus>
|
|
|
|
|
If ChangeStatus = "payout-end" Then
|
2021-03-17 12:22:54 +07:00
|
|
|
|
2020-10-12 19:09:05 +07:00
|
|
|
EndIf
|
|
|
|
|
</EventChangeStatus>
|
2020-09-16 18:42:32 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</Popup>
|