update topping_select5 check recipeTag3 instead of ConfigNumber, update topping_select8 enable price

This commit is contained in:
kenta-work 2023-09-07 15:53:05 +07:00
parent 35fc0d30b5
commit 7b594b9ad0
2 changed files with 54 additions and 51 deletions

View file

@ -47,7 +47,7 @@
Var CHECK_EventOpen_Double = 0 Var CHECK_EventOpen_Double = 0
If ConfigNumer = 10564 Then If RecipeTag3 = "CoffeePlay" Then
Open "ROOT/taobin_project/xml/page_topping_select8.xml" Open "ROOT/taobin_project/xml/page_topping_select8.xml"
EndIf EndIf

View file

@ -177,11 +177,11 @@
Var CustomCoffeeTampingText[1] = "Medium" Var CustomCoffeeTampingText[1] = "Medium"
Var CustomCoffeeTampingText[2] = "Hight" Var CustomCoffeeTampingText[2] = "Hight"
;Var custom_coffee_level_medium_text_x = 662 Var custom_coffee_level_medium_text_x = 662
Var custom_coffee_level_medium_text_x = 682 ;Var custom_coffee_level_medium_text_x = 682
Var custom_coffee_level_medium_price_x = 723 Var custom_coffee_level_medium_price_x = 723
Var custom_coffee_level_dark_text_x = 915 Var custom_coffee_level_dark_text_x = 895
Else Else
Var DirImage = "ROOT/taobin_project/image/topping2" Var DirImage = "ROOT/taobin_project/image/topping2"
@ -209,10 +209,10 @@
Var CustomCoffeeTampingText[1] = "ปานกลาง" Var CustomCoffeeTampingText[1] = "ปานกลาง"
Var CustomCoffeeTampingText[2] = "เน้น" Var CustomCoffeeTampingText[2] = "เน้น"
Var custom_coffee_level_medium_text_x = 690 Var custom_coffee_level_medium_text_x = 680
Var custom_coffee_level_medium_price_x = 718 Var custom_coffee_level_medium_price_x = 718
Var custom_coffee_level_dark_text_x = 920 Var custom_coffee_level_dark_text_x = 905
EndIf EndIf
Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust
@ -603,10 +603,10 @@
Var CustomCoffeeTampingText[1] = "Medium" Var CustomCoffeeTampingText[1] = "Medium"
Var CustomCoffeeTampingText[2] = "Hight" Var CustomCoffeeTampingText[2] = "Hight"
Var custom_coffee_level_medium_text_x = 682 Var custom_coffee_level_medium_text_x = 662
Var custom_coffee_level_medium_price_x = 723 Var custom_coffee_level_medium_price_x = 723
Var custom_coffee_level_dark_text_x = 915 Var custom_coffee_level_dark_text_x = 895
Else Else
Var DirImage = "ROOT/taobin_project/image/topping2" Var DirImage = "ROOT/taobin_project/image/topping2"
@ -634,10 +634,10 @@
Var CustomCoffeeTampingText[1] = "ปานกลาง" Var CustomCoffeeTampingText[1] = "ปานกลาง"
Var CustomCoffeeTampingText[2] = "เน้น" Var CustomCoffeeTampingText[2] = "เน้น"
Var custom_coffee_level_medium_text_x = 690 Var custom_coffee_level_medium_text_x = 680
Var custom_coffee_level_medium_price_x = 718 Var custom_coffee_level_medium_price_x = 718
Var custom_coffee_level_dark_text_x = 920 Var custom_coffee_level_dark_text_x = 905
EndIf EndIf
@ -841,17 +841,20 @@
DEBUGVAR SubMenuProductCode3 DEBUGVAR SubMenuProductCode3
DEBUGVAR toppingID2price1
DEBUGVAR toppingID2price2 DEBUGVAR toppingID2price2
DEBUGVAR toppingID2price3
DEBUGVAR toppingID2price4
DEBUGVAR toppingID3price2 DEBUGVAR toppingID3price2
DEBUGVAR toppingID6price2 DEBUGVAR toppingID6price2
DEBUGVAR toppingID8index1price DEBUGVAR toppingID8price1
DEBUGVAR toppingID8index2price DEBUGVAR toppingID8price2
DEBUGVAR toppingID8index3price DEBUGVAR toppingID8price3
DEBUGVAR toppingID9index1price DEBUGVAR toppingID9price1
DEBUGVAR toppingID9index2price DEBUGVAR toppingID9price2
DEBUGVAR toppingID9index3price DEBUGVAR toppingID9price3
DEBUGVAR BrewParam DEBUGVAR BrewParam
@ -1017,29 +1020,29 @@
EndIf EndIf
; If toppingID2index1price > 0 Then If toppingID2price1 > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index1price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID2price1 , PriceCustomCoffeeFormat, PreScaleConvertShow)
; Var CustomCoffeeQuantityAdditionalPrice[0] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[0] = "(+" + priceFormated
; Var CustomCoffeeQuantityAdditionalPrice[0] = CustomCoffeeQuantityAdditionalPrice[0] + ")" Var CustomCoffeeQuantityAdditionalPrice[0] = CustomCoffeeQuantityAdditionalPrice[0] + ")"
; Else Else
; Var CustomCoffeeQuantityAdditionalPrice[0] = "" Var CustomCoffeeQuantityAdditionalPrice[0] = ""
; EndIf EndIf
;
; If toppingID2index3price > 0 Then If toppingID2price3 > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index3price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID2price3 , PriceCustomCoffeeFormat, PreScaleConvertShow)
; Var CustomCoffeeQuantityAdditionalPrice[1] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[1] = "(+" + priceFormated
; Var CustomCoffeeQuantityAdditionalPrice[1] = CustomCoffeeQuantityAdditionalPrice[1] + ")" Var CustomCoffeeQuantityAdditionalPrice[1] = CustomCoffeeQuantityAdditionalPrice[1] + ")"
; Else Else
; Var CustomCoffeeQuantityAdditionalPrice[1] = "" Var CustomCoffeeQuantityAdditionalPrice[1] = ""
; EndIf EndIf
;
; If toppingID2index4price > 0 Then If toppingID2price4 > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index4price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID2price4 , PriceCustomCoffeeFormat, PreScaleConvertShow)
; Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated
; Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")" Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")"
; Else Else
; Var CustomCoffeeQuantityAdditionalPrice[2] = "" Var CustomCoffeeQuantityAdditionalPrice[2] = ""
; EndIf EndIf
EndIf EndIf
EndIf EndIf
@ -1077,24 +1080,24 @@
EndIf EndIf
If toppingID9index1price > 0 Then If toppingID9price1 > 0 Then
Var priceFormated !assigned StringFmt( toppingID9index1price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID9price1 , PriceCustomCoffeeFormat, PreScaleConvertShow)
Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated
Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")" Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")"
Else Else
Var CustomCoffeeLevelAdditionalPrice[0] = "" Var CustomCoffeeLevelAdditionalPrice[0] = ""
EndIf EndIf
If toppingID9index2price > 0 Then If toppingID9price2 > 0 Then
Var priceFormated !assigned StringFmt( toppingID9index2price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID9price2 , PriceCustomCoffeeFormat, PreScaleConvertShow)
Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated
Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")" Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")"
Else Else
Var CustomCoffeeLevelAdditionalPrice[1] = "" Var CustomCoffeeLevelAdditionalPrice[1] = ""
EndIf EndIf
If toppingID9index3price > 0 Then If toppingID9price3 > 0 Then
Var priceFormated !assigned StringFmt( toppingID9index3price , PriceCustomCoffeeFormat, PreScaleConvertShow) Var priceFormated !assigned StringFmt( toppingID9price3 , PriceCustomCoffeeFormat, PreScaleConvertShow)
Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated
Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")" Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")"
Else Else
@ -5504,23 +5507,23 @@
If CustomCoffeeQuantityState[0] = "PressForever" Then If CustomCoffeeQuantityState[0] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index1price Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1
EndIf EndIf
If CustomCoffeeQuantityState[1] = "PressForever" Then If CustomCoffeeQuantityState[1] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index3price Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3
EndIf EndIf
If CustomCoffeeQuantityState[2] = "PressForever" Then If CustomCoffeeQuantityState[2] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index4price Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price4
EndIf EndIf
If CustomCoffeeLevelState[0] = "PressForever" Then If CustomCoffeeLevelState[0] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID9index1price Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price1
EndIf EndIf
If CustomCoffeeLevelState[1] = "PressForever" Then If CustomCoffeeLevelState[1] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID9index2price Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price2
EndIf EndIf
If CustomCoffeeLevelState[2] = "PressForever" Then If CustomCoffeeLevelState[2] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID9index3price Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price3
EndIf EndIf
EndIf EndIf