This commit is contained in:
kong 2020-10-30 18:21:06 +07:00
parent d692ac6582
commit 65cbec4963
82 changed files with 446 additions and 131 deletions

View file

@ -20,8 +20,89 @@
Var CoffeePointStr = CoffeePoint
SAVELOG TelephoneNumber
If show_eng = "true" Then
Var DirImage = "ROOT/taobin_project/image/display_point_en"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
Else
Var DirImage = "ROOT/taobin_project/image/display_point"
Var page_doing_show_time_image = "ROOT/taobin_project/image/page_doing/img2.png"
EndIf
Var stamp1 = "ROOT/taobin_project/image/display_point_en/btp_stamp_1.png"
If CoffeePoint >= 2 Then
Var stamp2 = "ROOT/taobin_project/image/display_point_en/btp_stamp_2.png"
Else
Var stamp2 = "ROOT/taobin_project/image/display_point/btn_stamp_2.png"
EndIf
If CoffeePoint >= 3 Then
Var stamp3 = "ROOT/taobin_project/image/display_point_en/btp_stamp_3.png"
Else
Var stamp3 = "ROOT/taobin_project/image/display_point/btn_stamp_3.png"
EndIf
If CoffeePoint >= 4 Then
Var stamp4 = "ROOT/taobin_project/image/display_point_en/btp_stamp_4.png"
Else
Var stamp4 = "ROOT/taobin_project/image/display_point/btn_stamp_4.png"
EndIf
If CoffeePoint >= 5 Then
Var stamp5 = "ROOT/taobin_project/image/display_point_en/btp_stamp_5.png"
Else
Var stamp5 = "ROOT/taobin_project/image/display_point/btn_stamp_5.png"
EndIf
If CoffeePoint >= 6 Then
Var stamp6 = "ROOT/taobin_project/image/display_point_en/btp_stamp_6.png"
Else
Var stamp6 = "ROOT/taobin_project/image/display_point/btn_stamp_6.png"
EndIf
If CoffeePoint >= 7 Then
Var stamp7 = "ROOT/taobin_project/image/display_point_en/btp_stamp_7.png"
Else
Var stamp7 = "ROOT/taobin_project/image/display_point/btn_stamp_7.png"
EndIf
If CoffeePoint >= 8 Then
Var stamp8 = "ROOT/taobin_project/image/display_point_en/btp_stamp_8.png"
Else
Var stamp8 = "ROOT/taobin_project/image/display_point/btn_stamp_8.png"
EndIf
If CoffeePoint >= 9 Then
Var stamp9 = "ROOT/taobin_project/image/display_point_en/btp_stamp_9.png"
Else
Var stamp9 = "ROOT/taobin_project/image/display_point/btn_stamp_9.png"
EndIf
If CoffeePoint >= 10 Then
Var stamp10 = "ROOT/taobin_project/image/display_point_en/btp_stamp_10.png"
Else
Var stamp10 = "ROOT/taobin_project/image/display_point/btn_stamp_10.png"
EndIf
If CoffeePoint >= 11 Then
Var stamp11 = "ROOT/taobin_project/image/display_point_en/btp_stamp_11.png"
Else
Var stamp11 = "ROOT/taobin_project/image/display_point/btn_stamp_11.png"
EndIf
Var stamp_free = "ROOT/taobin_project/image/display_point/btp_stamp_free.png"
If CoffeePoint == 11 Then
Var Timeout = 8
EndIf
; for test
;Var CoffeePoint = CoffeePoint + 1
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -43,7 +124,11 @@
Var Timeout = Timeout + 1
If Timeout > 10 Then
; goto lid straw
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
If CoffeePoint == 11 Then
Open "ROOT/taobin_project/xml/page_display_get_free.xml"
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
EndIf
TimerReset
@ -83,44 +168,101 @@
<Image>
<X> 252 </X>
<Y> 666 </Y>
<Filename> "ROOT/taobin_project/image/display_point/text1.png" </Filename>
<X> 0 </X>
<Y> 380 </Y>
<Filename> "ROOT/taobin_project/image/display_point/alpha.png" </Filename>
</Image>
;
<Image>
<X> 158 </X>
<Y> 665 </Y>
<Filename> Var( DirImage + "/img_popup1.png" )</Filename>
</Image>
;
<Image>
<X> 253 </X>
<Y> 992 </Y>
<Filename> stamp1 </Filename>
</Image>
<Image>
<X> 452 </X>
<Y> 743 </Y>
<Filename> "ROOT/taobin_project/image/display_point/text2.png" </Filename>
<X> 445 </X>
<Y> 992 </Y>
<Filename> stamp2 </Filename>
</Image>
<Image>
<X> 323 </X>
<Y> 825 </Y>
<Filename> "ROOT/taobin_project/image/display_point/text3.png" </Filename>
<X> 637 </X>
<Y> 992 </Y>
<Filename> stamp3 </Filename>
</Image>
;
<Image>
<X> 253 </X>
<Y> 1152 </Y>
<Filename> stamp4 </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>
<Image>
<X> 445 </X>
<Y> 1152 </Y>
<Filename> stamp5 </Filename>
</Image>
<Image>
<X> 637 </X>
<Y> 1152 </Y>
<Filename> stamp6 </Filename>
</Image>
;
<Image>
<X> 253 </X>
<Y> 1322 </Y>
<Filename> stamp7 </Filename>
</Image>
<Image>
<X> 445 </X>
<Y> 1322 </Y>
<Filename> stamp8 </Filename>
</Image>
<Image>
<X> 637 </X>
<Y> 1322 </Y>
<Filename> stamp9 </Filename>
</Image>
;
<Image>
<X> 253 </X>
<Y> 1463 </Y>
<Filename> stamp10 </Filename>
</Image>
<Image>
<X> 445 </X>
<Y> 1463 </Y>
<Filename> stamp11 </Filename>
</Image>
<Image>
<X> 637 </X>
<Y> 1463 </Y>
<Filename> stamp_free </Filename>
</Image>
<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>
<Y> 1680 </Y>
<Filename> Var( DirImage + "/bn_close.png" )</Filename>
<FilenamePress> Var( DirImage + "/bp_close.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -130,27 +272,27 @@
</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>
;<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>