188 lines
No EOL
3.7 KiB
XML
188 lines
No EOL
3.7 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
<Background> "0xeae6e1" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
<EventOpen>
|
|
; On open
|
|
|
|
|
|
Var Timeout = 0
|
|
SAVELOG show_eng
|
|
|
|
If show_eng = "true" Then
|
|
Var DirImage = "ROOT/taobin_project/image/consent_en/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
|
|
Else
|
|
Var DirImage = "ROOT/taobin_project/image/consent/"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Please_press_accept_consent.mp3"
|
|
Else
|
|
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Please_press_accept_consent.mp3"
|
|
EndIf
|
|
|
|
Var consentImg = "/img_popup2.png"
|
|
If CheckMemberPageCampaign = 1 Then
|
|
Var consentImg = "/img_popup3.png"
|
|
EndIf
|
|
|
|
</EventOpen>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
|
|
|
|
Var CountDownBrewing = BREW_CNT
|
|
|
|
Var ShowCountDownBrewing = CountDownBrewing
|
|
|
|
Var Timeout = Timeout + 1
|
|
If Timeout > 5 Then
|
|
; goto lid straw
|
|
;SAVELOG "Timeout"
|
|
;Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
SAVELOG "Timeout"
|
|
|
|
|
|
|
|
|
|
Var Seeker.FromConsent = 1
|
|
|
|
Var StepGetPoint = 1
|
|
;GETACCEXT TelephoneNumber 14
|
|
; goto lid straw
|
|
If NewCollectPoint = 1 Then
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
TimerReset
|
|
Refresh
|
|
</EventTimeout>
|
|
|
|
<EventMachine>
|
|
If MachineStage = "drink-success" Then
|
|
Var MachineState_Result = 1
|
|
EndIf
|
|
|
|
If MachineStage = "drink-failed" Then
|
|
Var MachineState_Result = 2
|
|
EndIf
|
|
</EventMachine>
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Filename> "ROOT/taobin_project/image/collectiing/alpha.png" </Filename>
|
|
</Image>
|
|
|
|
|
|
;
|
|
;<Image>
|
|
;<X> 751 </X>
|
|
;<Y> 413 </Y>
|
|
;<Filename> IMG_CNT </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>
|
|
|
|
|
|
<Image>
|
|
<X> 158 </X>
|
|
<Y> 481 </Y>
|
|
<Filename> Var( DirImage + consentImg) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Button>
|
|
<X> 397 </X>
|
|
<Y> 1679 </Y>
|
|
<Filename> Var( DirImage + "/bn_accept.png" )</Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_accept.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press Accept"
|
|
SAVELOG "show_consent-p83."
|
|
|
|
If UnitTestType = "1" Then
|
|
Var CoffeePoint = 10
|
|
If NewCollectPoint = 1 Then
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var Seeker.FromConsent = 1
|
|
|
|
Var StepGetPoint = 1
|
|
;GETACCEXT TelephoneNumber 14
|
|
; goto lid straw
|
|
If NewCollectPoint = 1 Then
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
|
EndIf
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;<Button>
|
|
;<X> 218 </X>
|
|
;<Y> 1679 </Y>
|
|
;<Filename> Var( DirImage + "/bn_decline.png" ) </Filename>
|
|
;<FilenamePress> Var( DirImage + "/bp_decline.png" ) </FilenamePress>
|
|
;<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
;<Volume> SoundVolume </Volume>
|
|
;<EventClick>
|
|
; ; goto lid straw
|
|
; SAVELOG "Press Decline"
|
|
; SAVELOG "show_consent-p110."
|
|
; Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
;</EventClick>
|
|
;</Button>
|
|
|
|
|
|
|
|
;include="ROOT/taobin_project/inc/video.inc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EventSecurity>
|
|
Open "/media/bt/xml/security_alarm.xml"
|
|
</EventSecurity>
|
|
|
|
|
|
</Page> |