98 lines
No EOL
2.5 KiB
XML
98 lines
No EOL
2.5 KiB
XML
<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> |