Do point
This commit is contained in:
parent
575685aa37
commit
fe053cad2e
7 changed files with 257 additions and 63 deletions
|
|
@ -0,0 +1,175 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
|
||||
<EventOpen>
|
||||
; On open
|
||||
|
||||
Var Timeout = 0
|
||||
;CoffeePoint
|
||||
Var CoffeePoint = 5
|
||||
Var BmiYear = "0/0/0/1/0/0"
|
||||
Var PointCrm = "pdpa1"
|
||||
Var GetScore = ""
|
||||
AddData 4 TelephoneNumber BmiYear PointCrm GetScore
|
||||
|
||||
|
||||
Var CoffeePointStr = CoffeePoint
|
||||
|
||||
SAVELOG TelephoneNumber
|
||||
|
||||
|
||||
</EventOpen>
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
|
||||
Var CountDownBrewing = CountDownBrewing - 1
|
||||
|
||||
; run test;
|
||||
;If CountDownBrewing = 40 Then
|
||||
; Open "ROOT/taobin_project/xml/page_drinkok.xml"
|
||||
;EndIf
|
||||
If CountDownBrewing = 0 Then
|
||||
Open "ROOT/taobin_project/xml/page_drinkok.xml"
|
||||
EndIf
|
||||
|
||||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_collect_point_3.xml"
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
If Timeout > 10 Then
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
EndIf
|
||||
|
||||
TimerReset
|
||||
Refresh
|
||||
</EventTimeout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<EventSecurity>
|
||||
Open "/media/bt/xml/security_alarm.xml"
|
||||
</EventSecurity>
|
||||
|
||||
<EventActionOk>
|
||||
;
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
|
||||
<EventMachine>
|
||||
If MachineStage = "drink-success" Then
|
||||
Var MachineState_Result = 1
|
||||
EndIf
|
||||
|
||||
If MachineStage = "drink-failed" Then
|
||||
Var MachineState_Result = 2
|
||||
EndIf
|
||||
</EventMachine>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/ad_medium_2.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 252 </X>
|
||||
<Y> 666 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/text1.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 452 </X>
|
||||
<Y> 743 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/text2.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 323 </X>
|
||||
<Y> 825 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/text3.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 324 </X>
|
||||
<Y> 1083 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/bn_10free1.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/display_point/bp_10free1.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; use point.
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
|
||||
<Button>
|
||||
<X> 397 </X>
|
||||
<Y> 1783 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/display_point/bn_next.png" </Filename>
|
||||
<FilenamePress> "ROOT/taobin_project/image/display_point/bp_next.png" </FilenamePress>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
; goto lid straw
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<Text>
|
||||
<X> 420 </X>
|
||||
<Y> 638 </Y>
|
||||
<Size> 56 </Size>
|
||||
<Font> KanitBoldTTF </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> TelephoneNumber </Value>
|
||||
<Format> Telnum </Format>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> 323 </X>
|
||||
<Y> 865 </Y>
|
||||
<Width> 434 </Width>
|
||||
<Align> Center </Align>
|
||||
<Size> 64 </Size>
|
||||
<Font> KanitSemiBoldTTF </Font>
|
||||
<Color> 0xDE794E </Color>
|
||||
<Value> CoffeePoint </Value>
|
||||
</Text>
|
||||
|
||||
;
|
||||
<Image>
|
||||
<X> 751 </X>
|
||||
<Y> 413 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/page_doing/img2.png" </Filename>
|
||||
</Image>
|
||||
;
|
||||
<Text>
|
||||
<X> XPosiShowCountDownBrew </X>
|
||||
<Y> 470 </Y>
|
||||
<Align> End </Align>
|
||||
<Width> 153 </Width>
|
||||
<Size> 88 </Size>
|
||||
<Font> RobotoBold </Font>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> ShowCountDownBrewing </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
</Popup>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue