Merge branch 'masterpiece' of ssh://192.168.10.159:/1TBHDD/ikong/taobin_project into masterpiece

This commit is contained in:
wanlop run 2024-10-08 15:12:39 +07:00
commit c72eba6b87
214 changed files with 32239 additions and 1842 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,80 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
Var MovieTicketUnavailable = 0
Var DiscountUnavailable = 0
Var AlreadyGetReward = 0
Var GameMemberPhoneNumber = TelephoneNumber
GETACCEXT GameMemberPhoneNumber 41
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 5 Then
SAVE "Check Quota timeout!!! skip game"
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
</EventTimeout>
<EventActionOk>
If Ext1a = "" Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
Else
Var AlreadyGetReward = Ext1a
Var MovieTicketUnavailable = Ext1b
Var DiscountUnavailable = Ext1c
DEBUGVAR AlreadyGetReward
DEBUGVAR MovieTicketUnavailable
DEBUGVAR DiscountUnavailable
If AlreadyGetReward = 1 Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
If MovieTicketUnavailable = 1 Then
If DiscountUnavailable = 1 Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
EndIf
Open "ROOT/taobin_project/xml/event/halloween/page_starting_game.xml"
EndIf
</EventActionOk>
</Popup>

View file

@ -0,0 +1,416 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var MovieTicketIndex = 0
If MovieTicketUnavailable = 0 Then
Random2 1 14 MovieTicketIndex
EndIf
Var DiscountIndex = 0
If DiscountUnavailable = 0 Then
; for garantee not same index with movie
If MovieTicketIndex > 6 Then
Random2 1 6 DiscountIndex
Else
Random2 7 14 DiscountIndex
EndIf
EndIf
Var GhostSet = 0
Random2 1 5 GhostSet
Var DirImage = "ROOT/taobin_project/image/event/halloween/ghosts/"
Var DirGhostImage = DirImage + "set_"
Var DirGhostImage = DirGhostImage + GhostSet
If GhostSet = 1 Then
Var ghost1_X = 35
Var ghost1_Y = 972
Var ghost2_X = 729
Var ghost2_Y = 1268
Var ghost3_X = 38
Var ghost3_Y = 1645
Var ghost4_X = 430
Var ghost4_Y = 493
Var ghost5_X = 211
Var ghost5_Y = 733
Var ghost6_X = 800
Var ghost6_Y = 984
Var ghost7_X = 771
Var ghost7_Y = 1695
Var ghost8_X = 367
Var ghost8_Y = 911
Var ghost9_X = 386
Var ghost9_Y = 1466
Var ghost10_X = 674
Var ghost10_Y = 743
Var ghost11_X = 86
Var ghost11_Y = 472
Var ghost12_X = 859
Var ghost12_Y = 507
Var ghost13_X = 199
Var ghost13_Y = 1268
EndIf
If GhostSet = 2 Then
Var ghost1_X = 151
Var ghost1_Y = 1610
Var ghost2_X = 757
Var ghost2_Y = 1593
Var ghost3_X = 709
Var ghost3_Y = 1430
Var ghost4_X = 507
Var ghost4_Y = 1023
Var ghost5_X = 373
Var ghost5_Y = 458
Var ghost6_X = 206
Var ghost6_Y = 859
Var ghost7_X = 132
Var ghost7_Y = 1393
Var ghost8_X = 836
Var ghost8_Y = 784
Var ghost9_X = 746
Var ghost9_Y = 451
Var ghost10_X = 63
Var ghost10_Y = 510
Var ghost11_X = 384
Var ghost11_Y = 1303
Var ghost12_X = 54
Var ghost12_Y = 1095
Var ghost13_X = 744
Var ghost13_Y = 1101
EndIf
If GhostSet = 3 Then
Var ghost1_X = 70
Var ghost1_Y = 451
Var ghost2_X = 48
Var ghost2_Y = 1383
Var ghost3_X = 441
Var ghost3_Y = 1405
Var ghost4_X = 402
Var ghost4_Y = 932
Var ghost5_X = 308
Var ghost5_Y = 1162
Var ghost6_X = 735
Var ghost6_Y = 456
Var ghost7_X = 693
Var ghost7_Y = 1675
Var ghost8_X = 740
Var ghost8_Y = 822
Var ghost9_X = 615
Var ghost9_Y = 1117
Var ghost10_X = 811
Var ghost10_Y = 1389
Var ghost11_X = 346
Var ghost11_Y = 466
Var ghost12_X = 54
Var ghost12_Y = 1095
Var ghost13_X = 75
Var ghost13_Y = 788
EndIf
If GhostSet = 4 Then
Var ghost1_X = 380
Var ghost1_Y = 459
Var ghost2_X = 441
Var ghost2_Y = 1422
Var ghost3_X = 103
Var ghost3_Y = 1363
Var ghost4_X = 749
Var ghost4_Y = 491
Var ghost5_X = 87
Var ghost5_Y = 781
Var ghost6_X = 44
Var ghost6_Y = 1633
Var ghost7_X = 875
Var ghost7_Y = 1169
Var ghost8_X = 155
Var ghost8_Y = 1068
Var ghost9_X = 777
Var ghost9_Y = 760
Var ghost10_X = 385
Var ghost10_Y = 889
Var ghost11_X = 787
Var ghost11_Y = 1441
Var ghost12_X = 576
Var ghost12_Y = 1080
Var ghost13_X = 68
Var ghost13_Y = 454
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var GameTimeout = GameTimeout - 1
DEBUGVAR GameTimeout
If GameTimeout < 0 Then
If DiscountUnavailable = 0 Then
Var RewardType = "discount_timeout"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
Else
Open "ROOT/taobin_project/xml/event/halloween/thank_you.xml"
EndIf
EndIf
TimerReset
Refresh
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> Var( DirImage + "game_bg.png" ) </Filename>
</Image>
; ============== Ghosts =====================
<Button>
<X> ghost1_X </X>
<Y> ghost1_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_1.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 1
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost2_X </X>
<Y> ghost2_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_2.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 2
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost3_X </X>
<Y> ghost3_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_3.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 3
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost4_X </X>
<Y> ghost4_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_4.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 4
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost5_X </X>
<Y> ghost5_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_5.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 5
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost6_X </X>
<Y> ghost6_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_6.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 6
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost7_X </X>
<Y> ghost7_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_7.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 7
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost8_X </X>
<Y> ghost8_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_8.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 8
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost9_X </X>
<Y> ghost9_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_9.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 9
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost10_X </X>
<Y> ghost10_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_10.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 10
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost11_X </X>
<Y> ghost11_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_11.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 11
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost12_X </X>
<Y> ghost12_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_12.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 12
Function 2
</EventOnClick>
</Button>
<Button>
<X> ghost13_X </X>
<Y> ghost13_Y </Y>
<Filename> Var( DirGhostImage + "/Ghost_13.png" ) </Filename>
<EventOnClick>
Var SelectedGhostNum = 13
Function 2
</EventOnClick>
</Button>
; ============== End Ghosts =================
<Function2>
SAVELOG "Press ghost!!!"
DEBUGVAR SelectedGhostNum
DEBUGVAR MovieTicketIndex
If SelectedGhostNum = MovieTicketIndex Then
Var RewardType = "movie_ticket"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
Else
If SelectedGhostNum = DiscountIndex Then
Var RewardType = "discount"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
EndIf
EndIf
If GameTimeout < 0 Then
If DiscountUnavailable = 0 Then
Var RewardType = "discount_timeout"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
Else
Open "ROOT/taobin_project/xml/event/halloween/thank_you.xml"
EndIf
Else
Open "ROOT/taobin_project/xml/event/halloween/page_try_again.xml"
EndIf
</Function2>
<Text>
<X> 914 </X>
<Y> 380 </Y>
<Width> 165 </Width>
<Height> 100 </Height>
<Font> KanitRegularTTF </Font>
<Size> 100 </Size>
<Color> 0xFFFFFF </Color>
<Align> center-vertical-horizontal </Align>
<Value> GameTimeout </Value>
</Text>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/event/halloween/game.xml"
</EventUnitTest1>
</Popup>

View file

@ -0,0 +1,81 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
DEBUGVAR RewardType
If RewardType = "movie_ticket" Then
If show_en = "true" Then
Var RewardImage = "ROOT/taobin_project/image/event/halloween/get_movie_ticket_en.png"
Else
Var RewardImage = "ROOT/taobin_project/image/event/halloween/get_movie_ticket_th.png"
EndIf
Var reward = "150"
EndIf
If RewardType = "discount" Then
If show_en = "true" Then
Var RewardImage = "ROOT/taobin_project/image/event/halloween/get_discount_en.png"
Else
Var RewardImage = "ROOT/taobin_project/image/event/halloween/get_discount_th.png"
EndIf
Var reward = "151"
EndIf
If RewardType = "discount_timeout" Then
Var RewardImage = "ROOT/taobin_project/image/event/halloween/thank_you_with_discount.png"
Var reward = "151"
EndIf
DEBUGVAR RewardImage
Var var2 = "X"
Var var3 = "X"
AddData 56 GameMemberPhoneNumber reward var2 var3
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
DEBUGVAR Timeout
If Timeout > 5 Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> RewardImage </Filename>
</Image>
<EventUnitTest1>
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
</EventUnitTest1>
</Popup>

View file

@ -0,0 +1,91 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
; play time 10 sec
Var GameTimeout = 10
Var DirImage = "ROOT/taobin_project/image/event/halloween/"
If show_eng = "true" Then
Var startingGameTitle = DirImage + "starting_game_title_en.png"
Var Title_X = 73
Var TItle_Y = 431
Var bn_PlayGame = DirImage + "bn_play_en.png"
Var bp_PlayGame = DirImage + "bp_play_en.png"
Var bn_NotPlayGame = DirImage + "bn_not_play_en.png"
Var bp_NotPlayGame = DirImage + "bp_not_play_en.png"
Else
Var startingGameTitle = DirImage + "starting_game_title_th.png"
Var Title_X = 129
Var TItle_Y = 493
Var bn_PlayGame = DirImage + "bn_play_th.png"
Var bp_PlayGame = DirImage + "bp_play_th.png"
Var bn_NotPlayGame = DirImage + "bn_not_play_th.png"
Var bp_NotPlayGame = DirImage + "bp_not_play_th.png"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 15 Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
TimerReset
Refresh
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> Var( DirImage + "starting_game_bg.png" ) </Filename>
</Image>
<Image>
<X> Title_X </X>
<Y> Title_Y </Y>
<Filename> startingGameTitle </Filename>
</Image>
<Button>
<X> 109 </X>
<Y> 1229 </Y>
<Filename> bn_PlayGame </Filename>
<FilenamePress> bp_PlayGame </FilenamePress>
<EventClick>
Open "ROOT/taobin_project/xml/event/halloween/game.xml"
</EventClick>
</Button>
<Button>
<X> 582 </X>
<Y> 1229 </Y>
<Filename> bn_NotPlayGame </Filename>
<FilenamePress> bp_NotPlayGame </FilenamePress>
<EventClick>
Open "ROOT/taobin_project/xml/event/halloween/game.xml"
</EventClick>
</Button>
</Popup>

View file

@ -0,0 +1,98 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var GameTimeout = GameTimeout - 1
Var DirImage = "ROOT/taobin_project/image/event/halloween/try_again/"
If show_eng = "true" Then
Var Title = DirImage + "try_again_title_en.png"
Var TryAgainBtn = DirImage + "try_again_btn_en.png"
Var CloseBtn = DirImage + "close_btn_en.png"
Else
Var Title = DirImage + "try_again_title_th.png"
Var TryAgainBtn = DirImage + "try_again_btn_th.png"
Var CloseBtn = DirImage + "close_btn_th.png"
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var GameTimeout = GameTimeout - 1
DEBUGVAR GameTimeout
If GameTimeout < 0 Then
If DiscountUnavailable = 0 Then
Var RewardType = "discount_timeout"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
Else
Open "ROOT/taobin_project/xml/event/halloween/thank_you.xml"
EndIf
EndIf
TimerReset
Refresh
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> Var( DirImage + "try_again_bg.png" ) </Filename>
</Image>
<Image>
<X> 165 </X>
<Y> 442 </Y>
<Filename> Title </Filename>
</Image>
<Button>
<X> 209 </X>
<Y> 1719 </Y>
<Filename> TryAgainBtn </Filename>
<EventClick>
SAVE "Try Again!"
Open "ROOT/taobin_project/xml/event/halloween/game.xml"
</EventClick>
</Button>
<Button>
<X> 612 </X>
<Y> 1719 </Y>
<Filename> CloseBtn </Filename>
<EventClick>
SAVELOG "Close game"
If DiscountUnavailable = 0 Then
Var RewardType = "discount_timeout"
Open "ROOT/taobin_project/xml/event/halloween/page_get_reward.xml"
Else
Open "ROOT/taobin_project/xml/event/halloween/thank_you.xml"
EndIf
</EventClick>
</Button>
<Text>
<X> 914 </X>
<Y> 380 </Y>
<Width> 165 </Width>
<Height> 100 </Height>
<Font> KanitRegularTTF </Font>
<Size> 100 </Size>
<Color> 0xFFFFFF </Color>
<Align> center-vertical-horizontal </Align>
<Value> GameTimeout </Value>
</Text>
</Popup>

View file

@ -0,0 +1,41 @@
<Popup>
<Cache> "Enable" </Cache>
<Width> 1080 </Width>
<Height> 1920 </Height>
<Background> "0xeae6e1" </Background>
<Volume> SoundVolume </Volume>
<EventOpen>
Var Timeout = 0
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
Var Timeout = Timeout + 1
DEBUGVAR Timeout
If Timeout > 5 Then
If luckyDrawAlredyGotReward = 1 Then
Open "ROOT/taobin_project/xml/page_collect_point_3_28.xml"
Else
Open "ROOT/taobin_project/xml/page_collect_point_3_28_lucky_draw_campaign.xml"
EndIf
EndIf
TimerReset
</EventTimeout>
;include="ROOT/taobin_project/inc/video.inc"
<Image>
<X> 0 </X>
<Y> 380 </Y>
<Filename> "ROOT/taobin_project/image/event/halloween/thank_you.png" </Filename>
</Image>
</Popup>

View file

@ -0,0 +1,30 @@
[
{
"name": "halloween",
"template": "/event/promotion_video_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/halloween/halloween.png",
"normal_thai": "ROOT/taobin_project/image/event/halloween/halloween.png",
"press_eng": "ROOT/taobin_project/image/event/halloween/halloween.png",
"press_thai": "ROOT/taobin_project/image/event/halloween/halloween.png",
"disable_eng": "ROOT/taobin_project/image/event/halloween/halloween.png",
"disable_thai": "ROOT/taobin_project/image/event/halloween/halloween.png",
"video_eng": "ROOT/taobin_project/image/event/halloween/halloween_en.mp4",
"video_thai": "ROOT/taobin_project/image/event/halloween/halloween_th.mp4",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_halloween.xml"
}
},
{
"name": "jemila",
"template": "/event/promotion_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/jemila/jemila.png",
"normal_thai": "ROOT/taobin_project/image/event/jemila/jemila.png",
"press_eng": "ROOT/taobin_project/image/event/jemila/jemila.png",
"press_thai": "ROOT/taobin_project/image/event/jemila/jemila.png",
"disable_eng": "ROOT/taobin_project/image/event/jemila/jemila.png",
"disable_thai": "ROOT/taobin_project/image/event/jemila/jemila.png",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_jemila.xml"
}
}
]

View file

@ -1 +1 @@
/event/promotion_mom_cocoa.xml
/event/promotion_halloween.xml

File diff suppressed because it is too large Load diff

View file

@ -1,89 +1,81 @@
<EventActionOk>
If GettingDiscountStatus = 1 Then
If Ext1a = "ok" Then
Else
EndIf
Open "ROOT/taobin_project/xml/page_catalog_group_pro_mom_cocoa.xml"
EndIf
</EventActionOk>
<Button>
<X> 42 </X>
<Y> 518 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then
If SystemDateDayInt >= 13 Then
Var return = ###normal_eng + "13-16.png"
Else
Var return = ###normal_eng + "10-12.png"
EndIf
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
If SystemDateDayInt >= 13 Then
Var return = ###normal_thai + "13-16.png"
Else
Var return = ###normal_thai + "10-12.png"
EndIf
Var return = ###normal_thai
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
If SystemDateDayInt >= 13 Then
Var return = ###normal_eng + "13-16.png"
Else
Var return = ###normal_eng + "10-12.png"
EndIf
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
If SystemDateDayInt >= 13 Then
Var return = ###normal_thai + "13-16.png"
Else
Var return = ###normal_thai + "10-12.png"
EndIf
Var return = ###normal_thai
EndIf
)
</FilenamePress>
<FilenameDisable>
eval(
If show_eng = "true" Then
If SystemDateDayInt >= 13 Then
Var return = ###normal_eng + "13-16.png"
Else
Var return = ###normal_eng + "10-12.png"
EndIf
<FilenameDisable>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
If SystemDateDayInt >= 13 Then
Var return = ###normal_thai + "13-16.png"
Else
Var return = ###normal_thai + "10-12.png"
EndIf
Var return = ###normal_thai
EndIf
)
</FilenameDisable>
<EventOnClick>
If MomCocoaProDiscountEnable = 1 Then
If GettingDiscountStatus = 0 Then
Var GettingDiscountStatus = 1
Var AC = "1/0899999999"
GETACCEXT AC 38
EndIf
Else
Open "ROOT/taobin_project/xml/page_catalog_group_pro_mom_cocoa.xml"
EndIf
<EventOnClick>
Open "ROOT/taobin_project/xml/page_catalog_group_pro_halloween.xml"
</EventOnClick>
<Video>
<X> 42 </X>
<Y> 518 </Y>
<Width> 484 </Width>
<Height> 616 </Height>
<Loop> "true" </Loop>
<State>
eval(
If show_eng = "true" Then
Var return = "Invisible"
Else
Var return = "Enable"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image/event/halloween/halloween_th.mp4" </Filename>
</Video>
<Video>
<X> 42 </X>
<Y> 518 </Y>
<Width> 484 </Width>
<Height> 616 </Height>
<State>
eval(
If show_eng = "true" Then
Var return = "Enable"
Else
Var return = "Invisible"
EndIf
)
</State>
<Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/image/event/halloween/halloween_en.mp4" </Filename>
</Video>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>

View file

@ -4,9 +4,8 @@ DEBUGVAR PayOfflineMode
DEBUGVAR CocktailShow
DEBUGVAR OpenFromPageBoard
DEBUGVAR MomCocoaPro
DEBUGVAR RobinsonBeautyPro
DEBUGVAR JemilaPro
DEBUGVAR HallweenPro
Var PromotionState1 = "Invisible"
Var PromotionState2 = "Invisible"
@ -15,14 +14,14 @@ Var PromotionState3 = "Invisible"
If CocktailShow = "true" Then
If OpenFromPageBoard = 1 Then
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
Else
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
EndIf
Else
Var BigButtonEnable = "Enable"
Var CountEnablePromotion = 0
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
; zone promote
@ -31,13 +30,20 @@ Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_jemila.xml"
EndIf
If RobinsonBeautyPro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_robinson_beauty.xml"
Else
If MomCocoaPro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_mom_cocoa_ignore.xml"
EndIf
EndIf
If HalloweenPro = 1 Then
Var PromotionState1 = "Enable"
Var ProEnableCount = 1
If JemilaPro = 1 Then
Var PromotionState2 = "Enable"
Var ProEnableCount = ProEnableCount + 1
EndIf
If ProEnableCount > 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_halloween_and_jemila.xml"
Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_halloween.xml"
EndIf
EndIf
If OpenFromPageBoard = 1 Then
DEBUGVAR FreeEnergyDrink
@ -45,9 +51,9 @@ Else
OpenInst 2 FileRecommendToOpen
Var OpenFromPageBoard = 0
Else
Open FileRecommendToOpen
EndIf

View file

@ -129,11 +129,15 @@ Var Seeker.BuyMomCocoaProFlag = 0
Var RobinsonBeautyPro = 0
Var FromRobinsonBeautyPro = 0
; Enable Jemila promotion, 1 - 18 Oct
; Enable Jemila promotion, 1 - 25 Oct
Var JemilaPro = 0
Var FromJemilaPro = 0
Var JemilaRewardOutOfStock = 0
; Halloween promotion, 21 Oct - 3 Nov
Var HalloweenPro = 0
Var FromHalloweenPro = 0
Var NewCollectPoint = 1
Var PayMentCodeShouldCollectPromotionPoint = 0
Var NotCollectPointPromotion = 0
@ -205,9 +209,19 @@ If SystemDateMonthInt = 9 Then
EndIf
If SystemDateMonthInt = 10 Then
If SystemDateDayInt <= 18 Then
If SystemDateDayInt <= 25 Then
Var JemilaPro = 1
EndIf
If SystemDateDayInt >= 21 Then
Var HalloweenPro = 1
EndIf
EndIf
If SystemDateMonthInt = 11 Then
If SystemDateDayInt <= 3 Then
Var HalloweenPro = 1
EndIf
EndIf
@ -222,6 +236,7 @@ If BoxID = 105005 Then
Var MomCocoaProDiscountEnable = 0
Var RobinsonBeautyPro = 0
Var JemilaPro = 1
Var HalloweenPro = 1
EndIf
If BoxID = 172331 Then
@ -272,7 +287,6 @@ If BoxID = 173149 Then
Var RobinsonBeautyPro = 0
Var JemilaPro = 1
EndIf
DEBUGVAR JemilaPro
Var XMLLiveInfoEnable = 1
@ -349,6 +363,7 @@ If taobin_nopro = "true" Then
Var MomCocoaPro = 0
Var RobinsonBeautyPro = 0
Var JemilaPro = 0
Var HalloweenPro = 0
Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
@ -381,7 +396,11 @@ EndIf
If 7UpSyrupEnable = "true" Then
Else
Var 7UpLuckyDrawX2Pro = 0
If PepsiHighYSyrupEnable = "true" Then
Else
Var HalloweenPro = 0
EndIf
EndIf
If MintSyrupEnable = "true" Then
@ -410,6 +429,11 @@ DEBUGVAR JemilaRewardOutOfStock
Var New_Payment = 0
Var NewFlowPaymentCode = 0
If BoxID = 105005 Then
Var New_Payment = 1
Var NewFlowPaymentCode = 1
EndIf
If BoxID = 173149 Then
Var New_Payment = 1
Var NewFlowPaymentCode = 1
@ -462,3 +486,10 @@ If BoxID = 176757 Then
Var SaveOrderNameAndPictureEnable = 1
EndIf
; Check POS machine flag
Var ConnectWithPOSMachine = 0
READ_FILE "/mnt/sdcard/coffeevending/POS_MACHINE" POSMachineFlag
If POSMachineFlag = 1 Then
Var ConnectWithPOSMachine = 1
EndIf