add reward coupon show page
This commit is contained in:
parent
7f90baacfa
commit
cf14a8bc39
2 changed files with 67 additions and 3 deletions
|
|
@ -10,9 +10,9 @@
|
||||||
Var isCoffinPress = "Enable"
|
Var isCoffinPress = "Enable"
|
||||||
|
|
||||||
; list of random items
|
; list of random items
|
||||||
Var dis30 = "Discount30"
|
Var dis30 = "dis30"
|
||||||
Var dis50 = "Discount50"
|
Var dis50 = "dis50"
|
||||||
Var dis100 = "Free1Drink"
|
Var dis100 = "dis100"
|
||||||
|
|
||||||
; rate 60%
|
; rate 60%
|
||||||
Var couponList[0] = dis30
|
Var couponList[0] = dis30
|
||||||
|
|
@ -163,6 +163,10 @@
|
||||||
|
|
||||||
DEBUGVAR randResult
|
DEBUGVAR randResult
|
||||||
DEBUGVAR couponList[randResult]
|
DEBUGVAR couponList[randResult]
|
||||||
|
|
||||||
|
Var UserCouponReward = couponList[randResult]
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -178,6 +182,10 @@
|
||||||
|
|
||||||
DEBUGVAR randResult
|
DEBUGVAR randResult
|
||||||
DEBUGVAR couponList[randResult]
|
DEBUGVAR couponList[randResult]
|
||||||
|
|
||||||
|
Var UserCouponReward = couponList[randResult]
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -193,6 +201,10 @@
|
||||||
|
|
||||||
DEBUGVAR randResult
|
DEBUGVAR randResult
|
||||||
DEBUGVAR couponList[randResult]
|
DEBUGVAR couponList[randResult]
|
||||||
|
|
||||||
|
Var UserCouponReward = couponList[randResult]
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -208,6 +220,10 @@
|
||||||
|
|
||||||
DEBUGVAR randResult
|
DEBUGVAR randResult
|
||||||
DEBUGVAR couponList[randResult]
|
DEBUGVAR couponList[randResult]
|
||||||
|
|
||||||
|
Var UserCouponReward = couponList[randResult]
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
@ -223,6 +239,10 @@
|
||||||
|
|
||||||
DEBUGVAR randResult
|
DEBUGVAR randResult
|
||||||
DEBUGVAR couponList[randResult]
|
DEBUGVAR couponList[randResult]
|
||||||
|
|
||||||
|
Var UserCouponReward = couponList[randResult]
|
||||||
|
|
||||||
|
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
|
||||||
</EventOnClick>
|
</EventOnClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
|
||||||
44
xml/event/pepween/page_pepween_result.xml
Normal file
44
xml/event/pepween/page_pepween_result.xml
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
<Popup>
|
||||||
|
<Cache> "Enable" </Cache>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1920 </Height>
|
||||||
|
<Volume> SoundVolume </Volume>
|
||||||
|
;<Background> "0xeae6e1" </Background>
|
||||||
|
|
||||||
|
<EventOpen>
|
||||||
|
Var RewardDisplayDir = "ROOT/taobin_project/image/event/pepween/"
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Var RewardDisplay = UserCouponReward + "_en.png"
|
||||||
|
Else
|
||||||
|
Var RewardDisplay = UserCouponReward + "_th.png"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
DEBUGVAR UserCouponReward
|
||||||
|
DEBUGVAR RewardDisplay
|
||||||
|
|
||||||
|
Var RewardDisplay = RewardDisplayDir + RewardDisplay
|
||||||
|
DEBUGVAR RewardDisplay
|
||||||
|
Var isCoffinPress = "Disable"
|
||||||
|
</EventOpen>
|
||||||
|
|
||||||
|
<Video>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 0 </Y>
|
||||||
|
<Width> 1080</Width>
|
||||||
|
<Height> 380 </Height>
|
||||||
|
<Loop> "true" </Loop>
|
||||||
|
<Filename> video_menu_0 </Filename>
|
||||||
|
</Video>
|
||||||
|
|
||||||
|
;
|
||||||
|
<Button>
|
||||||
|
<X> 0 </X>
|
||||||
|
<Y> 380 </Y>
|
||||||
|
<Width> 1080 </Width>
|
||||||
|
<Height> 1540 </Height>
|
||||||
|
<Filename> RewardDisplay </Filename>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
|
</Popup>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue