Do point
This commit is contained in:
parent
6cfb3d9d9a
commit
98ceafe13a
79 changed files with 942 additions and 606 deletions
141
xml/menu_brewing2.xml
Normal file
141
xml/menu_brewing2.xml
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
<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>
|
||||
|
||||
<GIF>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/brewing.gif" </Filename>
|
||||
</GIF>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue