THAI: Update Robinson beauty promotion

This commit is contained in:
Kenta420 2024-08-23 16:21:44 +07:00
parent 8f5b2b1937
commit aa3f277c03
14 changed files with 3030 additions and 2963 deletions

View file

@ -12,6 +12,8 @@
Var MaxRandomIndex = 0
Var SelectNumber = 0
Var ShakeCount = 0
Var SelectingState = "Enable"
Var SelectedState = "Invisible"
@ -259,13 +261,13 @@
EndIf
If SelectedState = "Enable" Then
If Timeout > 5 Then
If Timeout > 4 Then
Open "ROOT/taobin_project/xml/event/robinson_beauty/page_robinson_beauty_random_result.xml"
EndIf
EndIf
Var Timeout = Timeout + 1
;Var Timeout = Timeout + 1
TimerReset
Refresh
@ -280,7 +282,28 @@
<X> 0 </X>
<Y> 380 </Y>
<State> SelectingState </State>
<Filename> Var( DirImage + "/random_select.png") </Filename>
<Filename> Var( DirImage + "/random_select_bg.png") </Filename>
</Image>
; Fotune cookie
<Image>
<X> 412 </X>
<Y> 798 </Y>
<State> SelectingState </State>
<Filename> Var( DirImage + "/random_fotune_cookie.png") </Filename>
<EventClick>
If ShakeCount <= 5 Then
Var ShakeCount = ShakeCount + 1
Else
Random2 1 9 SelectNumber
Function 2
EndIf
Refresh
</EventClick>
<Animation>
<Style> "shake-image" </Style>
<OnChangeValue> ShakeCount </OnChangeValue>
</Animation>
</Image>
<Image>
@ -296,104 +319,104 @@
<Filename> Var( DirImage + "/random_text.png") </Filename>
</Image>
<Image>
<X> 573 </X>
<Y> 932 </Y>
<Width> 40 </Width>
<Height> 72 </Height>
<EventClick>
Var SelectNumber = 1
Function 2
</EventClick>
</Image>
<Image>
<X> 460 </X>
<Y> 944 </Y>
<Width> 37 </Width>
<Height> 41 </Height>
<EventClick>
Var SelectNumber = 2
Function 2
</EventClick>
</Image>
<Image>
<X> 593 </X>
<Y> 1056 </Y>
<Width> 37 </Width>
<Height> 68 </Height>
<EventClick>
Var SelectNumber = 3
Function 2
</EventClick>
</Image>
<Image>
<X> 525 </X>
<Y> 979 </Y>
<Width> 39 </Width>
<Height> 68 </Height>
<EventClick>
Var SelectNumber = 4
Function 2
</EventClick>
</Image>
<Image>
<X> 445 </X>
<Y> 1101 </Y>
<Width> 40 </Width>
<Height> 68 </Height>
<EventClick>
Var SelectNumber = 5
Function 2
</EventClick>
</Image>
<Image>
<X> 634 </X>
<Y> 989 </Y>
<Width> 38 </Width>
<Height> 72 </Height>
<EventClick>
Var SelectNumber = 6
Function 2
</EventClick>
</Image>
<Image>
<X> 495 </X>
<Y> 1051 </Y>
<Width> 40 </Width>
<Height> 67 </Height>
<EventClick>
Var SelectNumber = 7
Function 2
</EventClick>
</Image>
<Image>
<X> 506 </X>
<Y> 907 </Y>
<Width> 38 </Width>
<Height> 65 </Height>
<EventClick>
Var SelectNumber = 8
Function 2
</EventClick>
</Image>
<Image>
<X> 412 </X>
<Y> 993 </Y>
<Width> 41 </Width>
<Height> 70 </Height>
<EventClick>
Var SelectNumber = 9
Function 2
</EventClick>
</Image>
; <Image>
; <X> 573 </X>
; <Y> 932 </Y>
; <Width> 40 </Width>
; <Height> 72 </Height>
; <EventClick>
; Var SelectNumber = 1
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 460 </X>
; <Y> 944 </Y>
; <Width> 37 </Width>
; <Height> 41 </Height>
; <EventClick>
; Var SelectNumber = 2
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 593 </X>
; <Y> 1056 </Y>
; <Width> 37 </Width>
; <Height> 68 </Height>
; <EventClick>
; Var SelectNumber = 3
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 525 </X>
; <Y> 979 </Y>
; <Width> 39 </Width>
; <Height> 68 </Height>
; <EventClick>
; Var SelectNumber = 4
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 445 </X>
; <Y> 1101 </Y>
; <Width> 40 </Width>
; <Height> 68 </Height>
; <EventClick>
; Var SelectNumber = 5
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 634 </X>
; <Y> 989 </Y>
; <Width> 38 </Width>
; <Height> 72 </Height>
; <EventClick>
; Var SelectNumber = 6
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 495 </X>
; <Y> 1051 </Y>
; <Width> 40 </Width>
; <Height> 67 </Height>
; <EventClick>
; Var SelectNumber = 7
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 506 </X>
; <Y> 907 </Y>
; <Width> 38 </Width>
; <Height> 65 </Height>
; <EventClick>
; Var SelectNumber = 8
; Function 2
; </EventClick>
; </Image>
;
; <Image>
; <X> 412 </X>
; <Y> 993 </Y>
; <Width> 41 </Width>
; <Height> 70 </Height>
; <EventClick>
; Var SelectNumber = 9
; Function 2
; </EventClick>
; </Image>
<Function2>
; Random coupon
@ -410,39 +433,39 @@
If randResultStr = "set_a_plus" Then
Var CodeType = ""
Var CodeType = "144"
EndIf
if randResultStr = "set_a" Then
Var CodeType = ""
Var CodeType = "143"
EndIf
If randResultStr = "lustrous" Then
Var CodeType = ""
Var CodeType = "137"
EndIf
If randResultStr = "lip_tint_oil" Then
Var CodeType = ""
Var CodeType = "138"
EndIf
If randResultStr = "blush_and_lip" Then
Var CodeType = ""
Var CodeType = "139"
EndIf
If randResultStr = "random" Then
Var CodeType = ""
Var CodeType = "140"
EndIf
If randResultStr = "double_serum" Then
Var CodeType = ""
Var CodeType = "141"
EndIf
If randResultStr = "calvin_klein" Then
Var CodeType = ""
Var CodeType = "142"
EndIf
If randResultStr = "discount_50" Then
Var CodeType = ""
Var CodeType = "145"
EndIf