taobin_project/xml/menu_brewing2.xml

151 lines
2.7 KiB
XML
Raw Normal View History

2020-09-29 17:02:36 +07:00
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var LidState = "Enable"
Var StarwState = "Enable"
</EventOpen>
<Timeout> 800 </Timeout>
<EventTimeout>
Var CountDownBrewing = CountDownBrewing - 1
; run test;
;If CountDownBrewing = 40 Then
; Open "ROOT/taobin_project/xml/menu_drinkok.xml"
;EndIf
If CountDownBrewing = 0 Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
Var ShowCountDownBrewing = CountDownBrewing
If MachineStage = "drink-success" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
If MachineStage = "show-menu" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
If MachineStage = "close-maintenance" Then
Open "ROOT/taobin_project/xml/menu_back_to_main.xml"
EndIf
If MachineStage = "drink-success" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
Refresh
TimerReset
</EventTimeout>
<EventMachine>
If MachineStage = "drink-success" Then
Open "ROOT/taobin_project/xml/menu_drinkok.xml"
EndIf
If MachineStage = "drink-failed" Then
Open "ROOT/taobin_project/xml/menu_drinkfail.xml"
EndIf
</EventMachine>
2020-10-08 10:01:31 +07:00
<EventEnd>
Open "ROOT/taobin_project/xml/menu_brewing2.xml"
2020-09-29 17:02:36 +07:00
2020-10-08 10:01:31 +07:00
</EventEnd>
<Video>
2020-09-29 17:02:36 +07:00
<X> 0 </X>
<Y> 380 </Y>
2020-10-08 10:01:31 +07:00
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/video/taobin_brewing.mov" </Filename>
</Video>
2020-09-29 17:02:36 +07:00
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
</Image>
<Image>
<X> 140 </X>
<Y> 1124 </Y>
<Filename> "ROOT/taobin_project/image/page_doing/text2.png" </Filename>
</Image>
2020-10-08 10:01:31 +07:00
<Image>
<X> 751 </X>
<Y> 413 </Y>
<Filename> "ROOT/taobin_project/image/page_doing/img2.png" </Filename>
</Image>
2020-09-29 17:02:36 +07:00
<Text>
<X> 808 </X>
<Y> 480 </Y>
<Width> 1080</Width>
<Align> "Hurr" </Align>
<Size> 88 </Size>
<Font> "ROOT/taobin_project/font/Roboto/Roboto-Regular.ttf"</Font>
<Color> 0x513C2F </Color>
<Value> ShowCountDownBrewing </Value>
</Text>
<Text>
<X> 0 </X>
<Y> 1880 </Y>
<Size> 30 </Size>
<Align> Center </Align>
<Width> 1080 </Width>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> MachineStage </Value>
</Text>
<Button>
<X> 0 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick = countClick + 1
If countClick = 3 Then
EndIf
If countClick = 5 Then
Var countClick = 0
MainMenu
EndIf
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1886 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> Center </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick </Value>
</Text>
</Popup>