237 lines
No EOL
6.2 KiB
XML
237 lines
No EOL
6.2 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
<Volume> SoundVolume </Volume>
|
|
;<Background> "0xeae6e1" </Background>
|
|
|
|
<EventOpen>
|
|
Var Timeout = 0
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/event/lipit/random"
|
|
|
|
|
|
Var rewardList[0] = "lip_mask_stick"
|
|
Var rewardList[1] = "lip_mask_stick"
|
|
Var rewardList[2] = "lip_mask_stick"
|
|
Var rewardList[3] = "lip_mask_stick"
|
|
Var rewardList[4] = "lip_mask_stick"
|
|
Var rewardList[5] = "lip_mask_stick"
|
|
Var rewardList[6] = "lip_mask_stick"
|
|
Var rewardList[7] = "lip_mask_stick"
|
|
Var rewardList[8] = "lip_mask_stick"
|
|
Var rewardList[9] = "lip_mask_stick"
|
|
|
|
Var rewardList[10] = "tint_me_healthy_balm"
|
|
Var rewardList[11] = "tint_me_healthy_balm"
|
|
Var rewardList[12] = "tint_me_healthy_balm"
|
|
Var rewardList[13] = "tint_me_healthy_balm"
|
|
Var rewardList[14] = "tint_me_healthy_balm"
|
|
Var rewardList[15] = "tint_me_healthy_balm"
|
|
Var rewardList[16] = "tint_me_healthy_balm"
|
|
Var rewardList[17] = "tint_me_healthy_balm"
|
|
Var rewardList[18] = "tint_me_healthy_balm"
|
|
Var rewardList[19] = "tint_me_healthy_balm"
|
|
|
|
|
|
Var random_state = "Enable"
|
|
Var show_result_state = "Invisible"
|
|
|
|
If show_eng = "true" Then
|
|
Var line_text_x = 341
|
|
Var line_text_img = DirImage + "/line_text_en.png"
|
|
Else
|
|
Var line_text_x = 310
|
|
Var line_text_img = DirImage + "/line_text_th.png"
|
|
EndIf
|
|
|
|
|
|
</EventOpen>
|
|
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
DEBUGVAR Timeout
|
|
|
|
Var CountDownBrewing = BREW_CNT
|
|
|
|
Var ShowCountDownBrewing = CountDownBrewing
|
|
|
|
If random_state = "Enable" Then
|
|
If Timeout > 15 Then
|
|
SAVELOG "Timeout 15 second auto random for you"
|
|
Function 2
|
|
EndIf
|
|
Else
|
|
If Timeout > 5 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
|
|
EndIf
|
|
|
|
|
|
|
|
Var Timeout = Timeout + 1
|
|
|
|
TimerReset
|
|
Refresh
|
|
</EventTimeout>
|
|
|
|
|
|
;include="ROOT/taobin_project/inc/video.inc"
|
|
|
|
|
|
; Background
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Filename> Var( DirImage + "/random_bg.png") </Filename>
|
|
</Image>
|
|
|
|
; random state
|
|
<Image>
|
|
<State> random_state </State>
|
|
<X> 272 </X>
|
|
<Y> 1078 </Y>
|
|
<Filename> Var( DirImage + "/random_text.png") </Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 337 </X>
|
|
<Y> 709 </Y>
|
|
<State> random_state </State>
|
|
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
|
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
|
<EventClick>
|
|
Function 2
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 115 </X>
|
|
<Y> 1311 </Y>
|
|
<State> random_state </State>
|
|
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
|
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
|
<EventClick>
|
|
Function 2
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 588 </X>
|
|
<Y> 1311 </Y>
|
|
<State> random_state </State>
|
|
<Filename> Var( DirImage + "/gift_box.png") </Filename>
|
|
<FilenamePress> Var( DirImage + "/gift_box.png") </FilenamePress>
|
|
<EventClick>
|
|
Function 2
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; show result
|
|
<Image>
|
|
<X> 64 </X>
|
|
<Y> 450 </Y>
|
|
<State> show_result_state </State>
|
|
<Filename> rewardImage </Filename>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> line_text_x </X>
|
|
<Y> 1798 </Y>
|
|
<State> show_result_state </State>
|
|
<Filename> line_text_img </Filename>
|
|
</Image>
|
|
|
|
|
|
<Function2>
|
|
; Random coupon
|
|
Var randResultInt = 0
|
|
Random2 0 19 randResultInt
|
|
|
|
Var CodeType = ""
|
|
Var var2 = "X"
|
|
Var var3 = "X"
|
|
|
|
Var randResultStr = rewardList[randResultInt]
|
|
|
|
If LipMaskOutofStock = 1 Then
|
|
Var randResultStr = "tint_me_healthy_balm"
|
|
EndIf
|
|
|
|
If TintMeOutofStock = 1 Then
|
|
Var randResultStr = "lip_mask_stick"
|
|
EndIf
|
|
|
|
If randResultStr = "lip_mask_stick" Then
|
|
Var rewardImage = DirImage + "/reward_lip_mask_stick.png"
|
|
Var CodeType = "126"
|
|
EndIf
|
|
|
|
if randResultStr = "tint_me_healthy_balm" Then
|
|
Var rewardImage = DirImage + "/reward_tint_me_healthy_blam.png"
|
|
Var CodeType = "127"
|
|
EndIf
|
|
|
|
If randResultStr = "happy_lip_set" Then
|
|
Var rewardImage = DirImage + "/reward_happy_lip_set.png"
|
|
Var CodeType = "128"
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR randResultInt
|
|
DEBUGVAR randResultStr
|
|
DEBUGVAR CodeType
|
|
DEBUGVAR rewardImage
|
|
|
|
Var show_result_state = "Enable"
|
|
Var random_state = "Invisible"
|
|
Var Timeout = 0
|
|
Refresh
|
|
|
|
AddData 38 TelephoneNumber CodeType var2 var3
|
|
</Function2>
|
|
|
|
|
|
;
|
|
<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>
|
|
|
|
<EventUnitTest1>
|
|
OpenInst 2 "ROOT/taobin_project/xml/page_lid_straw.xml"
|
|
</EventUnitTest1>
|
|
|
|
<EventUnitTest2>
|
|
Var show_eng = "false"
|
|
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
|
</EventUnitTest2>
|
|
|
|
<EventUnitTest3>
|
|
Var show_eng = "true"
|
|
Open "ROOT/taobin_project/xml/event/lipit/page_lipiy_random.xml"
|
|
</EventUnitTest3>
|
|
|
|
</Popup> |