MYS: fix coconut text & add promotion free topping oreo

This commit is contained in:
Pakin 2024-08-02 13:40:58 +07:00
parent 87de5ee4ec
commit 4a989506e0
14 changed files with 96 additions and 25 deletions

View file

@ -106,6 +106,10 @@
Var topping_shot_price_x = 630
Var text_x_add_oreo_price = 510
Var text_show_normal_x = 408
Var text_x_free_adjust = 100
If PromotionOreoToppingFreeEnable = 1 Then
Var text_x_free_adjust = text_x_free_adjust + 5
EndIf
Else
Var DirImage = "ROOT/taobin_project/image/topping2"
@ -120,9 +124,15 @@
Var topping_shot_price_x = 600
Var text_x_add_oreo_price = 490
Var text_show_normal_x = 386
Var text_x_free_adjust = 70
If PromotionOreoToppingFreeEnable = 1 Then
Var text_x_free_adjust = text_x_free_adjust + 30
EndIf
EndIf
Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust
Var bg_strawlid = DirImage + "/bg_strawlid.png"
Var bg_straw_only = DirImage + "/bg_straw_only.png"
Var bg_lid_only = DirImage + "/bg_lid_only.png"
@ -311,6 +321,22 @@
Var text_milk_choice_price_x = 265
DEBUGVAR PromotionOreoToppingFreeEnable
If PromotionOreoToppingFreeEnable = 1 Then
Var toppingID6price2 = 0
Var text_price_6 = "(Free)"
EndIf
DEBUGVAR toppingID6price2
DEBUGVAR text_price_6
If show_eng = "true" Then
Var CerealMilkX = 400
Else
Var CerealMilkX = 270
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -397,6 +423,10 @@
Var topping_shot_price_x = 630
Var text_x_add_oreo_price = 510
Var text_show_normal_x = 408
Var text_x_free_adjust = 100
If PromotionOreoToppingFreeEnable = 0 Then
Var text_x_free_adjust = text_x_free_adjust + 5
EndIf
Else
Var DirImage = "ROOT/taobin_project/image/topping2"
@ -411,9 +441,16 @@
Var topping_shot_price_x = 600
Var text_x_add_oreo_price = 490
Var text_show_normal_x = 386
Var text_x_free_adjust = 70
If PromotionOreoToppingFreeEnable = 0 Then
Var text_x_free_adjust = text_x_free_adjust + 30
EndIf
EndIf
Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust
Var backGroundAddExtra = DirImage + "/bg_add_shot_coffee_only.png"
Var backGroundAddExtra2 = DirImage + "/bg_add_shot_coffee_only.png"
@ -600,6 +637,11 @@
If TOPPING6 = "Topping-Volcano" Then
If PromotionOreoToppingFreeEnable = 1 Then
Var toppingID6price2 = 0
Var text_price_6 = "(Free)"
EndIf
If toppingID6price2 > 0 Then
DEBUGVAR toppingID6price2
@ -620,6 +662,10 @@
Else
Var text_price_6 = ""
If PromotionOreoToppingFreeEnable = 1 Then
Var text_price_6 = "(Free)"
EndIf
EndIf
If blend_button_state = "PressForever" Then
@ -691,11 +737,18 @@
STRCONTAIN "12-04" UserSelectProductCode IsWheyMenu
STRCONTAIN "12-24" UserSelectProductCode IsWheyV2Menu
If IsWheyMenu = "true" Then
Var showOreoAddEnable = "Enable"
Var showText8 = "Invisible"
EndIf
If IsWheyV2Menu = "true" Then
Var showOreoAddEnable = "Enable"
Var showText8 = "Invisible"
EndIf
STRCONTAIN "9701" BrewParam IgnoreLidStraw
DEBUGVAR BrewParam