Do error xml

This commit is contained in:
kong 2020-10-20 13:58:08 +07:00
parent 07bc0fb0c3
commit f7903cce0f
14 changed files with 353 additions and 799 deletions

115
xml/page_show_error.xml Normal file
View file

@ -0,0 +1,115 @@
<Page>
<X> 0 </X>
<Y> 608 </Y>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1312 </Height>
<Background> "0xEFEDEA" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var countClick = 0
Var countClick2 = 0
</EventOpen>
<Timeout> 2000 </Timeout>
<EventTimeout>
;SAVELOG MachineErrorDetail
Var MachineErrorDetailAll = MachineErrorDetail + " / "
Var MachineErrorDetailAll = MachineErrorDetailAll + MachineErrorDetailEng
If MachineStage = "show-menu" Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
;Refresh
;TimerReset
Open "ROOT/taobin_project/xml/page_show_error.xml"
</EventTimeout>
<Image>
<X> 127 </X>
<Y> 688 </Y>
<Filename> "ROOT/taobin_project/image/close_th/img1.png" </Filename>
</Image>
<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>
<Button>
<X> 870 </X>
<Y> 1860 </Y>
<Width> 200 </Width>
<Height> 50 </Height>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
Var countClick2 = countClick2 + 1
If countClick2 = 3 Then
EndIf
If countClick2 = 5 Then
Var MachineStage = "show-menu"
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_board.xml"
EndIf
Refresh
</EventClick>
</Button>
<Text>
<X> 0 </X>
<Y> 1860 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> Start </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick </Value>
</Text>
<Text>
<X> 0 </X>
<Y> 1876 </Y>
<Size> 20 </Size>
<Width> 1080</Width>
<Align> end </Align>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> countClick2 </Value>
</Text>
<Text>
<X> 5 </X>
<Y> 1883 </Y>
<Size> 30 </Size>
<Align> "Left" </Align>
<Width> 1080 </Width>
<Font> RobotoBlack </Font>
<Color> 0x513C2F </Color>
<Value> MachineErrorDetailAll </Value>
</Text>
</Page>