taobin_project/inter/aus/xml/page_collect_point_3.lxml
2025-02-20 13:47:28 +07:00

1050 lines
21 KiB
Text

<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0x303030" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
; On open
Var Timeout = 0
Var TargetTimeout = 5
;CoffeePoint
;Var CoffeePoint = 30
Var BmiYear = "0/0/0/0/0/0/0/0/0/1"
Var PointCrm = "pdpa1"
Var GetScore = ""
Var TelephoneNumber = TelephoneNumberX
Var Seeker.TNumberTaobinMember = TelephoneNumber
;AddData 4 TelephoneNumber BmiYear PointCrm GetScore
;Add after pay
Var CoffeePointStr = CoffeePoint
DEBUGVAR TelephoneNumber
DEBUGVAR TelephoneNumberX
Var DirImage = "ROOT/taobin_project/inter/aus/image/collect_point/show_point"
If show_eng = "true" Then
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
Else
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
EndIf
Var PointDiff = 0
Var redeemButtonState = "Disable"
Var closeButtonState = "Enable"
Var RedeemType = ""
Var TaobinExpireDay = ""
Var TaobinExpireMonth = ""
Var TaobinExpireMonthX = ""
Var TaobinExpireYear = ""
SPLIT TaobinExpire "/" 1 TaobinExpireDay
SPLIT TaobinExpire "/" 2 TaobinExpireMonth
SPLIT TaobinExpire "/" 3 TaobinExpireYear
If TaobinExpireMonth = "01" Then
Var TaobinExpireMonth = "Jan"
Var TaobinExpireMonthX = "January"
EndIf
If TaobinExpireMonth = "02" Then
Var TaobinExpireMonth = "Feb"
Var TaobinExpireMonthX = "February"
EndIf
If TaobinExpireMonth = "03" Then
Var TaobinExpireMonth = "Mar"
Var TaobinExpireMonthX = "March"
EndIf
If TaobinExpireMonth = "04" Then
Var TaobinExpireMonth = "Apr"
Var TaobinExpireMonthX = "April"
EndIf
If TaobinExpireMonth = "05" Then
Var TaobinExpireMonth = "May"
Var TaobinExpireMonthX = "May"
EndIf
If TaobinExpireMonth = "06" Then
Var TaobinExpireMonth = "Jun"
Var TaobinExpireMonthX = "June"
EndIf
If TaobinExpireMonth = "07" Then
Var TaobinExpireMonth = "Jul"
Var TaobinExpireMonthX = "July"
EndIf
If TaobinExpireMonth = "08" Then
Var TaobinExpireMonth = "Aug"
Var TaobinExpireMonthX = "August"
EndIf
If TaobinExpireMonth = "09" Then
Var TaobinExpireMonth = "Sep"
Var TaobinExpireMonthX = "September"
EndIf
If TaobinExpireMonth = "10" Then
Var TaobinExpireMonth = "Oct"
Var TaobinExpireMonthX = "October"
EndIf
If TaobinExpireMonth = "11" Then
Var TaobinExpireMonth = "Nov"
Var TaobinExpireMonthX = "November"
EndIf
If TaobinExpireMonth = "12" Then
Var TaobinExpireMonth = "Dec"
Var TaobinExpireMonthX = "December"
EndIf
INT TaobinExpireYear
INT TaobinExpireDay
Var TaobinExpireYear = TaobinExpireYear + 0
Var ExpireStrTmp = ""
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireDay
Var ExpireStrTmp = ExpireStrTmp + " "
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireMonth
Var ExpireStrTmp = ExpireStrTmp + " "
Var ExpireStrTmp = ExpireStrTmp + TaobinExpireYear
If TaobinLevel = "1" Then
Var PointMaskState = "Enable"
EndIf
Var shellExpireDescription = "• Shell expire in 3 months."
Var shellExpireDescriptionSub = ": collect before " + ExpireStrTmp
Var shellExpireDescriptionSub = shellExpireDescriptionSub + " for a free drink"
Var couponDescription = "• " + TaobinCoupons
Var couponDescription = couponDescription + " coupons"
Var couponDescriptionSub = "are available for you, view coupons at Reward point"
If TaobinLevel = "1" Then
Var TaobinLevelDesc1 = "Shy turtle level"
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel1.png"
EndIf
If TaobinLevel = "2" Then
Var TaobinLevelDesc1 = "Walking turtle level"
Var PointDiff = 150 - CoffeePointRank
Var TaobinLevelDesc2 = "Earn " + PointDiff
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
Var TaobinLevelDesc2 = TaobinLevelDesc2 + "to move to Flying turtle level"
Var TaobinLeveImg = "/taoLevel2.png"
If CoffeePointRank > 149 Then
;Var TaobinLeveImg = "/taoLevel3.png"
;Var TaobinLevelDesc1 = "Flying turtle level "
Var TaobinLevelDesc2 = ""
;Var CoffeePointRank = CoffeePointRank - 150
EndIf
EndIf
If TaobinLevel = "3" Then
Var TaobinLevelDesc1 = "Flying turtle level until " + ExpireStrTmp
Var PointDiff = 200 - CoffeePointRank
Var TaobinLevelDesc2 = "Earn " + PointDiff
Var TaobinLevelDesc2 = TaobinLevelDesc2 + " shells "
Var TaobinLevelDesc2 = TaobinLevelDesc2 + "to move to Master turtle level"
Var TaobinLeveImg = "/taoLevel3.png"
If CoffeePointRank > 199 Then
;Var TaobinLeveImg = "/taoLevel4.png"
;Var TaobinLevelDesc1 = "Master turtle level "
Var TaobinLevelDesc2 = ""
;Var CoffeePointRank = CoffeePointRank - 350
EndIf
EndIf
If TaobinLevel = "4" Then
Var TaobinLevelDesc1 = "Master turtle level until " + ExpireStrTmp
Var TaobinLevelDesc2 = ""
Var TaobinLeveImg = "/taoLevel4.png"
EndIf
Var MakeDrinkState = 0
Var taobinP1 = "Invisible"
Var taobinP2 = "Invisible"
Var taobinP3 = "Invisible"
Var taobinP4 = "Invisible"
Var taobinP5 = "Invisible"
Var taobinP6 = "Invisible"
Var taobinP7 = "Invisible"
Var taobinP8 = "Invisible"
Var taobinP9 = "Invisible"
Var taobinP10 = "Enable"
Var taobinP11 = "Invisible"
Var taobinP12 = "Invisible"
Var taobinP13 = "Invisible"
Var taobinP14 = "Invisible"
Var taobinP15 = "Invisible"
Var taobinP16 = "Invisible"
Var taobinP17 = "Invisible"
Var taobinP18 = "Invisible"
Var taobinP19 = "Invisible"
Var taobinP20 = "Enable"
Var taobinP21 = "Invisible"
Var taobinP22 = "Invisible"
Var taobinP23 = "Invisible"
Var taobinP24 = "Invisible"
Var taobinP25 = "Invisible"
Var taobinP26 = "Invisible"
Var taobinP27 = "Invisible"
Var taobinP28 = "Invisible"
Var taobinP29 = "Invisible"
Var taobinP30 = "Invisible"
Var taobinImgP1 = "/shell_new.png"
Var taobinImgP2 = "/shell_new.png"
Var taobinImgP3 = "/shell_new.png"
Var taobinImgP4 = "/shell_new.png"
Var taobinImgP5 = "/shell_new.png"
Var taobinImgP6 = "/shell_new.png"
Var taobinImgP7 = "/shell_new.png"
Var taobinImgP8 = "/shell_new.png"
Var taobinImgP9 = "/shell_new.png"
Var taobinImgP10 = "/shell_discount_1dollar_inactive.png"
Var taobinImgP11 = "/shell_new.png"
Var taobinImgP12 = "/shell_new.png"
Var taobinImgP13 = "/shell_new.png"
Var taobinImgP14 = "/shell_new.png"
Var taobinImgP15 = "/shell_new.png"
Var taobinImgP16 = "/shell_new.png"
Var taobinImgP17 = "/shell_new.png"
Var taobinImgP18 = "/shell_new.png"
Var taobinImgP19 = "/shell_new.png"
Var taobinImgP20 = "/shell_discount_2dollar_inactive.png"
Var taobinImgP21 = "/shell_new.png"
Var taobinImgP22 = "/shell_new.png"
Var taobinImgP23 = "/shell_new.png"
Var taobinImgP24 = "/shell_new.png"
Var taobinImgP25 = "/shell_new.png"
Var taobinImgP26 = "/shell_new.png"
Var taobinImgP27 = "/shell_new.png"
Var taobinImgP28 = "/shell_new.png"
Var taobinImgP29 = "/shell_new.png"
If CoffeePointOld >= 1 Then
Var taobinImgP1 = "/shell.png"
EndIf
If CoffeePointOld >= 2 Then
Var taobinImgP2 = "/shell.png"
EndIf
If CoffeePointOld >= 3 Then
Var taobinImgP3 = "/shell.png"
EndIf
If CoffeePointOld >= 4 Then
Var taobinImgP4 = "/shell.png"
EndIf
If CoffeePointOld >= 5 Then
Var taobinImgP5 = "/shell.png"
EndIf
If CoffeePointOld >= 6 Then
Var taobinImgP6 = "/shell.png"
EndIf
If CoffeePointOld >= 7 Then
Var taobinImgP7 = "/shell.png"
EndIf
If CoffeePointOld >= 8 Then
Var taobinImgP8 = "/shell.png"
EndIf
If CoffeePointOld >= 9 Then
Var taobinImgP9 = "/shell.png"
EndIf
If CoffeePointOld >= 11 Then
Var taobinImgP11 = "/shell.png"
EndIf
If CoffeePointOld >= 12 Then
Var taobinImgP12 = "/shell.png"
EndIf
If CoffeePointOld >= 13 Then
Var taobinImgP13 = "/shell.png"
EndIf
If CoffeePointOld >= 14 Then
Var taobinImgP14 = "/shell.png"
EndIf
If CoffeePointOld >= 15 Then
Var taobinImgP15 = "/shell.png"
EndIf
If CoffeePointOld >= 16 Then
Var taobinImgP16 = "/shell.png"
EndIf
If CoffeePointOld >= 17 Then
Var taobinImgP17 = "/shell.png"
EndIf
If CoffeePointOld >= 18 Then
Var taobinImgP18 = "/shell.png"
EndIf
If CoffeePointOld >= 19 Then
Var taobinImgP19 = "/shell.png"
EndIf
If CoffeePointOld >= 21 Then
Var taobinImgP21 = "/shell.png"
EndIf
If CoffeePointOld >= 22 Then
Var taobinImgP22 = "/shell.png"
EndIf
If CoffeePointOld >= 23 Then
Var taobinImgP23 = "/shell.png"
EndIf
If CoffeePointOld >= 24 Then
Var taobinImgP24 = "/shell.png"
EndIf
If CoffeePointOld >= 25 Then
Var taobinImgP25 = "/shell.png"
EndIf
If CoffeePointOld >= 26 Then
Var taobinImgP26 = "/shell.png"
EndIf
If CoffeePointOld >= 27 Then
Var taobinImgP27 = "/shell.png"
EndIf
If CoffeePointOld >= 28 Then
Var taobinImgP28 = "/shell.png"
EndIf
If CoffeePointOld >= 29 Then
Var taobinImgP29 = "/shell.png"
EndIf
If CoffeePoint >= 1 Then
Var taobinP1 = "Enable"
EndIf
If CoffeePoint >= 2 Then
Var taobinP2 = "Enable"
EndIf
If CoffeePoint >= 3 Then
Var taobinP3 = "Enable"
EndIf
If CoffeePoint >= 4 Then
Var taobinP4 = "Enable"
EndIf
If CoffeePoint >= 5 Then
Var taobinP5 = "Enable"
EndIf
If CoffeePoint >= 6 Then
Var taobinP6 = "Enable"
EndIf
If CoffeePoint >= 7 Then
Var taobinP7 = "Enable"
EndIf
If CoffeePoint >= 8 Then
Var taobinP8 = "Enable"
EndIf
If CoffeePoint >= 9 Then
Var taobinP9 = "Enable"
EndIf
If CoffeePoint >= 10 Then
Var taobinP10 = "Enable"
Var redeemButtonState = "Enable"
If CoffeePoint > 19 Then
Var taobinImgP10 = "/shell.png"
Else
If CoffeePointOld >= 10 Then
Var taobinImgP10 = "/shell_discount_1dollar_active.png"
Else
Var taobinImgP10 = "/shell_discount_1dollar_active_new.png"
EndIf
EndIf
EndIf
If CoffeePoint >= 11 Then
Var taobinP11 = "Enable"
EndIf
If CoffeePoint >= 12 Then
Var taobinP12 = "Enable"
EndIf
If CoffeePoint >= 13 Then
Var taobinP13 = "Enable"
EndIf
If CoffeePoint >= 14 Then
Var taobinP14 = "Enable"
EndIf
If CoffeePoint >= 15 Then
Var taobinP15 = "Enable"
EndIf
If CoffeePoint >= 16 Then
Var taobinP16 = "Enable"
EndIf
If CoffeePoint >= 17 Then
Var taobinP17 = "Enable"
EndIf
If CoffeePoint >= 18 Then
Var taobinP18 = "Enable"
EndIf
If CoffeePoint >= 19 Then
Var taobinP19 = "Enable"
EndIf
If CoffeePoint >= 20 Then
Var taobinP20 = "Enable"
If CoffeePoint > 29 Then
Var taobinImgP20 = "/shell.png"
Else
If CoffeePointOld >= 20 Then
Var taobinImgP20 = "/shell_discount_2dollar_active.png"
Else
Var taobinImgP20 = "/shell_discount_2dollar_active_new.png"
EndIf
EndIf
EndIf
If CoffeePoint >= 21 Then
Var taobinP21 = "Enable"
EndIf
If CoffeePoint >= 22 Then
Var taobinP22 = "Enable"
EndIf
If CoffeePoint >= 23 Then
Var taobinP23 = "Enable"
EndIf
If CoffeePoint >= 24 Then
Var taobinP24 = "Enable"
EndIf
If CoffeePoint >= 25 Then
Var taobinP25 = "Enable"
EndIf
If CoffeePoint >= 26 Then
Var taobinP26 = "Enable"
EndIf
If CoffeePoint >= 27 Then
Var taobinP27 = "Enable"
EndIf
If CoffeePoint >= 28 Then
Var taobinP28 = "Enable"
EndIf
If CoffeePoint >= 29 Then
Var taobinP29 = "Enable"
EndIf
If CoffeePoint >= 30 Then
Var taobinP30 = "Enable"
Var taobinImgP30 = "/shell_get_free_active.png"
Var TargetTimeout = 2
Var redeemButtonState = "Invisible"
Var closeButtonState = "Invisible"
EndIf
;inter-from-consent
Var Seeker.FromConsent = 0
Var AlradyRedeem = 0
DEBUGVAR Seeker
DEBUGVAR Seeker.redeemDiscount
If Seeker = "next" Then
Var Seeker.redeemDiscount = ""
Var CurrSeeker = "curr"
If CurrSeeker.TNumberTaobinMember = Seeker.TNumberTaobinMember Then
DEBUGVAR CurrSeeker.redeemDiscount
If CurrSeeker.redeemDiscount = "" Then
Else
If CurrSeeker.redeemDiscount = "get_free" Then
Var redeemButtonState = "Invisible"
Var closeButtonState = "Invisible"
Else
Var redeemButtonState = "Disable"
EndIf
Var AlradyRedeem = 1
EndIf
EndIf
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var CountDownBrewing = BREW_CNT
Var ShowCountDownBrewing = CountDownBrewing
Var Timeout = Timeout + 1
If Timeout > TargetTimeout Then
; goto lid straw
If CoffeePoint >= 30 Then
If Seeker = "next" Then
If AlradyRedeem = 1 Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
Var RedeemType = "get_free"
Open "ROOT/taobin_project/inter/aus/xml/page_collect_point_redeem.lxml"
EndIf
Else
Var RedeemType = "get_free"
Open "ROOT/taobin_project/inter/aus/xml/page_collect_point_redeem.lxml"
EndIf
Else
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
EndIf
EndIf
TimerReset
Refresh
</EventTimeout>
<EventSecurity>
Open "/media/bt/xml/security_alarm.xml"
</EventSecurity>
<EventMachine>
If MachineStage = "drink-success" Then
Var MachineState_Result = 1
EndIf
If MachineStage = "drink-failed" Then
Var MachineState_Result = 2
EndIf
</EventMachine>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 118 </X>
<Y> 642 </Y>
<Filename> Var( DirImage + "/member-profile-bg.png" )</Filename>
</Image>
<Image>
<X> 702 </X>
<Y> 682 </Y>
<Filename> Var( DirImage + TaobinLeveImg )</Filename>
</Image>
<Text>
<X> 158 </X>
<Y> 682 </Y>
<Width> 500 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x3F2C20 </Color>
<Size> 25 </Size>
<Value> "Membership status" </Value>
</Text>
<Text>
<X> 158 </X>
<Y> 715 </Y>
<Width> 500 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x4C4542 </Color>
<Size> 39 </Size>
<Value> TaobinName </Value>
</Text>
<Text>
<X> 158 </X>
<Y> 766 </Y>
<Width> 500 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x3F2C20 </Color>
<Size> 20 </Size>
<Value> TNumberTaobinMemberXXX </Value>
<Format> Telnum-mask-1 </Format>
</Text>
<Text>
<X> 158 </X>
<Y> 823 </Y>
<Width> 500 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x58514D </Color>
<Size> 25 </Size>
<Value> "Total Shell balance" </Value>
</Text>
<Text>
<X> 158 </X>
<Y> 856 </Y>
<Width> 500 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x82401E </Color>
<Size> 39 </Size>
<Value> CoffeePointRank </Value>
</Text>
<Text>
<X> 158 </X>
<Y> 907 </Y>
<Width> 500 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x82401E </Color>
<Size> 20 </Size>
<Value> TaobinLevelDesc1 </Value>
</Text>
<Text>
<X> 158 </X>
<Y> 934 </Y>
<Width> 500 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x58514D </Color>
<Size> 20 </Size>
<Value> TaobinLevelDesc2 </Value>
</Text>
<Image>
<X> 118 </X>
<Y> 999 </Y>
<Filename> Var( DirImage + "/points-redemption-bg.png" )</Filename>
</Image>
<Image>
<X> 260 </X>
<Y> 1023 </Y>
<Filename> Var( DirImage + "/default_points.png" ) </Filename>
</Image>
<Image>
<X> 740 </X>
<Y> 1111 </Y>
<Filename> Var( DirImage + shellDiscount1DollarImage ) </Filename>
</Image>
<Button>
<X> 260 </X>
<Y> 1023 </Y>
<State> taobinP1 </State>
<Filename> Var( DirImage + taobinImgP1 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1023 </Y>
<State> taobinP2 </State>
<Filename> Var( DirImage + taobinImgP2 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1023 </Y>
<State> taobinP3 </State>
<Filename> Var( DirImage + taobinImgP3 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1023 </Y>
<State> taobinP4 </State>
<Filename> Var( DirImage + taobinImgP4 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1023 </Y>
<State> taobinP5 </State>
<Filename> Var( DirImage + taobinImgP5 )</Filename>
</Button>
<Button>
<X> 260 </X>
<Y> 1111 </Y>
<State> taobinP6 </State>
<Filename> Var( DirImage + taobinImgP6 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1111 </Y>
<State> taobinP7 </State>
<Filename> Var( DirImage + taobinImgP7 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1111 </Y>
<State> taobinP8 </State>
<Filename> Var( DirImage + taobinImgP8 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1111 </Y>
<State> taobinP9 </State>
<Filename> Var( DirImage + taobinImgP9 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1111 </Y>
<State> taobinP10 </State>
<Filename> Var( DirImage + taobinImgP10 )</Filename>
</Button>
<Button>
<X> 260 </X>
<Y> 1199 </Y>
<State> taobinP11 </State>
<Filename> Var( DirImage + taobinImgP11 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1199 </Y>
<State> taobinP12 </State>
<Filename> Var( DirImage + taobinImgP12 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1199 </Y>
<State> taobinP13 </State>
<Filename> Var( DirImage + taobinImgP13 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1199 </Y>
<State> taobinP14 </State>
<Filename> Var( DirImage + taobinImgP14 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1199 </Y>
<State> taobinP15 </State>
<Filename> Var( DirImage + taobinImgP15 )</Filename>
</Button>
<Button>
<X> 260 </X>
<Y> 1287 </Y>
<State> taobinP16 </State>
<Filename> Var( DirImage + taobinImgP16 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1287 </Y>
<State> taobinP17 </State>
<Filename> Var( DirImage + taobinImgP17 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1287 </Y>
<State> taobinP18 </State>
<Filename> Var( DirImage + taobinImgP18 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1287 </Y>
<State> taobinP19 </State>
<Filename> Var( DirImage + taobinImgP19 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1287 </Y>
<State> taobinP20 </State>
<Filename> Var( DirImage + taobinImgP20 )</Filename>
</Button>
<Button>
<X> 260 </X>
<Y> 1375 </Y>
<State> taobinP21 </State>
<Filename> Var( DirImage + taobinImgP21 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1375 </Y>
<State> taobinP22 </State>
<Filename> Var( DirImage + taobinImgP22 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1375 </Y>
<State> taobinP23 </State>
<Filename> Var( DirImage + taobinImgP23 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1375 </Y>
<State> taobinP24 </State>
<Filename> Var( DirImage + taobinImgP24 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1375 </Y>
<State> taobinP25 </State>
<Filename> Var( DirImage + taobinImgP25 )</Filename>
</Button>
<Button>
<X> 260 </X>
<Y> 1463 </Y>
<State> taobinP26 </State>
<Filename> Var( DirImage + taobinImgP26 )</Filename>
</Button>
<Button>
<X> 380 </X>
<Y> 1463 </Y>
<State> taobinP27 </State>
<Filename> Var( DirImage + taobinImgP27 )</Filename>
</Button>
<Button>
<X> 500 </X>
<Y> 1463 </Y>
<State> taobinP28 </State>
<Filename> Var( DirImage + taobinImgP28 )</Filename>
</Button>
<Button>
<X> 620 </X>
<Y> 1463 </Y>
<State> taobinP29 </State>
<Filename> Var( DirImage + taobinImgP29 )</Filename>
</Button>
<Button>
<X> 740 </X>
<Y> 1463 </Y>
<State> taobinP30 </State>
<Filename> Var( DirImage + taobinImgP30 )</Filename>
</Button>
<Image>
<X> 212 </X>
<Y> 1583 </Y>
<Filename> Var( DirImage + "/points-alert-container.png" ) </Filename>
</Image>
<Text>
<X> 228 </X>
<Y> 1587 </Y>
<Width> 90 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x4A4644 </Color>
<Size> 25 </Size>
<Value> "You got" </Value>
</Text>
<Text>
<X> 322 </X>
<Y> 1587 </Y>
<Width> 50 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x4A4644 </Color>
<Size> 25 </Size>
<Value> Var( CoffeePoint - CoffeePointOld ) </Value>
<Align> center-vertical-horizontal </Align>
</Text>
<Text>
<X> 378 </X>
<Y> 1587 </Y>
<Width> 90 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x4A4644 </Color>
<Size> 25 </Size>
<Value> "shells" </Value>
</Text>
<Text>
<X> 228 </X>
<Y> 1638 </Y>
<Size> 20 </Size>
<Width> 240 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x3F2C20 </Color>
<Value> shellExpireDescription </Value>
</Text>
<Text>
<X> 470 </X>
<Y> 1638 </Y>
<Size> 20 </Size>
<Width> 400 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0xA61100 </Color>
<Value> shellExpireDescriptionSub </Value>
</Text>
<Text>
<X> 228 </X>
<Y> 1671 </Y>
<Size> 20 </Size>
<Width> 120 </Width>
<Font> KanitSemiBoldTTF </Font>
<Color> 0x3F2C20 </Color>
<Value> couponDescription </Value>
</Text>
<Text>
<X> 352 </X>
<Y> 1671 </Y>
<Size> 20 </Size>
<Width> 500 </Width>
<Font> KanitRegularTTF </Font>
<Color> 0x3F2C20 </Color>
<Value> couponDescriptionSub </Value>
</Text>
<Button>
<X> 212 </X>
;<X> 262 </X>
<Y> 1752 </Y>
<State> closeButtonState </State>
<Filename> Var( DirImage + "/close_btn.png" )</Filename>
<FilenamePress> Var( DirImage + "/close_btn_pressed.png" )</FilenamePress>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; goto lid straw
If CoffeePoint >= 30 Then
Var RedeemType = "get_free"
Open "ROOT/taobin_project/inter/aus/xml/page_collect_point_redeem.lxml"
EndIf
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
</EventClick>
</Button>
<Button>
<X> 548 </X>
<Y> 1752 </Y>
<State> redeemButtonState </State>
<Filename> Var( DirImage + "/redeem_btn.png" )</Filename>
<FilenamePress> Var( DirImage + "/redeem_btn_pressed.png" )</FilenamePress>
<FilenameDisable> Var( DirImage + "/redeem_btn_disable.png" ) </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
; goto lid straw
If CoffeePoint >= 10 Then
Var RedeemType = "1_dollar"
EndIf
If CoffeePoint >= 20 Then
Var RedeemType = "2_dollar"
EndIf
If CoffeePoint >= 30 Then
Var RedeemType = "get_free"
EndIf
DEBUGVAR RedeemType
If RedeemType = "" Then
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
Else
Open "ROOT/taobin_project/inter/aus/xml/page_collect_point_redeem.lxml"
EndIf
</EventClick>
</Button>
;
<Image>
<X> 751 </X>
<Y> 413 </Y>
<Filename> IMG_CNT </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>
<EventUnitTest4>
Var TaobinName = "Kenta420"
Var TaobinCoupons = "10"
Var TaobinExpire = "10/05/2025"
Var TaobinLevel = "3"
Var TNumberTaobinMemberXXX = "0809120280"
Var CoffeePointRank = 106
Var CoffeePointOld = 16
Var CoffeePoint = 17
Open "ROOT/taobin_project/inter/aus/xml/page_collect_point_3.lxml"
</EventUnitTest4>
</Popup>