add coupon error page
This commit is contained in:
parent
72254b4e61
commit
0a4df269cf
7 changed files with 160 additions and 2 deletions
BIN
image/event/pepween/error/text_failed_coupon.png
Normal file
BIN
image/event/pepween/error/text_failed_coupon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
BIN
image/event/pepween/error/text_failed_network_disrupt.png
Normal file
BIN
image/event/pepween/error/text_failed_network_disrupt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
image/event/pepween/error_en/text_failed_coupon.png
Normal file
BIN
image/event/pepween/error_en/text_failed_coupon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.1 KiB |
BIN
image/event/pepween/error_en/text_failed_network_disrupt.png
Normal file
BIN
image/event/pepween/error_en/text_failed_network_disrupt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
107
xml/event/pepween/page_pepween_error.xml
Normal file
107
xml/event/pepween/page_pepween_error.xml
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
<Volume> SoundVolume </Volume>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
DEBUGVAR Timeout
|
||||
</EventOpen>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<Width> 1080</Width>
|
||||
<Height> 380 </Height>
|
||||
<Loop> "true" </Loop>
|
||||
<Filename> video_menu_0 </Filename>
|
||||
</Video>
|
||||
|
||||
; Show error
|
||||
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1540 </Height>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepween/page_offline_bg.png" </Filename>
|
||||
</Image>
|
||||
|
||||
; Broken Coffin
|
||||
<Image>
|
||||
<X> 264 </X>
|
||||
<Y> 724 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepween/page_offline_brokencoff.png" </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
; Text top thai
|
||||
<Image>
|
||||
<X> 165 </X>
|
||||
<Y> 622 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepween/error/text_failed_coupon.png" </Filename>
|
||||
<Width> 776 </Width>
|
||||
<Height> 96 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Invisible"
|
||||
Else
|
||||
Var return = "Enable"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
</Image>
|
||||
|
||||
; Text top eng
|
||||
<Image>
|
||||
<X> 68 </X>
|
||||
<Y> 626 </Y>
|
||||
<Filename> "ROOT/taobin_project/image/event/pepween/error_en/text_failed_coupon.png" </Filename>
|
||||
<Width> 921 </Width>
|
||||
<Height> 75 </Height>
|
||||
<State>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "Enable"
|
||||
Else
|
||||
Var return = "Invisible"
|
||||
EndIf
|
||||
)
|
||||
</State>
|
||||
</Image>
|
||||
|
||||
|
||||
<Image>
|
||||
<X> 25 </X>
|
||||
<Y> 1535 </Y>
|
||||
<Filename> eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pepween/error_en/text_failed_network_disrupt.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pepween/error/text_failed_network_disrupt.png"
|
||||
EndIf
|
||||
) </Filename>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 156 </Height>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 424 </X>
|
||||
<Y> 1710 </Y>
|
||||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/pepween/error_en/bn_confirm.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/pepween/error/bn_confirm.png"
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<EventOnClick>
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
</Popup>
|
||||
|
|
@ -166,6 +166,8 @@
|
|||
|
||||
Var UserCouponReward = couponList[randResult]
|
||||
|
||||
; Send to server
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
|
@ -185,6 +187,8 @@
|
|||
|
||||
Var UserCouponReward = couponList[randResult]
|
||||
|
||||
; Send to server
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
|
@ -204,6 +208,8 @@
|
|||
|
||||
Var UserCouponReward = couponList[randResult]
|
||||
|
||||
; Send to server
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
|
@ -223,6 +229,8 @@
|
|||
|
||||
Var UserCouponReward = couponList[randResult]
|
||||
|
||||
; Send to server
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
|
@ -242,6 +250,8 @@
|
|||
|
||||
Var UserCouponReward = couponList[randResult]
|
||||
|
||||
; Send to server
|
||||
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||
</EventOnClick>
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
;<Background> "0xeae6e1" </Background>
|
||||
|
||||
<EventOpen>
|
||||
Var Timeout = 0
|
||||
Var ServerRespond = 0
|
||||
|
||||
Var RewardDisplayDir = "ROOT/taobin_project/image/event/pepween/"
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
|
@ -22,6 +25,40 @@
|
|||
Var isCoffinPress = "Disable"
|
||||
</EventOpen>
|
||||
|
||||
<Timeout> 1000 </Timeout>
|
||||
<EventTimeout>
|
||||
DEBUGVAR Timeout
|
||||
|
||||
If PayOfflineMode = 1 Then
|
||||
Var ServerRespond = 0
|
||||
Var CouponResponeFailed = 1
|
||||
EndIf
|
||||
|
||||
If Timeout > 60 Then
|
||||
; Check and return Error
|
||||
Var CouponResponeFailed = 1
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
|
||||
EndIf
|
||||
|
||||
Var Timeout = Timeout + 1
|
||||
TimerReset
|
||||
</EventTimeout>
|
||||
|
||||
<EventActionOk>
|
||||
If CouponResponeFailed = 0 Then
|
||||
; TODO:
|
||||
;Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
|
||||
EndIf
|
||||
|
||||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
; TODO: open coupon send error page
|
||||
If CouponResponeFailed = 1 Then
|
||||
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_error.xml"
|
||||
EndIf
|
||||
</EventActionError>
|
||||
|
||||
<Video>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
|
|
@ -32,13 +69,17 @@
|
|||
</Video>
|
||||
|
||||
;
|
||||
<Button>
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1540 </Height>
|
||||
<Filename> RewardDisplay </Filename>
|
||||
</Button>
|
||||
</Image>
|
||||
|
||||
|
||||
<EventUnitTest1>
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
</EventUnitTest1>
|
||||
|
||||
</Popup>
|
||||
Loading…
Add table
Add a link
Reference in a new issue