taobin_project/xml/page_lid_straw.xml

317 lines
6.3 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>
<Volume> SoundVolume </Volume>
2020-09-18 10:49:19 +07:00
<Sound> "ROOT/sounds/pleaseWait.wav" </Sound>
2020-09-16 18:42:32 +07:00
<EventOpen>
; On open
2020-09-25 12:59:30 +07:00
Var LidState = Lid1Status
2020-09-16 18:42:32 +07:00
Var StarwState = "Enable"
2020-12-03 14:21:46 +07:00
Var LidStrawCountDown = 15
2020-10-29 22:13:35 +07:00
2020-12-03 14:21:46 +07:00
2020-10-30 18:21:06 +07:00
2020-10-29 22:13:35 +07:00
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/page_lid_straw_en"
Else
Var DirImage = "ROOT/taobin_project/image/page_lid_straw"
EndIf
2020-12-03 14:21:46 +07:00
Var VideoPath = "/mnt/sdcard/coffeevending/taobin_project/animation01/"
Var VideoFileBegin = "TaoBin2_draft02_art"
Var VideoFileEnd = ".mp4"
Var CountUpBrewing = BrewTime - CountDownBrewing
Var CountDownVideoTimeReload = AnimationVideoPlayTime
Var CountDownVideoTime = 1
Var StepVideo = 1
Var PreviseStepVideo = 90
SAVELOG AnimationOn
SAVELOG AnimationVideoPlayTime
SAVELOG VideoID1
SAVELOG VideoID2
SAVELOG VideoID3
SAVELOG VideoID4
SAVELOG VideoID5
SAVELOG VideoID6
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + "1"
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
Var CountUpBrewing = CountUpBrewing + 4
2020-09-16 18:42:32 +07:00
</EventOpen>
2020-12-03 14:21:46 +07:00
<Timeout> 600 </Timeout>
2020-09-16 18:42:32 +07:00
<EventTimeout>
Var CountDownBrewing = CountDownBrewing - 1
; run test;
2020-09-16 20:05:55 +07:00
;If CountDownBrewing = 58 Then
2020-10-15 13:14:09 +07:00
; Open "ROOT/taobin_project/xml/page_brewing.xml"
2020-09-16 20:05:55 +07:00
;EndIf
2020-09-17 12:39:18 +07:00
Var LidStrawCountDown = LidStrawCountDown - 1
2020-09-16 20:05:55 +07:00
; count down
If LidStrawCountDown = 1 Then
2020-11-17 13:32:56 +07:00
Var LidStrawCountDown = 10
2020-12-03 14:21:46 +07:00
;Open "ROOT/taobin_project/xml/page_brewing2.xml"
Open "ROOT/taobin_project/xml/page_brewing3.xml"
2020-09-16 18:42:32 +07:00
EndIf
Var ShowCountDownBrewing = CountDownBrewing
2020-12-03 14:21:46 +07:00
; animation video loop
If AnimationOn = "true" Then
Var CountUpBrewing = CountUpBrewing + 1
Var SlotVideo = CountUpBrewing / AnimationVideoPlayTime
If PreviseStepVideo = SlotVideo Then
SAVELOG SlotVideo
Else
Var PreviseStepVideo = SlotVideo
SAVELOG PreviseStepVideo
SAVELOG SlotVideo
SAVELOG CountUpBrewing
;Var CountDownVideoTime = CountDownVideoTimeReload
Var StepVideo = SlotVideo + 2
SAVELOG StepVideo
If StepVideo = 1 Then
Var videoID = VideoID1
EndIf
If StepVideo = 2 Then
Var videoID = VideoID2
EndIf
If StepVideo = 3 Then
Var videoID = VideoID3
EndIf
If StepVideo = 4 Then
Var videoID = VideoID4
EndIf
If StepVideo = 5 Then
Var videoID = VideoID5
EndIf
If StepVideo = 6 Then
Var videoID = VideoID6
EndIf
If StepVideo = 7 Then
Var videoID = VideoID7
EndIf
SAVELOG videoID
If videoID = 0 Then
Else
Var VideoPlayFile = VideoPath
Var VideoPlayFile = VideoPlayFile + VideoFileBegin
Var VideoPlayFile = VideoPlayFile + videoID
Var VideoPlayFile = VideoPlayFile + VideoFileEnd
SAVELOG VideoPlayFile
EndIf
EndIf
EndIf
2020-09-16 18:42:32 +07:00
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>
<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>
<Filename> "ROOT/taobin_project/video/taobin_adv2.mp4" </Filename>
</Video>
2020-09-16 18:42:32 +07:00
2020-10-12 19:09:05 +07:00
<Video>
<X> 0 </X>
<Y> 380 </Y>
<Width> 1080</Width>
2020-12-03 14:21:46 +07:00
<Height> 840 </Height>
<Refresh> "Reload" </Refresh>
2020-10-12 19:09:05 +07:00
<Loop> "true" </Loop>
2020-12-03 14:21:46 +07:00
<Filename> VideoPlayFile </Filename>
2020-10-12 19:09:05 +07:00
</Video>
2020-09-16 18:42:32 +07:00
<Image>
2020-10-29 22:13:35 +07:00
<X> 0 </X>
<Y> 1289 </Y>
<Filename> Var( DirImage + "/text2.png" ) </Filename>
2020-09-16 18:42:32 +07:00
</Image>
<Image>
<X> 78 </X>
<Y> 1425 </Y>
2020-10-29 22:13:35 +07:00
<Filename> Var( DirImage + "/img3.png" ) </Filename>
2020-09-16 18:42:32 +07:00
</Image>
<Button>
<X> 750 </X>
<Y> 1783 </Y>
2020-10-29 22:13:35 +07:00
<Filename> Var( DirImage + "/bn_ok.png" )</Filename>
<FilenamePress> Var( DirImage + "/bn_ok.png" )</FilenamePress>
2020-09-16 18:42:32 +07:00
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-09-17 19:08:21 +07:00
If StarwState = "Press" Then
Machine Straw
EndIf
If LidState = "Press" Then
Machine Lid
EndIf
2020-12-03 14:21:46 +07:00
Open "ROOT/taobin_project/xml/page_brewing3.xml"
2020-09-16 18:42:32 +07:00
</EventClick>
</Button>
; starw left
<Button>
<X> 126 </X>
<Y> 1474 </Y>
<State> StarwState </State>
<Filename> "ROOT/taobin_project/image/page_lid_straw/bn_straw.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/bp_straw.png" </FilenamePress>
<EventClick>
</EventClick>
</Button>
; lid left
<Button>
<X> 126 </X>
<Y> 1584 </Y>
<State> LidState </State>
<Filename> "ROOT/taobin_project/image/page_lid_straw/bn_lid.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/bp_lid.png" </FilenamePress>
<EventClick>
</EventClick>
</Button>
<Button>
<X> 901 </X>
<Y> 1494 </Y>
<Width> 50 </Width>
<Height> 50 </Height>
<State> StarwState </State>
2020-09-17 19:08:21 +07:00
<Mode> "No" </Mode>
2020-09-16 18:42:32 +07:00
<Filename> "ROOT/taobin_project/image/page_lid_straw/cb_straw_nch.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/cb_straw_ch.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-09-17 19:08:21 +07:00
SAVELOG StarwState
If StarwState = "Press" Then
Var StarwState = "Enable"
Else
Var StarwState = "Press"
EndIf
2020-09-16 18:42:32 +07:00
Refresh
</EventClick>
</Button>
<Button>
<X> 901 </X>
<Y> 1604 </Y>
<Width> 50 </Width>
<Height> 50 </Height>
<State> LidState </State>
2020-09-17 19:08:21 +07:00
<Mode> "No" </Mode>
2020-09-16 18:42:32 +07:00
<Filename> "ROOT/taobin_project/image/page_lid_straw/cb_lid_nch.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_lid_straw/cb_lid_ch.png" </FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
2020-09-17 19:08:21 +07:00
SAVELOG LidState
If LidState = "Press" Then
Var LidState = "Enable"
Else
Var LidState = "Press"
EndIf
2020-09-16 18:42:32 +07:00
Refresh
</EventClick>
</Button>
2020-10-15 18:29:38 +07:00
;
2020-09-16 18:42:32 +07:00
<Image>
<X> 751 </X>
<Y> 413 </Y>
2020-10-30 18:21:06 +07:00
<Filename> page_doing_show_time_image </Filename>
2020-09-16 18:42:32 +07:00
</Image>
2020-10-15 18:29:38 +07:00
;
2020-09-16 18:42:32 +07:00
<Text>
2020-10-15 14:04:35 +07:00
<X> XPosiShowCountDownBrew </X>
2020-10-15 18:29:38 +07:00
<Y> 470 </Y>
<Align> End </Align>
<Width> 153 </Width>
2020-09-16 18:42:32 +07:00
<Size> 88 </Size>
2020-10-15 18:29:38 +07:00
<Font> RobotoBold </Font>
2020-09-16 18:42:32 +07:00
<Color> 0x513C2F </Color>
<Value> ShowCountDownBrewing </Value>
</Text>
2020-10-12 19:09:05 +07:00
;<GIF>
;<X> 182 </X>
;<Y> 700 </Y>
;<Filename> GIFShowProcess </Filename>
;</GIF>
<EventMachine>
If MachineStage = "drink-failed" Then
2020-11-02 18:05:29 +07:00
Var MachineState_Result = 2
2020-10-15 13:14:09 +07:00
Open "ROOT/taobin_project/xml/page_brewing2.xml"
2020-10-12 19:09:05 +07:00
EndIf
2020-09-16 18:42:32 +07:00
2020-10-28 13:43:30 +07:00
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 2
EndIf
</EventMachine>
2020-10-12 19:09:05 +07:00
</EventMachine>
2020-09-16 18:42:32 +07:00
2020-10-12 19:09:05 +07:00
<EventChangeStatus>
If ChangeStatus = "payout-end" Then
Var ChangeOK = 2
EndIf
</EventChangeStatus>
2020-09-16 18:42:32 +07:00
</Popup>