taobin_project/xml/page_thankyou.xml

375 lines
8 KiB
XML
Raw Normal View History

2020-09-16 18:42:32 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
2021-01-08 13:04:13 +07:00
<Sound> "ROOT/taobin_project/sounds/chaching.mp3" </Sound>
2020-09-16 18:42:32 +07:00
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
2021-11-10 15:33:47 +07:00
Var CountDownThankyou = 3
2020-11-15 23:14:16 +07:00
Var CountDownBrewing = BrewTime
2020-12-03 14:21:46 +07:00
Var CountUpBrewing = 0
SAVELOG BrewTime
2020-09-16 18:42:32 +07:00
Var ShowCountDownBrewing = CountDownBrewing
2020-10-26 21:00:16 +07:00
Var Timeout = 0
Var ChangeFlag = 0
Var ErrTimeout = 0
Var ActionOKCase = 0
2020-10-29 20:03:24 +07:00
Var ChangeTimeout = 0
2020-11-05 14:16:23 +07:00
Var ChangeFlag2 = 0
2020-10-26 21:00:16 +07:00
2021-01-28 13:41:28 +07:00
Var GotoStoreCredit0 = 0
Var StoreCreditAmount = 0
2021-11-10 15:33:47 +07:00
2022-04-20 15:38:07 +07:00
Var buttonRemoveCup = "Invisible"
2021-11-10 15:33:47 +07:00
Var MachineState_Result = 0
Var FailedCount = 0
2021-11-15 19:41:38 +07:00
Var ChangeAmountSum = 0
2021-01-28 13:41:28 +07:00
2021-11-16 12:54:23 +07:00
Var Tel_Confirm_Flag = 0
2021-12-23 18:41:56 +07:00
2022-04-25 17:31:04 +07:00
Var TimeoutToNext = 3
2021-12-23 18:41:56 +07:00
DEBUGVAR Seeker
If Seeker = "curr" Then
2021-12-17 12:48:38 +07:00
Var LastMakeDrinkResult = "-"
EndIf
2021-11-16 12:54:23 +07:00
2021-12-23 18:41:56 +07:00
2021-01-28 13:41:28 +07:00
2020-12-05 22:46:39 +07:00
If show_eng = "true" Then
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
2021-12-09 15:24:23 +07:00
Var BottomText = PicturePath + "text_bottom_eng.png"
2022-01-20 14:49:01 +07:00
Var DirImage = "ROOT/taobin_project/image/page_thankyou_en"
2020-12-05 22:46:39 +07:00
Else
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2.png"
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
2021-12-09 15:24:23 +07:00
Var BottomText = PicturePath + "text_bottom_thai2.png"
2022-01-20 14:49:01 +07:00
Var DirImage = "ROOT/taobin_project/image/page_thankyou"
2020-12-05 22:46:39 +07:00
EndIf
2021-05-10 09:55:03 +07:00
DEBUGVAR StarwState
DEBUGVAR LidState
2021-12-09 15:24:23 +07:00
DEBUGVAR BottomText
2021-07-09 23:38:30 +07:00
If StarwState = "Press" Then
Machine StrawWithDelay
LED LedDoorLid Blink 255 255 255 255
EndIf
If LidState = "Press" Then
Machine LidWithDelay
LED LedDoorLid Blink 255 255 255 255
EndIf
2021-11-16 12:54:23 +07:00
2021-12-17 12:48:38 +07:00
DEBUGVAR Seeker.TNumberTaobinCredit
2021-11-16 12:54:23 +07:00
DEBUGVAR TelephoneNumber
2021-12-17 12:48:38 +07:00
DEBUGVAR Seeker.StoreCreditFlag
If Seeker = "next" Then
Var NextOrder = "true"
EndIf
2021-11-16 12:54:23 +07:00
2022-01-19 14:32:30 +07:00
If VendingCreditRemain = "" Then
Var RemainCreditST = "Invisible"
Else
Var RemainCreditST = "Enable"
EndIf
Var SaveTheWorldST = "Invisible"
Var SaveTheWorldCount = 0
If Seeker.thankLidFlag = 0 Then
Var SaveTheWorldCount = SaveTheWorldCount + 1
EndIf
If Seeker.thankStrawFlag = 0 Then
Var SaveTheWorldCount = SaveTheWorldCount + 1
EndIf
2022-02-03 21:03:39 +07:00
DEBUGVAR LedLidBlink
DEBUGVAR SaveTheWorldCount
2022-01-19 14:32:30 +07:00
If SaveTheWorldCount = 2 Then
2022-02-03 21:03:39 +07:00
If LedLidBlink = "no" Then
Var SaveTheWorldST = "Enable"
EndIf
2022-04-20 15:38:07 +07:00
Var video_id_to_ran = 3
Var video_name_to_play = "taobin_save_world"
2022-04-25 17:31:04 +07:00
If new_layout = "true" Then
Random2 1 3 video_id_to_ran
Else
Random video_id_to_ran
EndIf
2022-04-20 15:38:07 +07:00
Var ThankyouST = "Invisible"
Else
Var video_id_to_ran = 2
Var video_name_to_play = "taobin_thank"
2022-04-25 17:31:04 +07:00
If new_layout = "true" Then
Random2 1 2 video_id_to_ran
Else
Random video_id_to_ran
EndIf
2022-04-20 15:38:07 +07:00
Var ThankyouST = "Enable"
2022-01-19 14:32:30 +07:00
EndIf
2022-02-03 21:03:39 +07:00
2022-04-20 15:38:07 +07:00
If new_layout = "true" Then
DEBUGVAR video_id_to_ran
Var show_video = 1
Var SaveTheWorldST = "Invisible"
Var video_file_name = "ROOT/taobin_project/video/" + video_name_to_play
Var video_file_name = video_file_name + video_id_to_ran
Var video_file_name = video_file_name + ".mp4"
DEBUGVAR video_file_name
Var VideoFileNameStage = "Enable"
Var TimeoutToNext = 5
Var ThankyouST = "Invisible"
Else
Var show_video = 0
Var VideoFileNameStage = "Invisible"
Var TimeoutToNext = 3
EndIf
2021-11-16 12:54:23 +07:00
2020-12-05 22:46:39 +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>
Var CountDownBrewing = CountDownBrewing - 1
2022-04-25 17:32:51 +07:00
;Var CountDownThankyou = CountDownThankyou - 1
2020-10-26 21:00:16 +07:00
Var Timeout = Timeout + 1
2022-04-20 15:38:07 +07:00
If Timeout = TimeoutToNext Then
2021-11-10 15:33:47 +07:00
If CART_INDEX = 0 Then
Else
2022-01-11 13:41:12 +07:00
;Cart "MakeID" CART_INDEX
2021-11-10 15:33:47 +07:00
EndIf
2021-01-28 13:41:28 +07:00
2021-12-17 12:48:38 +07:00
If Seeker.PayWithQR = 0 Then
If Seeker.FreeVendingCampaign = 0 Then
If Seeker.IntVendingCampaign < PayAmount Then
Var SumCoinAmount = CoinAmount + Seeker.IntVendingCampaign
Var SumCoinAmount = SumCoinAmount + Seeker.IntVendingCredit
2021-07-23 17:27:25 +07:00
2021-01-28 13:41:28 +07:00
If SumCoinAmount >= PayAmount Then
Var Canout = SumCoinAmount - PayAmount
If Canout > 0 Then
;Change Canout
;Var ChangeFlag2 = 1
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
EndIf
Else
Var Canout = CoinAmount
If Canout > 0 Then
;Change Canout
;Var ChangeFlag2 = 1
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
Else
Var Canout = CoinAmount
If Canout > 0 Then
;Change Canout
;Var ChangeFlag2 = 1
Var GotoStoreCredit0 = 1
Var StoreCreditAmount = Canout
EndIf
EndIf
2022-04-25 17:32:51 +07:00
Var CountDownThankyou = 0
2021-01-28 13:41:28 +07:00
2020-10-26 21:00:16 +07:00
EndIf
2020-09-16 18:42:32 +07:00
; run test;
2020-09-19 05:13:12 +07:00
If CountDownThankyou = 0 Then
2021-11-16 12:54:23 +07:00
If IgnoreNetCore = "true" Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
2020-12-04 13:35:13 +07:00
If TestLoopMakeDrink = 1 Then
Open "ROOT/taobin_project/xml/page_brewing2.xml"
EndIf
2020-12-16 09:50:26 +07:00
2020-12-03 14:21:46 +07:00
Var CountDownBrewing = BrewTime
Var CountUpBrewing = 0
SAVELOG BrewTime
Var ShowCountDownBrewing = CountDownBrewing
2020-12-16 09:50:26 +07:00
2020-12-20 20:21:22 +07:00
If RoadShow = "true" Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
2021-03-26 14:14:04 +07:00
If PayOfflineMode = 1 Then
If StoreCreditAmount > 0 Then
Change StoreCreditAmount
Var ChangeFlag2 = 1
2021-06-16 14:25:19 +07:00
2021-03-26 14:14:04 +07:00
EndIf
2021-11-10 15:33:47 +07:00
If CART_INDEX >= 2 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
2021-06-16 14:25:19 +07:00
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
2021-01-28 13:41:28 +07:00
Else
2021-12-17 12:48:38 +07:00
If Seeker.StoreCreditFlag = 1 Then
If Seeker.FreeVendingCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
2021-11-10 15:33:47 +07:00
If CART_INDEX >= 2 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
EndIf
2021-03-26 14:14:04 +07:00
Else
If GotoStoreCredit0 = 1 Then
Open "ROOT/taobin_project/xml/page_payment_storeCredit0.xml"
Else
2021-12-17 12:48:38 +07:00
If Seeker.FreeVendingCampaign = 1 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
2021-11-10 15:33:47 +07:00
If CART_INDEX >= 2 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
Open "ROOT/taobin_project/xml/page_collect_point_1.xml"
EndIf
2021-03-26 14:14:04 +07:00
EndIf
2021-01-28 13:41:28 +07:00
EndIf
EndIf
2020-12-20 20:21:22 +07:00
EndIf
2020-09-16 18:42:32 +07:00
EndIf
Var ShowCountDownBrewing = CountDownBrewing
Refresh
TimerReset
</EventTimeout>
2020-11-22 21:50:53 +07:00
;<Image>
;<X> 0 </X>
;<Y> 0 </Y>
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
;</Image>
2022-01-19 14:32:30 +07:00
2022-04-20 15:38:23 +07:00
;<Video>
;<X> 0 </X>
;<Y> 392 </Y>
;<Width> 1080</Width>
;<Height> 1528 </Height>
;<State>VideoFileNameStage</State>
;<Filename> video_file_name </Filename>
;</Video>
2022-04-20 15:38:07 +07:00
2022-01-19 14:32:30 +07:00
<Image>
<X> 89 </X>
<Y> 700 </Y>
2022-04-20 15:38:07 +07:00
<State>ThankyouST</State>
2022-01-19 14:32:30 +07:00
<Filename> "ROOT/taobin_project/image/page_thankyou/img1.png" </Filename>
</Image>
<Image>
<X> 0 </X>
<Y> 0 </Y>
<State>SaveTheWorldST</State>
<Filename> "ROOT/taobin_project/image/page_thankyou/img3.png" </Filename>
</Image>
<Image>
<X> 760 </X>
<Y> 413 </Y>
<State>RemainCreditST</State>
2022-01-20 14:49:01 +07:00
<Filename> Var( DirImage + "/remainCredit.png" ) </Filename>
2022-01-19 14:32:30 +07:00
</Image>
<Text>
<X> 760 </X>
<Y> 480 </Y>
<Size> 70 </Size>
<Width> 413</Width>
<Align> Center </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> VendingCreditRemain </Value>
</Text>
2020-11-22 21:50:53 +07:00
<Video>
2020-09-16 18:42:32 +07:00
<X> 0 </X>
<Y> 0 </Y>
2020-11-22 21:50:53 +07:00
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
2021-05-12 12:13:57 +07:00
<Filename> video_menu_0 </Filename>
2020-11-22 21:50:53 +07:00
</Video>
2020-09-16 18:42:32 +07:00
2020-12-03 14:21:46 +07:00
;<Image>
;<X> 751 </X>
;<Y> 413 </Y>
;<Filename> page_doing_show_time_image </Filename>
;</Image>
;;
;<Text>
;<X> XPosiShowCountDownBrew </X>
;<Y> 470 </Y>
;<Align> End </Align>
;<Width> 153 </Width>
;<Size> 88 </Size>
;<Font> RobotoBold </Font>
;<Color> 0x513C2F </Color>
;<Value> ShowCountDownBrewing </Value>
;</Text>
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-25 12:59:30 +07:00
2020-09-16 18:42:32 +07:00
</Popup>