THAI: pro free energy: new imgs, WIP add data
This commit is contained in:
parent
5edecc1655
commit
ffa66d033e
10 changed files with 108 additions and 34 deletions
|
|
@ -1,6 +1,6 @@
|
|||
normal_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
normal_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
press_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
press_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
disable_eng=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
disable_thai=ROOT/taobin_project/image/event/pepsi_second_cup_30/pro_pepsi_second_cup_30.png
|
||||
normal_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
|
||||
normal_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png
|
||||
press_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
|
||||
press_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png
|
||||
disable_eng=ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png
|
||||
disable_thai=ROOT/taobin_project/image/event/powerup_free_1/powerup.png
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 258 KiB |
BIN
image/event/powerup_free_1/powerup_en.png
Normal file
BIN
image/event/powerup_free_1/powerup_en.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 256 KiB |
BIN
inter/mys/image/event/mys_promo_fruity_raya.png
Normal file
BIN
inter/mys/image/event/mys_promo_fruity_raya.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 243 KiB |
|
|
@ -1,5 +1,3 @@
|
|||
; TODO: like y20, but without age check instead check usage of that id.
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
Var FailTrickCount = 0
|
||||
|
||||
Var FailState = "Invisible"
|
||||
Var FullQuotaState = "Invisible"
|
||||
|
||||
Var StepGetServer = 0
|
||||
|
||||
|
|
@ -86,6 +87,25 @@
|
|||
|
||||
DEBUGVAR Ext1a
|
||||
|
||||
; example
|
||||
|
||||
If StepGetServer = 1 Then
|
||||
|
||||
If Ext1a = "0" Then
|
||||
If LegitAge = "true" Then
|
||||
Var RoadShow = "true"
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
Else
|
||||
Var load_gif_stage = "Invisible"
|
||||
Var FailState = "Enable"
|
||||
EndIf
|
||||
Refresh
|
||||
Else
|
||||
Var FullQuotaState = "Enable"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
; If StepGetServer = 1 Then
|
||||
|
||||
; If Ext1a = "ok" Then
|
||||
|
|
@ -117,6 +137,11 @@
|
|||
</EventActionOk>
|
||||
|
||||
<EventActionError>
|
||||
|
||||
; handle quota full
|
||||
; response smth
|
||||
Var FullQuotaState = "Enable"
|
||||
|
||||
</EventActionError>
|
||||
|
||||
|
||||
|
|
@ -222,9 +247,12 @@
|
|||
|
||||
If AgeNumber >= 18 Then
|
||||
; TODO: check quota --- AddData; Wait for new add num
|
||||
|
||||
Var LegitAge = "true"
|
||||
|
||||
; Then enable RoadShow
|
||||
Var RoadShow = "true"
|
||||
Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
;Var RoadShow = "true"
|
||||
;Open "ROOT/taobin_project/xml/page_payment.xml"
|
||||
EndIf
|
||||
|
||||
|
||||
|
|
@ -356,6 +384,7 @@ eval(
|
|||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var RoadShow = ""
|
||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
|
@ -370,6 +399,7 @@ eval(
|
|||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var RoadShow = ""
|
||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
|
@ -424,7 +454,41 @@ eval(
|
|||
</Button>
|
||||
|
||||
|
||||
; Full Quota
|
||||
<Image>
|
||||
<X> 0 </X>
|
||||
<Y> 380 </Y>
|
||||
<State> FullQuotaState </State>
|
||||
<Filename> "ROOT/taobin_project/image/page_payment/alpha.png" </Filename>
|
||||
</Image>
|
||||
|
||||
<Image>
|
||||
<X> 249 </X>
|
||||
<Y> 751 </Y>
|
||||
<State> FullQuotaState </State>
|
||||
<Filename> eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_quota_full_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_quota_full.png"
|
||||
EndIf
|
||||
) </Filename>
|
||||
</Image>
|
||||
|
||||
<Button>
|
||||
<X> 350 </X>
|
||||
<Y> 1370 </Y>
|
||||
<State>FullQuotaState</State>
|
||||
<Filename> Var( DirImage + "/bn_cancel_all.png" )</Filename>
|
||||
<FilenamePress> Var( DirImage + "/bp_cancel_all.png" ) </FilenamePress>
|
||||
<FilenameDisable> Var( DirImage + "/bp_cancel_all.png" ) </FilenameDisable>
|
||||
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
Var RoadShow = ""
|
||||
Open "ROOT/taobin_project/xml/page_catalog2.xml"
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
<GIF>
|
||||
<X> 440 </X>
|
||||
|
|
@ -448,7 +512,7 @@ eval(
|
|||
EventEvaluate "EventIDCard"
|
||||
</EventUnitTest2>
|
||||
<EventUnitTest3>
|
||||
Var FailState = "Enable"
|
||||
Var FullQuotaState = "Enable"
|
||||
</EventUnitTest3>
|
||||
|
||||
<EventUnitTest4>
|
||||
|
|
|
|||
|
|
@ -11327,7 +11327,7 @@ LIMENADE SODA" </Value>
|
|||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
EndIf
|
||||
|
|
@ -11336,7 +11336,7 @@ LIMENADE SODA" </Value>
|
|||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
EndIf
|
||||
|
|
@ -11345,7 +11345,7 @@ LIMENADE SODA" </Value>
|
|||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup_en.png"
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<Button>
|
||||
<X> 42 </X>
|
||||
<Y> 520 </Y>
|
||||
|
|
@ -7,27 +6,27 @@
|
|||
<Filename>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</Filename>
|
||||
<FilenamePress>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenamePress>
|
||||
<FilenameDisable>
|
||||
eval(
|
||||
If show_eng = "true" Then
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_eng
|
||||
Else
|
||||
Var return = "ROOT/taobin_project/image/event/powerup_free_1/powerup.png"
|
||||
Var return = ###normal_thai
|
||||
EndIf
|
||||
)
|
||||
</FilenameDisable>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,11 @@ Else
|
|||
If OpenFromPageBoard = 1 Then
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
DEBUGVAR BigButtonEnable
|
||||
|
||||
; check profile to enable free energy drink promotion
|
||||
STRCONTAIN "ProEnergyDrinkFreePerCardID" XMLProfile EnableFreeEnergyDrink
|
||||
|
||||
If EnableFreeEnergyDrink = "true" Then
|
||||
If FreeEnergyDrink = 1 Then
|
||||
Var FreePowerup = "Enable"
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
|
@ -29,6 +34,10 @@ Else
|
|||
Var FreePowerup = "Invisible"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
Else
|
||||
Var FreePowerup = "Invisible"
|
||||
OpenInst 2 "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
|
||||
EndIf
|
||||
Else
|
||||
DEBUGVAR FreeEnergyDrink
|
||||
If FreeEnergyDrink = 1 Then
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@
|
|||
Var LastMakeDrinkResult = "-"
|
||||
EndIf
|
||||
|
||||
If FreeEnergyDrink = 1 Then
|
||||
; reset
|
||||
Var RoadShow = ""
|
||||
EndIf
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var ImageDoing = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
||||
|
|
@ -283,6 +278,15 @@
|
|||
Var ShowCountDownBrewing = CountDownBrewing
|
||||
|
||||
If RoadShow = "true" Then
|
||||
|
||||
If FreeEnergyDrink = 1 Then
|
||||
; reset
|
||||
Var RoadShow = ""
|
||||
; AddData
|
||||
|
||||
; +1 in quota in this id card
|
||||
AddData <ID> <user-id> <menu?>
|
||||
EndIf
|
||||
Open "ROOT/taobin_project/xml/page_lid_straw.xml"
|
||||
Else
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue