Add file and Image
This commit is contained in:
parent
e9bf1f2d29
commit
f36bbe7098
72 changed files with 834 additions and 63 deletions
|
|
@ -9,8 +9,9 @@
|
|||
; On open
|
||||
Var LidState = Lid1Status
|
||||
Var StarwState = "Enable"
|
||||
Var LidStrawCountDown = 10
|
||||
Var LidStrawCountDown = 15
|
||||
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var DirImage = "ROOT/taobin_project/image/page_lid_straw_en"
|
||||
|
|
@ -19,8 +20,36 @@
|
|||
Var DirImage = "ROOT/taobin_project/image/page_lid_straw"
|
||||
EndIf
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 800 </Timeout>
|
||||
<Timeout> 600 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = CountDownBrewing - 1
|
||||
|
|
@ -34,13 +63,71 @@
|
|||
; count down
|
||||
If LidStrawCountDown = 1 Then
|
||||
Var LidStrawCountDown = 10
|
||||
Open "ROOT/taobin_project/xml/page_brewing2.xml"
|
||||
;Open "ROOT/taobin_project/xml/page_brewing2.xml"
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
EndIf
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
; 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
|
||||
|
||||
Refresh
|
||||
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
|
@ -63,12 +150,12 @@
|
|||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 606 </Height>
|
||||
<Height> 840 </Height>
|
||||
<Refresh> "Reload" </Refresh>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> "ROOT/taobin_project/video/taobin_brewing.mov" </Filename>
|
||||
<Filename> VideoPlayFile </Filename>
|
||||
</Video>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 1289 </Y>
|
||||
|
|
@ -97,7 +184,9 @@
|
|||
If LidState = "Press" Then
|
||||
Machine Lid
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_brewing2.xml"
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_brewing3.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue