WTC+SGP: change collect pt ui and member regis QR
This commit is contained in:
parent
da3e42901e
commit
9ad0f10a7c
25 changed files with 565 additions and 349 deletions
201
inter/whatthecup/sgp/xml/page_display_get_free.xml
Normal file
201
inter/whatthecup/sgp/xml/page_display_get_free.xml
Normal file
|
|
@ -0,0 +1,201 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> BackgroundColor </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
Var Timeout = 0
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = CountryWTCRootPath + "/image/display_get_free_en"
|
||||
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
|
||||
Else
|
||||
Var DirImage = "ROOT/taobin_project/image/display_get_free"
|
||||
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||
EndIf
|
||||
|
||||
|
||||
Var MemberState1 = "Enable"
|
||||
Var MemberState2 = "Invisible"
|
||||
Var MemberState3 = "Invisible"
|
||||
|
||||
;Var TaobinLevel = "3"
|
||||
|
||||
DEBUGVAR TaobinLevel
|
||||
|
||||
If TaobinLevel = "1" Then
|
||||
Var MemberState1 = "Invisible"
|
||||
Var MemberState2 = "Enable"
|
||||
Var MemberState3 = "Invisible"
|
||||
|
||||
If show_eng = "true" Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Get_free_drink_faster.mp3"
|
||||
Else
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/Get_free_drink_faster.mp3"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
If show_eng = "true" Then
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_eng/You_mode_it.mp3"
|
||||
Else
|
||||
PlayLong "/mnt/sdcard/coffeevending/taobin_project/sound_thai/You_mode_it.mp3"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If Seeker.FromConsent = 1 Then
|
||||
Var MemberState1 = "Invisible"
|
||||
Var MemberState2 = "Invisible"
|
||||
Var MemberState3 = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
Var img_popup2 = "/img_popup2.png"
|
||||
Var img_popup3 = "/img_popup3.png"
|
||||
|
||||
;inter-condition
|
||||
;inter-image not use. because customer auto assige member.
|
||||
If InternationalEnable = 1 Then
|
||||
|
||||
Var MemberState1 = "Enable"
|
||||
Var MemberState2 = "Invisible"
|
||||
Var MemberState3 = "Invisible"
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = BREW_CNT
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 5 Then
|
||||
; goto lid straw
|
||||
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
;Open "ROOT/taobin_project/xml/page_catalog.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
;
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
|
||||
<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> 0 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
;</Image>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/inter/whatthecup/sgp/image/display_point/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<State> MemberState1 </State>
|
||||
<Filename> Var( DirImage + "/img_popup1.png" )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<State> MemberState2 </State>
|
||||
<Filename> Var( DirImage + img_popup2 )</Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 158 </X>
|
||||
<Y> 665 </Y>
|
||||
<State> MemberState3 </State>
|
||||
<Filename> Var( DirImage + img_popup3 )</Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 397 </X>
|
||||
<Y> 1680 </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>
|
||||
; goto lid straw
|
||||
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
;
|
||||
;<Image>
|
||||
;<X> 751 </X>
|
||||
;<Y> 413 </Y>
|
||||
;<Filename> "ROOT/taobin_project/image/page_doing/img2.png" </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>
|
||||
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue