547 lines
12 KiB
XML
547 lines
12 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
;<Background> "0xeae6e1" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventOpen>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
|
|
TopView "show"
|
|
; On open
|
|
|
|
Var NextPage = "-"
|
|
|
|
Var Seeker.thankLidFlag = 0
|
|
Var Seeker.thankStrawFlag = 0
|
|
|
|
WEB "DISABLE"
|
|
|
|
Var web_readyOK = "false"
|
|
Var web_telnumOK = ""
|
|
|
|
Var PicturePath = "/mnt/sdcard/coffeevending/taobin_project/image/page_doing/"
|
|
|
|
|
|
;Machine DoorLidClose
|
|
|
|
Var GetPayInfoFlag = 0
|
|
Var countDownRetrun = 30
|
|
|
|
CoinVending OFF
|
|
|
|
|
|
; Clear value
|
|
Topping "clear" "-"
|
|
|
|
If show_eng = "true" Then
|
|
Var DirImage = "ROOT/taobin_project/image/page2_en/page2"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_eng/What_would_you_like_to_drink_today.mp3"
|
|
Play PlaySoundLag
|
|
|
|
Var DirImageCart = "ROOT/taobin_project/image/cart_en"
|
|
|
|
Else
|
|
Var DirImage = "ROOT/taobin_project/image/page2"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/taobin_sawade.mp3"
|
|
Play PlaySoundLag
|
|
|
|
Var DirImageCart = "ROOT/taobin_project/image/cart_th"
|
|
EndIf
|
|
|
|
|
|
Var StrawAutoRelease1 = "false"
|
|
Var StrawAutoRelease2 = "false"
|
|
|
|
Var SELLONLINE = 0
|
|
If SELLSTATUS = "SELLONLINE" Then
|
|
Var SELLONLINE = 1
|
|
EndIf
|
|
If SELLSTATUS = "SELLNOCASH" Then
|
|
Var SELLONLINE = 1
|
|
EndIf
|
|
|
|
If SELLONLINE = 1 Then
|
|
Var ShowButtonClick2 = "Enable"
|
|
Else
|
|
Var ShowButtonClick2 = "Invisible"
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
EndIf
|
|
|
|
If SELLONLINE = 1 Then
|
|
Var ShowNetworkProblem = "Invisible"
|
|
Var ShowNetworkProblemText = ""
|
|
|
|
;GenHashWithTimeStamp QRCODE99x
|
|
WEB "ENABLE"
|
|
|
|
Else
|
|
Var ShowNetworkProblem = "Enable"
|
|
Var ShowButtonClick2 = "Invisible"
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
Var ShowNetworkProblemText = "การสื่อสารขัดข้อง ชำระเงินได้เฉพาะเงินสด"
|
|
|
|
Var QRCODE99 = ""
|
|
WEB "DISABLE"
|
|
|
|
EndIf
|
|
|
|
; 1035 is Coke.
|
|
STRCONTAIN "1035" MaterialAvailable CokeUI
|
|
|
|
Var bnSodaAndOther = DirImage + "/bn_soda_coke.png"
|
|
Var bpSodaAndOther = DirImage + "/bp_soda_coke.png"
|
|
|
|
|
|
Var countClick = 0
|
|
|
|
|
|
DEBUGVAR CART_COUNT
|
|
|
|
|
|
Var QRCODE99_Y = 1718
|
|
|
|
Var showCart = "Invisible"
|
|
If MultiPayEnable = "true" Then
|
|
|
|
If CART_COUNT = 1 Then
|
|
Var showCart = "Enable"
|
|
Var cart_image_bn = DirImageCart + "/bn_cart1.png"
|
|
Var cart_image_bp = DirImageCart + "/bp_cart1.png"
|
|
|
|
Var QRCODE99_Y = 1580
|
|
|
|
EndIf
|
|
|
|
If CART_COUNT = 2 Then
|
|
Var showCart = "Enable"
|
|
Var cart_image_bn = DirImageCart + "/bn_cart2.png"
|
|
Var cart_image_bp = DirImageCart + "/bp_cart2.png"
|
|
|
|
Var QRCODE99_Y = 1580
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If CART_COUNT = 3 Then
|
|
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If Seeker = "next" Then
|
|
Var ShowButtonClick2 = "Invisible"
|
|
Var ButtontoTopupMenu = "Invisible"
|
|
EndIf
|
|
|
|
|
|
If XMLProfile = "taobin_notopup" Then
|
|
Var ButtontoTopupMenu = "Disable"
|
|
|
|
EndIf
|
|
|
|
|
|
Var menu_name_eng_hot = ""
|
|
Var menu_desc_eng_hot = ""
|
|
Var menu_name_thai_hot = ""
|
|
Var menu_desc_thai_hot = ""
|
|
|
|
Var menu_name_eng_cold = ""
|
|
Var menu_desc_eng_cold = ""
|
|
Var menu_name_thai_cold = ""
|
|
Var menu_desc_thai_cold = ""
|
|
|
|
|
|
Var menu_name_eng_blender = ""
|
|
Var menu_desc_eng_blender = ""
|
|
Var menu_name_thai_blender = ""
|
|
Var menu_desc_thai_blender = ""
|
|
|
|
|
|
|
|
|
|
</EventOpen>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
|
|
;SAVELOG SoundPlaying
|
|
|
|
If countDownRetrun > 0 Then
|
|
Var countDownRetrun = countDownRetrun - 1
|
|
EndIf
|
|
|
|
If countDownRetrun = 0 Then
|
|
If Seeker = "next" Then
|
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
Refresh
|
|
TimerReset
|
|
</EventTimeout>
|
|
|
|
<EventChangeStatus>
|
|
;If ChangeStatus = "payout-end" Then
|
|
; Var ChangeOK = 1
|
|
;EndIf
|
|
</EventChangeStatus>
|
|
|
|
<EventWebApp>
|
|
|
|
DEBUGVAR web_ready
|
|
If web_ready = "true" Then
|
|
If web_ref = QRCODE99 Then
|
|
Cart "DeleteMenuID" "ALL"
|
|
Var web_readyOK = web_ready
|
|
Var web_telnumOK = web_telnum
|
|
|
|
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
|
EndIf
|
|
|
|
Else
|
|
EndIf
|
|
|
|
</EventWebApp>
|
|
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Width> 1080 </Width>
|
|
<Height> 1540 </Height>
|
|
<Color> "0xeae6e1" </Color>
|
|
</Image>
|
|
|
|
|
|
|
|
;<Video>
|
|
;<X> 0 </X>
|
|
;<Y> 0 </Y>
|
|
;<Width> 1080</Width>
|
|
;<Height> 380 </Height>
|
|
;<Loop> "true" </Loop>
|
|
;<Filename> video_menu_0 </Filename>
|
|
;
|
|
;</Video>
|
|
|
|
|
|
|
|
; back
|
|
<Button>
|
|
<X> 19 </X>
|
|
<Y> 420 </Y>
|
|
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
If Seeker = "next" Then
|
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 990 </X>
|
|
<Y> 438 </Y>
|
|
<Filename> show_btn </Filename>
|
|
<FilenamePress> show_btp </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
If show_eng = "true" Then
|
|
Var show_eng = "false"
|
|
Else
|
|
Var show_eng = "true"
|
|
EndIf
|
|
Open CurrentXMLFileName2
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 70 </X>
|
|
<Y> 583 </Y>
|
|
<Filename> Var(DirImage + "/text1.png") </Filename>
|
|
</Image>
|
|
|
|
|
|
|
|
; menu row 1
|
|
<Button>
|
|
<X> 205 </X>
|
|
<Y> 849 </Y>
|
|
<Filename> Var(DirImage + "/bn_diy.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_diy.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
; eng
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink1.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 579 </X>
|
|
<Y> 849 </Y>
|
|
<Filename> Var(DirImage + "/bn_coffee.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_coffee.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_coffee.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink2.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; menu row 2
|
|
<Button>
|
|
<X> 205 </X>
|
|
<Y> 1191 </Y>
|
|
<Filename> Var(DirImage + "/bn_tea.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_tea.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_tea.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 579 </X>
|
|
<Y> 1191 </Y>
|
|
<Filename> Var(DirImage + "/bn_cho_caramel.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_cho_caramel.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_milk.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink4.xml"
|
|
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 205 </X>
|
|
<Y> 1533 </Y>
|
|
<State>"Enable"</State>
|
|
<Filename> Var(DirImage + "/bn_cocktail.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_cocktail.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_cocktail.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink7.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 205 </X>
|
|
<Y> 1533 </Y>
|
|
<State>AppFastButtonState</State>
|
|
<Filename> Var(DirImage + "/bn_appfast.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_appfast.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_appfast.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink11.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Button>
|
|
<X> 579 </X>
|
|
<Y> 1533 </Y>
|
|
<Filename> bnSodaAndOther </Filename>
|
|
<FilenamePress> bpSodaAndOther </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
If new_layout = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_catalog_group_other.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink6.xml"
|
|
EndIf
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Button>
|
|
<X> 225 </X>
|
|
<Y> 424 </Y>
|
|
<State> ShowButtonClick2 </State>
|
|
<Filename> Var(DirImage + "/bn_main_page_member.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_main_page_member.png") </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
Open "ROOT/taobin_project/xml/page_check_member.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 696 </X>
|
|
<Y> 424 </Y>
|
|
<State> ButtontoTopupMenu </State>
|
|
<Filename> Var(DirImage + "/bn_main_page_topup.png") </Filename>
|
|
<FilenamePress> Var(DirImage + "/bp_main_page_topup.png") </FilenamePress>
|
|
<FilenameDisable> Var(DirImage + "/bp_main_page_topup.png") </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
Var PayDetail=""
|
|
Open "ROOT/taobin_project/xml/page_back_to_topup.xml"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 0 </X>
|
|
<Y> 1870 </Y>
|
|
<State> ShowNetworkProblem </State>
|
|
<Color> "0xFF0000" </Color>
|
|
<Width> 1080 </Width>
|
|
<Height> 60 </Height>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 5 </X>
|
|
<Y> 1880 </Y>
|
|
<Size> 24 </Size>
|
|
<Align> Center </Align>
|
|
<Width> 1080 </Width>
|
|
<Font> RobotoRegular </Font>
|
|
<Color> 0xFFFFFF </Color>
|
|
<Value> ShowNetworkProblemText </Value>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 0 </X>
|
|
<Y> 1860 </Y>
|
|
<Width> 200 </Width>
|
|
<Height> 50 </Height>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
Var countClick = countClick + 1
|
|
If countClick = 3 Then
|
|
|
|
;Var TestLoopMakeDrink = 1
|
|
|
|
EndIf
|
|
DEBUGVAR countClick
|
|
|
|
If countClick = 5 Then
|
|
If ToppingNewEnable = "false" Then
|
|
Var ToppingNewEnable = "true"
|
|
Else
|
|
Var ToppingNewEnable = "false"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/page_catalog_choose_drink3.xml"
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;<QRCode>
|
|
;<X> 895 </X>
|
|
;<Y> QRCODE99_Y</Y>
|
|
;<Width> 178 </Width>
|
|
;<Height> 178 </Height>
|
|
;<State> "Enable" </State>
|
|
;<Service> testservice </Service>
|
|
;</QRCode>
|
|
|
|
|
|
|
|
; Cart
|
|
<Button>
|
|
<X> 915 </X>
|
|
<Y> 1769 </Y>
|
|
<State> showCart </State>
|
|
<Filename> cart_image_bn </Filename>
|
|
<Filename> cart_image_bp </Filename>
|
|
<FilenamePress> cart_image_bp </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<Interval> 400</Interval>
|
|
<EventClick>
|
|
|
|
|
|
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<EventWebApp>
|
|
|
|
DEBUGVAR web_ready
|
|
If web_ready = "true" Then
|
|
If web_ref = QRCODE99x Then
|
|
|
|
Var web_readyOK = web_ready
|
|
Var web_telnumOK = web_telnum
|
|
|
|
Var web_app_prepar = "true"
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_payment.xml"
|
|
|
|
EndIf
|
|
Else
|
|
EndIf
|
|
|
|
</EventWebApp>
|
|
|
|
|
|
|
|
</Popup>
|