490 lines
No EOL
9.4 KiB
XML
490 lines
No EOL
9.4 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
<Background> "0xeae6e1" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
<EventOpen>
|
|
; On open
|
|
|
|
Var Timeout = 0
|
|
Var BmiYear = "0/0/0/0/0/0/0/0/0/1"
|
|
Var PointCrm = "pdpa1"
|
|
Var GetScore = ""
|
|
Var TelephoneNumber = TelephoneNumberX
|
|
Var Seeker.TNumberTaobinMember = TelephoneNumber
|
|
|
|
Var PointMaskState = "Invisible"
|
|
|
|
Var CoffeePointStr = CoffeePoint
|
|
|
|
DEBUGVAR TelephoneNumber
|
|
DEBUGVAR TelephoneNumberX
|
|
|
|
Var PointRootDir = "ROOT/taobin_project/image/event/jemila"
|
|
|
|
If show_eng = "true" Then
|
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
|
Var CloseBtnImg = PointRootDir + "/continue_en_btn.png"
|
|
Else
|
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
|
Var CloseBtnImg = PointRootDir + "/continue_btn.png"
|
|
EndIf
|
|
|
|
Var CheckCoupons = 0
|
|
Var MakeDrinkState = 0
|
|
|
|
Var PointCount = 0
|
|
|
|
DEBUGVAR PointState[0]
|
|
DEBUGVAR PointState[1]
|
|
DEBUGVAR PointState[2]
|
|
DEBUGVAR PointState[3]
|
|
DEBUGVAR PointState[4]
|
|
DEBUGVAR PointState[5]
|
|
DEBUGVAR PointState[6]
|
|
|
|
DEBUGVAR PointImage[0]
|
|
DEBUGVAR PointImage[1]
|
|
DEBUGVAR PointImage[2]
|
|
DEBUGVAR PointImage[3]
|
|
DEBUGVAR PointImage[4]
|
|
DEBUGVAR PointImage[5]
|
|
DEBUGVAR PointImage[6]
|
|
|
|
DEBUGVAR PointName[0]
|
|
DEBUGVAR PointName[1]
|
|
DEBUGVAR PointName[2]
|
|
DEBUGVAR PointName[3]
|
|
DEBUGVAR PointName[4]
|
|
DEBUGVAR PointName[5]
|
|
DEBUGVAR PointName[6]
|
|
|
|
If PointState[0] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[1] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[2] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[3] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[4] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[5] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
If PointState[6] = 1 Then
|
|
Var PointCount = PointCount + 1
|
|
EndIf
|
|
|
|
Var PointDiff = 7 - PointCount
|
|
|
|
If show_eng = "true" Then
|
|
Var MemberText = "Your member status"
|
|
Var MissionText = "Aura in every role"
|
|
|
|
Var TaobinLevelDesc1 = "" + PointDiff
|
|
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " menus to win! Glowing item."
|
|
Var TaobinLevelDesc2 = "Gather all 7 Tao Bin x Jemila menus to win!"
|
|
|
|
Var subTitle_Y = 839
|
|
|
|
Var text8_X = 224
|
|
|
|
Else
|
|
Var MemberText = "สถานะสมาชิก"
|
|
Var MissionText = "ออร่าได้ทุกบทบาท"
|
|
|
|
Var TaobinLevelDesc1 = "เหลืออีก " + PointDiff
|
|
Var TaobinLevelDesc1 = TaobinLevelDesc1 + " เมนูที่จะได้กดสุ่มรางวัลสุด Exclusive"
|
|
Var TaobinLevelDesc2 = "สะสมให้ครบ 7 เมนู Tao Bin x Jemila"
|
|
|
|
Var subTitle_Y = 853
|
|
|
|
Var text8_X = 346
|
|
|
|
EndIf
|
|
|
|
If PointCount >= 7 Then
|
|
Var CloseBtnImg = PointRootDir + "/bn_random.png"
|
|
EndIf
|
|
|
|
Var CurrentPointSlot = newPointIndex + 1
|
|
|
|
Var UpdatePoint = 0
|
|
|
|
</EventOpen>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
|
|
Var CountDownBrewing = BREW_CNT
|
|
|
|
Var ShowCountDownBrewing = CountDownBrewing
|
|
|
|
|
|
|
|
Var Timeout = Timeout + 1
|
|
If Timeout > 10 Then
|
|
Var CurrentPointCheck = "check"
|
|
Var val3 = "X"
|
|
AddData 53 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
|
Var UpdatePoint = 1
|
|
EndIf
|
|
|
|
|
|
|
|
TimerReset
|
|
Refresh
|
|
</EventTimeout>
|
|
|
|
|
|
<EventActionError>
|
|
|
|
</EventActionError>
|
|
|
|
<EventActionOk>
|
|
|
|
If UpdatePoint = 1 Then
|
|
If Seeker.CodeChannel = 1 Then
|
|
If Seeker.CollectPointMain = 1 Then
|
|
GETACCEXT Param1 23
|
|
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
|
Else
|
|
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
EndIf
|
|
Else
|
|
GETACCEXT Param1 23
|
|
Open "ROOT/taobin_project/xml/page_collect_point_2.xml"
|
|
EndIf
|
|
EndIf
|
|
|
|
</EventActionOk>
|
|
|
|
<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> 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( PointRootDir + "/bg_top.png" )</Filename>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 158 </X>
|
|
<Y> 1085 </Y>
|
|
<Filename> Var( PointRootDir + "/bg_bottom.png" )</Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 243 </X>
|
|
<Y> 722 </Y>
|
|
<Width> 380 </Width>
|
|
<Height> 36 </Height>
|
|
<Size> 24 </Size>
|
|
<Color> 0x746253 </Color>
|
|
<Font> KanitMediumTTF </Font>
|
|
<Value> MemberText </Value>
|
|
</Text>
|
|
|
|
|
|
<Text>
|
|
<X> 243 </X>
|
|
<Y> 850 </Y>
|
|
<Width> 360 </Width>
|
|
<Height> 48 </Height>
|
|
<Size> 32 </Size>
|
|
<Color> 0x746253 </Color>
|
|
<Font> KanitMediumTTF </Font>
|
|
<Value> MissionText </Value>
|
|
</Text>
|
|
|
|
|
|
<Image>
|
|
<X> 591 </X>
|
|
<Y> 672 </Y>
|
|
<Filename> Var( PointRootDir + "/tao_jemila.png" )</Filename>
|
|
</Image>
|
|
;
|
|
|
|
|
|
<Text>
|
|
<X> 243 </X>
|
|
<Y> 758 </Y>
|
|
<Size> 36 </Size>
|
|
<Width> 480 </Width>
|
|
<Height> 42 </Height>
|
|
<Font> RobotoBold </Font>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> TaobinName </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 243 </X>
|
|
<Y> 815 </Y>
|
|
<Size> 14 </Size>
|
|
<Width> 100 </Width>
|
|
<Font> RobotoRegular </Font>
|
|
<Color> 0x746253 </Color>
|
|
<Value> TNumberTaobinMemberXXX </Value>
|
|
<Format> Telnum-mask-1 </Format>
|
|
</Text>
|
|
|
|
; Header
|
|
<Text>
|
|
<X> 247 </X>
|
|
<Y> 902 </Y>
|
|
<Size> 48 </Size>
|
|
<Width> 56 </Width>
|
|
<Height> 56 </Height>
|
|
<Font> RobotoBold </Font>
|
|
<Color> 0xDE794E </Color>
|
|
<Value> PointCount </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 247 </X>
|
|
<Y> 970 </Y>
|
|
<Size> 20 </Size>
|
|
<Width> 500 </Width>
|
|
<Height> 30 </Height>
|
|
<Font> RobotoBold </Font>
|
|
<Color> 0xDE794E </Color>
|
|
<Value> TaobinLevelDesc1 </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 247 </X>
|
|
<Y> 1001 </Y>
|
|
<Size> 20 </Size>
|
|
<Width> 600 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Color> 0x746253 </Color>
|
|
<Value> TaobinLevelDesc2 </Value>
|
|
</Text>
|
|
|
|
|
|
<Image>
|
|
<X> 201 </X>
|
|
<Y> 1108 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[0]) </Filename>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 373 </X>
|
|
<Y> 1108 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[1]) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 547 </X>
|
|
<Y> 1108 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[2]) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 722 </X>
|
|
<Y> 1108 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[3]) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 287 </X>
|
|
<Y> 1363 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[4]) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 462 </X>
|
|
<Y> 1363 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[5]) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 638 </X>
|
|
<Y> 1363 </Y>
|
|
<Filename> Var( PointRootDir + PointImage[6]) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 192 </X>
|
|
<Y> 1354 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[0] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 367 </X>
|
|
<Y> 1354 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 542 </X>
|
|
<Y> 1354 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[2] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 717 </X>
|
|
<Y> 1354 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[3] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 281 </X>
|
|
<Y> 1612 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[4] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 456 </X>
|
|
<Y> 1612 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[5] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 631 </X>
|
|
<Y> 1612 </Y>
|
|
<Width> 170 </Width>
|
|
<Font> RobotoBold </Font>
|
|
<Size> 14 </Size>
|
|
<Color> 0x000000 </Color>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<Value> PointName[6] </Value>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 403 </X>
|
|
<Y> 1660 </Y>
|
|
<Filename> CloseBtnImg </Filename>
|
|
<FilenamePress> CloseBtnImg </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; goto lid straw
|
|
If PointCount >= 7 Then
|
|
If SELLONLINE = 1 Then
|
|
Var CurrentPointCheck = ""
|
|
Else
|
|
Var CurrentPointCheck = "check"
|
|
EndIf
|
|
Var val3 = "X"
|
|
AddData 53 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
|
|
|
Open "ROOT/taobin_project/xml/event/jemila/page_jemila_random.xml"
|
|
Else
|
|
Var CurrentPointCheck = "check"
|
|
Var val3 = "X"
|
|
AddData 53 TelephoneNumber CurrentPointSlot CurrentPointCheck val3
|
|
Var UpdatePoint = 1
|
|
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>
|
|
|
|
<EventUnitTest3>
|
|
Var PointState[0] = 1
|
|
Var PointState[1] = 1
|
|
Var PointState[2] = 1
|
|
Var PointState[3] = 1
|
|
Var PointState[4] = 1
|
|
Var PointState[5] = 1
|
|
Var PointState[6] = 1
|
|
|
|
Open "ROOT/taobin_project/xml/event/jemila/page_collect_point_jemila_3.xml"
|
|
</EventUnitTest3>
|
|
|
|
<EventUnitTest4>
|
|
If show_eng = "true" Then
|
|
Var show_eng = "false"
|
|
Else
|
|
Var show_eng = "true"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/event/jemila/page_collect_point_jemila_3.xml"
|
|
</EventUnitTest4>
|
|
|
|
|
|
</Popup> |