SGP: WIP member prompt page & change brew time to percent
This commit is contained in:
parent
b6e6011eb0
commit
eaa428b707
23 changed files with 3266 additions and 15 deletions
128
inter/sgp/xml/page_member_prompt.lxml
Normal file
128
inter/sgp/xml/page_member_prompt.lxml
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
|
||||
Var DisplayPrompt = "Enable"
|
||||
Var DisplayQR = "Invisible"
|
||||
|
||||
; img
|
||||
Var ImgDir = CountryRootPath + "/image/page_member/"
|
||||
Var PromptDialogImg = ImgDir + "ask_member_dialog.png"
|
||||
Var YesButton = ImgDir + "bn_yes.png"
|
||||
Var NoButton = ImgDir + "bn_no.png"
|
||||
Var YesPressButton = ImgDir + "bp_yes.png"
|
||||
Var NoPressButton = ImgDir + "bp_no.png"
|
||||
Var QRImg = ImgDir + "qr_regis.png"
|
||||
|
||||
Var Timeout = 0
|
||||
Var UseSGPCollectFlag = 0
|
||||
|
||||
DEBUGVAR YesButton
|
||||
|
||||
Var IMG_CNT = ImgDir + "img2_sp_eng.png"
|
||||
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
Var RemainingInThisPage = 25 - Timeout
|
||||
If RemainingInThisPage <= 0 Then
|
||||
Var RemainingInThisPage = 0
|
||||
EndIf
|
||||
|
||||
DEBUGVAR Timeout
|
||||
|
||||
If Timeout > 25 Then
|
||||
Var Timeout = 0
|
||||
; to-lid-straw
|
||||
SAVELOG "member_prompt.Timeout"
|
||||
;Open "ROOT/taobin_project/xml/page_catalog.xml"
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
Refresh
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 150 </X>
|
||||
<Y> 618 </Y>
|
||||
<State> DisplayPrompt </State>
|
||||
<Height> 800 </Height>
|
||||
<Width> 800 </Width>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<Filename> PromptDialogImg </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 250 </X>
|
||||
<Y> 1065 </Y>
|
||||
<State> DisplayPrompt </State>
|
||||
<Filename> NoButton </Filename>
|
||||
<FilenamePress> NoPressButton </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
|
||||
; show-qr
|
||||
Var DisplayPrompt = "Invisible"
|
||||
Var DisplayQR = "Enable"
|
||||
|
||||
Var Timeout = 18
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Button>
|
||||
<X> 600 </X>
|
||||
<Y> 1065 </Y>
|
||||
<State> DisplayPrompt </State>
|
||||
<Filename> YesButton </Filename>
|
||||
<FilenamePress> YesPressButton </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var Timeout = 0
|
||||
Var UseSGPCollectFlag = 1
|
||||
|
||||
Open "ROOT/taobin_project/inter/sgp/xml/page_collect_point_1.lxml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> IMG_CNT </Filename>
|
||||
</Image>
|
||||
|
||||
<Text>
|
||||
<X> 768 </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> RemainingInThisPage </Value>
|
||||
</Text>
|
||||
|
||||
<Image>
|
||||
<X> 449 </X>
|
||||
<Y> 1065 </Y>
|
||||
<State> DisplayQR </State>
|
||||
<Filename> QRImg </Filename>
|
||||
</Image>
|
||||
|
||||
;include="ROOT/taobin_project/inc/video.inc"
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue