THAI: Added Halloween promotion
This commit is contained in:
parent
8f878da088
commit
c90edea31e
172 changed files with 30448 additions and 493 deletions
80
xml/event/halloween/check_quota.xml
Normal file
80
xml/event/halloween/check_quota.xml
Normal 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>
|
||||
416
xml/event/halloween/game.xml
Normal file
416
xml/event/halloween/game.xml
Normal 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>
|
||||
81
xml/event/halloween/page_get_reward.xml
Normal file
81
xml/event/halloween/page_get_reward.xml
Normal 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>
|
||||
91
xml/event/halloween/page_starting_game.xml
Normal file
91
xml/event/halloween/page_starting_game.xml
Normal 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>
|
||||
98
xml/event/halloween/page_try_again.xml
Normal file
98
xml/event/halloween/page_try_again.xml
Normal 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>
|
||||
41
xml/event/halloween/thank_you.xml
Normal file
41
xml/event/halloween/thank_you.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue