add xml testscanqrcode camera in vending info
This commit is contained in:
parent
8ca07a13e4
commit
7868c5da22
3 changed files with 182 additions and 0 deletions
87
xml/testscanQRcode.xml
Normal file
87
xml/testscanQRcode.xml
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
<Page>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1312 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Background> "0x2c2928" </Background>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
Var KornCameraXW = 800
|
||||
Var KornCameraXH = 800
|
||||
Var scanresult = ""
|
||||
Var scanmsg = ""
|
||||
|
||||
INITSCANQR
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
<EventScanQRResult>
|
||||
|
||||
If scanresult = "true" Then
|
||||
Open "ROOT/taobin_project/xml/testscanQRcodeResult.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
</EventScanQRResult>
|
||||
|
||||
|
||||
; header
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Height> 80 </Height>
|
||||
<Width> 1080 </Width>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
|
||||
</Image>
|
||||
|
||||
;back
|
||||
<Button>
|
||||
<X> 40 </X>
|
||||
<Y> 20 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
</EventClick>
|
||||
|
||||
</Button>
|
||||
|
||||
|
||||
<CameraX>
|
||||
<X> 200 </X>
|
||||
<Y> 400 </Y>
|
||||
<Name>"usbfront"</Name>
|
||||
<Width> KornCameraXW </Width>
|
||||
<Height> KornCameraXH </Height>
|
||||
<State> Enable </State>
|
||||
</CameraX>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 50 </X>
|
||||
<Y> info_cancel_y </Y>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
</Page>
|
||||
75
xml/testscanQRcodeResult.xml
Normal file
75
xml/testscanQRcodeResult.xml
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
<Page>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1312 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Background> "0x2c2928" </Background>
|
||||
|
||||
<EventOpen>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
; header
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Height> 80 </Height>
|
||||
<Width> 1080 </Width>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/nav-bar-mid.png" </Filename>
|
||||
</Image>
|
||||
|
||||
;back
|
||||
<Button>
|
||||
<X> 40 </X>
|
||||
<Y> 20 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/arrow_back.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
</EventClick>
|
||||
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 100 </X>
|
||||
<Y> 200 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 60 </Size>
|
||||
<Font> KanitMediumTTF </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<State> "Enable" </State>
|
||||
<Value> scanmsg </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 50 </X>
|
||||
<Y> info_cancel_y </Y>
|
||||
<Filename> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/new_vending_info/exit_button.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_board.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
</Page>
|
||||
|
|
@ -928,6 +928,26 @@
|
|||
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 5 </X>
|
||||
<Y> 1200 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/tab_1.png" </Filename>
|
||||
<EventClick>
|
||||
Open "ROOT/taobin_project/xml/testscanQRcode.xml"
|
||||
</EventClick>
|
||||
</Image>
|
||||
|
||||
<Text>
|
||||
<X> 30 </X>
|
||||
<Y> 1210 </Y>
|
||||
<Size> 30 </Size>
|
||||
<Font> fontType1 </Font>
|
||||
<Color> 0x000000 </Color>
|
||||
<Value> "TestScanQRCode" </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
;<QRCode>
|
||||
;<X> 930 </X>
|
||||
;<Y> info_cancel_y </Y>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue