Add page camera

This commit is contained in:
kong 2021-07-26 15:15:52 +07:00
parent a00cbee965
commit fe1d09de11
3 changed files with 133 additions and 2 deletions

129
xml/page_camera.xml Normal file
View file

@ -0,0 +1,129 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
TopView "show"
; On open
If CocktailShow = "true" Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog_cocktail.xml"
EndIf
If TermTemOnline = "true" Then
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_tt_catalog.xml"
EndIf
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
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
EndIf
Var StrawAutoRelease1 = "false"
Var StrawAutoRelease2 = "false"
Machine DoorClose
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
;SAVELOG SoundPlaying
If countDownRetrun > 0 Then
Var countDownRetrun = countDownRetrun - 1
EndIf
If countDownRetrun = 0 Then
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<EventChangeStatus>
;If ChangeStatus = "payout-end" Then
; Var ChangeOK = 1
;EndIf
</EventChangeStatus>
<Video>
<X> 0 </X>
<Y> 0 </Y>
<Width> 1080</Width>
<Height> 380 </Height>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/campaign2/page_catalog_menu.mp4" </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>
Open "ROOT/taobin_project/xml/page_back_to_main.xml"
</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 "ROOT/taobin_project/xml/page_catalog.xml"
</EventClick>
</Button>
<Camera>
<X> 10 </X>
<Y> 480 </Y>
<Rotation>90</Rotation>
<Width> 600 </Width>
<Height> 1024 </Height>
</Camera>
</Popup>

View file

@ -6,7 +6,7 @@
<Background> "0xEFEDEA" </Background>
<Volume> SoundVolume </Volume>
<Refresh> "Partial" </Refresh>
<EventOpen>2
<EventOpen>
; On open
Var Timeout = 0

View file

@ -202,8 +202,10 @@
;Var ShowPrice = "Invisible"
Open "ROOT/xml/test_coin.xml"
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_drinkfail3.xml"
;OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/xml/page_camera.xml"
;TopView "show"
;Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_main_blank.xml"