add reward coupon show page

This commit is contained in:
Pakin 2023-09-28 11:45:32 +07:00
parent 7f90baacfa
commit cf14a8bc39
2 changed files with 67 additions and 3 deletions

View file

@ -10,9 +10,9 @@
Var isCoffinPress = "Enable"
; list of random items
Var dis30 = "Discount30"
Var dis50 = "Discount50"
Var dis100 = "Free1Drink"
Var dis30 = "dis30"
Var dis50 = "dis50"
Var dis100 = "dis100"
; rate 60%
Var couponList[0] = dis30
@ -163,6 +163,10 @@
DEBUGVAR randResult
DEBUGVAR couponList[randResult]
Var UserCouponReward = couponList[randResult]
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
</EventOnClick>
</Button>
@ -178,6 +182,10 @@
DEBUGVAR randResult
DEBUGVAR couponList[randResult]
Var UserCouponReward = couponList[randResult]
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
</EventOnClick>
</Button>
@ -193,6 +201,10 @@
DEBUGVAR randResult
DEBUGVAR couponList[randResult]
Var UserCouponReward = couponList[randResult]
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
</EventOnClick>
</Button>
@ -208,6 +220,10 @@
DEBUGVAR randResult
DEBUGVAR couponList[randResult]
Var UserCouponReward = couponList[randResult]
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
</EventOnClick>
</Button>
@ -223,6 +239,10 @@
DEBUGVAR randResult
DEBUGVAR couponList[randResult]
Var UserCouponReward = couponList[randResult]
Open "ROOT/taobin_project/xml/event/pepween/page_pepween_result.xml"
</EventOnClick>
</Button>

View 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>