From cfea8f828d5073e4f6a8681318b27f23b5f3de1c Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Fri, 14 Jun 2024 17:34:11 +0700 Subject: [PATCH] AUS: add custom coffee --- inter/aus/xml/page_topping_select6.lxml | 1230 ++++++++++++++++++++++- 1 file changed, 1229 insertions(+), 1 deletion(-) diff --git a/inter/aus/xml/page_topping_select6.lxml b/inter/aus/xml/page_topping_select6.lxml index 4640f1d1..7134ca75 100644 --- a/inter/aus/xml/page_topping_select6.lxml +++ b/inter/aus/xml/page_topping_select6.lxml @@ -68,6 +68,54 @@ Var ShotCoffeePremium = "Invisible" Var showOreoAddEnable = "Invisible" + Var showCustomCoffee = "Invisible" + +; Customer Coffee + + Var CustomCoffeeEnable = "False" + Var EnableLightRoast = "Disable" + + Var showCoffeeWater = "Invisible" + Var showCoffeeQuantity = "Invisible" + Var showCoffeeLevel = "Invisible" + Var showCoffeeTamping = "Invisible" + + ; States + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "Enable" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "Enable" + + Var CustomCoffeeQuantityState[0] = "Enable" + Var CustomCoffeeQuantityState[1] = "Enable" + Var CustomCoffeeQuantityState[2] = "Enable" + + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "Enable" + + Var CustomCoffeeTampingState[0] = "Enable" + Var CustomCoffeeTampingState[1] = "Enable" + Var CustomCoffeeTampingState[2] = "Enable" + + ; Texts + Var CustomCoffeeTextY = 47 + Var custom_coffee_offset_text_x = 0 + + + Var CustomCoffeeWaterText[0] = "20ml" + Var CustomCoffeeWaterText[1] = "30ml" + Var CustomCoffeeWaterText[2] = "40ml" + Var CustomCoffeeWaterText[3] = "50ml" + Var CustomCoffeeWaterText[4] = "60ml" + + Var CustomCoffeeQuantityText[0] = "10g" + Var CustomCoffeeQuantityText[1] = "13g" + Var CustomCoffeeQuantityText[2] = "16g" + +; End Customer Coffee ; Sugar Zero Cal ; Test Sugar Zero Cal @@ -113,6 +161,23 @@ Var text_x_add_oreo_price = 510 Var text_show_normal_x = 408 Var SugarZeroCalPrice_X = 540 + + Var CustomCoffeeLevelText[0] = "Medium" + Var CustomCoffeeLevelText[1] = "Just Right" + Var CustomCoffeeLevelText[2] = "Dark" + Var CustomCoffeeLevelText[3] = "Darker" + + Var CustomCoffeeTampingText[0] = "Light" + Var CustomCoffeeTampingText[1] = "Medium" + Var CustomCoffeeTampingText[2] = "Hight" + + Var custom_coffee_level_medium_text_x = 540 + Var custom_coffee_level_medium_price_x = 600 + + Var custom_coffee_level_darker_text_x = 880 + Var custom_coffee_level_dark_text_x = 785 + + Else Var DirImage = "ROOT/taobin_project/image/topping2" @@ -128,6 +193,21 @@ Var text_x_add_oreo_price = 490 Var text_show_normal_x = 386 Var SugarZeroCalPrice_X = 482 + + Var CustomCoffeeLevelText[0] = "กลาง" + Var CustomCoffeeLevelText[1] = "กำลังพอดี" + Var CustomCoffeeLevelText[2] = "เข้ม" + Var CustomCoffeeLevelText[3] = "เข้มกว่า" + + Var CustomCoffeeTampingText[0] = "เบา" + Var CustomCoffeeTampingText[1] = "ปานกลาง" + Var CustomCoffeeTampingText[2] = "เน้น" + + Var custom_coffee_level_medium_text_x = 560 + Var custom_coffee_level_medium_price_x = 600 + + Var custom_coffee_level_darker_text_x = 880 + Var custom_coffee_level_dark_text_x = 790 EndIf @@ -571,6 +651,11 @@ DEBUGVAR TOPPING4 DEBUGVAR TOPPING5 DEBUGVAR TOPPING6 + DEBUGVAR TOPPING7 + DEBUGVAR TOPPING8 + DEBUGVAR TOPPING9 + DEBUGVAR TOPPING10 + DEBUGVAR toppingID1index1 DEBUGVAR toppingID1index2 DEBUGVAR toppingID1index3 @@ -586,12 +671,36 @@ DEBUGVAR toppingID2index3 DEBUGVAR toppingID2index4 DEBUGVAR toppingID2index5 + + DEBUGVAR toppingID6index1 + DEBUGVAR toppingID6index2 + DEBUGVAR toppingID6index3 + DEBUGVAR toppingID6index4 + DEBUGVAR toppingID6index5 + + DEBUGVAR toppingID7index1 + DEBUGVAR toppingID7index2 + DEBUGVAR toppingID7index3 + DEBUGVAR toppingID7index4 + DEBUGVAR toppingID7index5 + + DEBUGVAR toppingID8index1 + DEBUGVAR toppingID8index2 + DEBUGVAR toppingID8index3 + + DEBUGVAR toppingID9index1 + DEBUGVAR toppingID9index2 + DEBUGVAR toppingID9index3 + DEBUGVAR toppingID9index4 + DEBUGVAR toppingID10index1 + DEBUGVAR toppingID10index2 + DEBUGVAR toppingID10index3 + DEBUGVAR toppingID1Default DEBUGVAR toppingID2Default DEBUGVAR toppingID3Default - DEBUGVAR MenuCodeName1 DEBUGVAR MenuCodeName1_State DEBUGVAR MenuCodeName2 @@ -668,6 +777,260 @@ Var normal_button_state = "PressForever" EndIf + Var PriceCustomCoffeeFormat = "%.0f฿" + + + If TOPPING7 = "water-level" Then + Var CustomCoffeeEnable = "True" + Var showCustomCoffee = "Enable" + Var showCoffeeWater = "Enable" + + If toppingID7Default = "" Then + Var CustomCoffeeWaterState[0] = "PressForever" + Else + + If toppingID7index1 = toppingID7Default Then + Var CurrentCoffeeWaterId = toppingID7index1 + Var CustomCoffeeWaterState[0] = "PressForever" + Var CustomCoffeeWaterState[1] = "Enable" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "Enable" + EndIf + + If toppingID7index2 = toppingID7Default Then + Var CurrentCoffeeWaterId = toppingID7index2 + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "PressForever" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "Enable" + EndIf + + If toppingID7index3 = toppingID7Default Then + Var CurrentCoffeeWaterId = toppingID7index3 + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "Enable" + Var CustomCoffeeWaterState[2] = "PressForever" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "Enable" + EndIf + + If toppingID7index4 = toppingID7Default Then + Var CurrentCoffeeWaterId = toppingID7index4 + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "Enable" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "PressForever" + Var CustomCoffeeWaterState[4] = "Enable" + EndIf + + If toppingID7index5 = toppingID7Default Then + Var CurrentCoffeeWaterId = toppingID7index5 + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "Enable" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "PressForever" + EndIf + + EndIf + EndIf + + If TOPPING9 = "single-shot-espv2" Then + Var CustomCoffeeEnable = "True" + Var showCustomCoffee = "Enable" + var showCoffeeLevel = "Enable" + + If toppingID9Default = "" Then + Var CustomCoffeeLevelState[1] = "PressForever" + Else + + If toppingID9index1 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index1 + Var CustomCoffeeLevelState[0] = "PressForever" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "Enable" + + EndIf + + If toppingID9index2 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index2 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "PressForever" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "Enable" + EndIf + + If toppingID9index3 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index3 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "PressForever" + Var CustomCoffeeLevelState[3] = "Enable" + EndIf + + If toppingID9index4 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index4 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "PressForever" + EndIf + + EndIf + + + If toppingID9price1 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price1 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[0] = "" + EndIf + + If toppingID9price2 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price2 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[1] = "" + EndIf + + If toppingID9price3 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price3 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[2] = "" + EndIf + + If toppingID9price4 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price4 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[3] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[3] = CustomCoffeeLevelAdditionalPrice[3] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[3] = "" + EndIf + + EndIf + + If TOPPING9 = "double-shot-espv2" Then + Var CustomCoffeeEnable = "True" + Var showCustomCoffee = "Enable" + var showCoffeeLevel = "Enable" + + If toppingID9Default = "" Then + Var CustomCoffeeLevelState[1] = "PressForever" + Else + + If toppingID9index1 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index1 + Var CustomCoffeeLevelState[0] = "PressForever" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "Enable" + + EndIf + + If toppingID9index2 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index2 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "PressForever" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "Enable" + EndIf + + If toppingID9index3 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index3 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "PressForever" + Var CustomCoffeeLevelState[3] = "Enable" + EndIf + + If toppingID9index4 = toppingID9Default Then + Var CurrentCoffeeLevelId = toppingID9index4 + Var CustomCoffeeLevelState[0] = "Enable" + Var CustomCoffeeLevelState[1] = "Enable" + Var CustomCoffeeLevelState[2] = "Enable" + Var CustomCoffeeLevelState[3] = "PressForever" + EndIf + + EndIf + + + If toppingID9price1 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price1 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[0] = "" + EndIf + + If toppingID9price2 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price2 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[1] = "" + EndIf + + If toppingID9price3 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price3 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[2] = "" + EndIf + + If toppingID9price4 > 0 Then + Var priceFormated !assigned StringFmt( toppingID9price4 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeLevelAdditionalPrice[3] = "(+" + priceFormated + Var CustomCoffeeLevelAdditionalPrice[3] = CustomCoffeeLevelAdditionalPrice[3] + ")" + Else + Var CustomCoffeeLevelAdditionalPrice[3] = "" + EndIf + + EndIf + + + If TOPPING8 = "tampping-espv2" Then + SAVELOG " tampping-espv2 enable" + Var CustomCoffeeEnable = "True" + Var showCustomCoffee = "Enable" + var showCoffeeTamping = "Enable" + + If toppingID8Default = "" Then + Var CustomCoffeeTampingState[1] = "PressForever" + Else + + If toppingID8index1 = toppingID8Default Then + Var CurrentCoffeeTampingId = toppingID8index1 + Var CustomCoffeeTampingState[0] = "PressForever" + Var CustomCoffeeTampingState[1] = "Enable" + Var CustomCoffeeTampingState[2] = "Enable" + + EndIf + + If toppingID8index2 = toppingID8Default Then + Var CurrentCoffeeTampingId = toppingID8index2 + Var CustomCoffeeTampingState[0] = "Enable" + Var CustomCoffeeTampingState[1] = "PressForever" + Var CustomCoffeeTampingState[2] = "Enable" + EndIf + + If toppingID8index3 = toppingID8Default Then + Var CurrentCoffeeTampingId = toppingID8index3 + Var CustomCoffeeTampingState[0] = "Enable" + Var CustomCoffeeTampingState[1] = "Enable" + Var CustomCoffeeTampingState[2] = "PressForever" + EndIf + + EndIf + EndIf + ; i f Hot menu disable away If hot_button_state = "PressForever" Then If showOreoAddEnable = "Enable" Then @@ -1358,6 +1721,65 @@ EndIf + If EnableLightRoast = "Enable" Then + Var CustomCoffeeEnable = "True" + Var showCustomCoffee = "Enable" + var showCoffeeQuantity = "Enable" + + If toppingID2Default = "" Then + Var CustomCoffeeQuantityState[1] = "PressForever" + Else + + If toppingID2index1 = toppingID2Default Then + Var CurrentCoffeeLevelId = toppingID2index1 + Var CustomCoffeeQuantityState[0] = "PressForever" + Var CustomCoffeeQuantityState[1] = "Enable" + Var CustomCoffeeQuantityState[2] = "Enable" + + EndIf + + If toppingID2index2 = toppingID2Default Then + Var CurrentCoffeeLevelId = toppingID2index2 + Var CustomCoffeeQuantityState[0] = "Enable" + Var CustomCoffeeQuantityState[1] = "PressForever" + Var CustomCoffeeQuantityState[2] = "Enable" + EndIf + + If toppingID2index3 = toppingID2Default Then + Var CurrentCoffeeLevelId = toppingID2index3 + Var CustomCoffeeQuantityState[0] = "Enable" + Var CustomCoffeeQuantityState[1] = "Enable" + Var CustomCoffeeQuantityState[2] = "PressForever" + EndIf + + EndIf + + + If toppingID2price1 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price1 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeQuantityAdditionalPrice[0] = "(+" + priceFormated + Var CustomCoffeeQuantityAdditionalPrice[0] = CustomCoffeeQuantityAdditionalPrice[0] + ")" + Else + Var CustomCoffeeQuantityAdditionalPrice[0] = "" + EndIf + + If toppingID2price2 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price2 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeQuantityAdditionalPrice[1] = "(+" + priceFormated + Var CustomCoffeeQuantityAdditionalPrice[1] = CustomCoffeeQuantityAdditionalPrice[1] + ")" + Else + Var CustomCoffeeQuantityAdditionalPrice[1] = "" + EndIf + + If toppingID2price3 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price3 , PriceCustomCoffeeFormat, PreScaleConvertShow) + Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated + Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")" + Else + Var CustomCoffeeQuantityAdditionalPrice[2] = "" + EndIf + EndIf + ;-END If TOPPING3 = "Collagen" Then Var CollagenState = "Enable" @@ -4880,6 +5302,699 @@ +; +; +; +; +; +; +; +; TEST - BEGIN Custom coffee + + showCustomCoffee + 1080 + "auto" + 20 + + + 986 + "auto" + "vertical" + showCustomCoffee + +; +; +; +; +; + + 986 + 64 + showCustomCoffee + + Var( DirImage + "/bg_top_custom_coffee.png" ) + + +; +; +; Customer Coffee Water Level + + 986 + "auto" + showCoffeeWater + + 0 + 0 + Var( DirImage + "/bg_custom_coffee_water_level.png" ) + + + + + + + + + + + + + + + 472 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeWater + 16 + 0x513C2F + CustomCoffeeWaterText[0] + + + + 583 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeWater + 16 + 0x513C2F + CustomCoffeeWaterText[1] + + + + 694 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeWater + 16 + 0x513C2F + CustomCoffeeWaterText[2] + + + + 805 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeWater + 16 + 0x513C2F + CustomCoffeeWaterText[3] + + + + 916 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeWater + 16 + 0x513C2F + CustomCoffeeWaterText[4] + + + + + + + + 986 + "auto" + showCoffeeQuantity + + 0 + 0 + Var( DirImage + "/bg_custom_coffee_bean_quantity.png" ) + + + + + + + + + + 694 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeQuantity + 16 + 0x513C2F + CustomCoffeeQuantityText[0] + + + + 784 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeQuantity + 16 + 0x513C2F + CustomCoffeeQuantityText[1] + + + + 892 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeQuantity + 16 + 0x513C2F + CustomCoffeeQuantityText[2] + + + ; Additional Price + + 810 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeQuantity + 16 + 0x84776F + CustomCoffeeQuantityAdditionalPrice[1] + + + + 918 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeQuantity + 16 + 0x84776F + CustomCoffeeQuantityAdditionalPrice[2] + + + + + + 986 + "auto" + showCoffeeLevel + + 0 + 0 + Var( DirImage + "/bg_custom_coffee_level.png" ) + + + + + + + + + + + + custom_coffee_level_medium_text_x + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x513C2F + CustomCoffeeLevelText[0] + + + + 676 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x513C2F + CustomCoffeeLevelText[1] + + + + custom_coffee_level_dark_text_x + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x513C2F + CustomCoffeeLevelText[2] + + + + custom_coffee_level_darker_text_x + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x513C2F + CustomCoffeeLevelText[3] + + + + ; Additional Price + + custom_coffee_level_medium_price_x + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x84776F + CustomCoffeeLevelAdditionalPrice[0] + + + + + 720 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x84776F + CustomCoffeeLevelAdditionalPrice[1] + + + + 820 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x84776F + CustomCoffeeLevelAdditionalPrice[2] + + + + 930 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeLevel + 16 + 0x84776F + CustomCoffeeLevelAdditionalPrice[3] + + + + + + + + 986 + "auto" + showCoffeeTamping + + 0 + 0 + Var( DirImage + "/bg_custom_coffee_tamping_pressure.png" ) + + + + + + + + + + 696 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeTamping + 16 + 0x513C2F + CustomCoffeeTampingText[0] + + + + 790 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeTamping + 16 + 0x513C2F + CustomCoffeeTampingText[1] + + + + 920 + CustomCoffeeTextY + KanitRegularTTF + showCoffeeTamping + 16 + 0x513C2F + CustomCoffeeTampingText[2] + + + + + +; +; +; + + showCustomCoffee + 986 + 27 + -5 + + showCustomCoffee + "ROOT/taobin_project/image/topping2/bg_bottom.png" + + + + + + + ; ; ; @@ -5397,6 +6512,12 @@ Var showShotEnable = "Enable" EndIf + If showCustomCoffee = "Invisible" Then + If CustomCoffeeEnable = "True" Then + Var showCustomCoffee = "Enable" + EndIf + EndIf + Var showText4 = "Invisible" Var showname = NameLang[0][LanguageShowByIndex] @@ -5418,6 +6539,13 @@ If showShotEnable = "Disable" Then Var showShotEnable = "Enable" EndIf + + If showCustomCoffee = "Invisible" Then + If CustomCoffeeEnable = "True" Then + Var showCustomCoffee = "Enable" + EndIf + EndIf + Var showText4 = "Invisible" Var showname = NameLang[1][LanguageShowByIndex] @@ -5441,6 +6569,21 @@ Else Var showShotEnable = "Disable" EndIf + + If CustomCoffeeEnable = "True" Then + Var showCustomCoffee = "Enable" + Var showCoffeeWater = "Invisible" + + Var CurrentCoffeeWaterId = toppingID7Default + Var CustomCoffeeWaterState[0] = "Enable" + Var CustomCoffeeWaterState[1] = "PressForever" + Var CustomCoffeeWaterState[2] = "Enable" + Var CustomCoffeeWaterState[3] = "Enable" + Var CustomCoffeeWaterState[4] = "Enable" + + + EndIf + Var showText4 = "Enable" Var showname = NameLang[2][LanguageShowByIndex] @@ -5561,6 +6704,91 @@ EndIf EndIf + + Var CustomCoffeeDefault = "true" + DEBUGVAR showCustomCoffee + DEBUGVAR CustomCoffeeDefault + + If showShotEnable = "Press" Then + ; Invisible showCustomCoffee + Var showCustomCoffee = "Invisible" + Else + If CustomCoffeeEnable = "True" Then + Var showCustomCoffee = "Enable" + EndIf + EndIf + + If showCustomCoffee = "Enable" Then + + If showCoffeeWater = "Enable" Then + If CurrentCoffeeWaterId = toppingID7Default Then + Else + Var CustomCoffeeDefault = "false" + EndIf + EndIf + + If showCoffeeQuantity = "Enable" Then + If CurrentCoffeeQuantityId = toppingID2Default Then + Else + Var CustomCoffeeDefault = "false" + EndIf + EndIf + + If showCoffeeLevel = "Enable" Then + If CurrentCoffeeLevelId = toppingID9Default Then + Else + Var CustomCoffeeDefault = "false" + EndIf + EndIf + + If showCoffeeTamping = "Enable" Then + If CurrentCoffeeTampingId = toppingID8Default Then + Else + Var CustomCoffeeDefault = "false" + EndIf + EndIf + + DEBUGVAR CustomCoffeeDefault + If CustomCoffeeDefault = "false" Then + If showShotEnable = "Enable" Then + ;Var showShotEnable = "Disable" + EndIf + Else + If showShotEnable = "Invisible" Then + + Else + If blend_button_state = "PressForever" Then + Else + Var showShotEnable = "Enable" + EndIf + EndIf + EndIf + + + If CustomCoffeeQuantityState[0] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1 + EndIf + If CustomCoffeeQuantityState[1] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2 + EndIf + If CustomCoffeeQuantityState[2] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3 + EndIf + + If CustomCoffeeLevelState[0] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price1 + EndIf + If CustomCoffeeLevelState[1] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price2 + EndIf + If CustomCoffeeLevelState[2] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price3 + EndIf + If CustomCoffeeLevelState[3] = "PressForever" Then + Var TOPPING_PRICE = TOPPING_PRICE + toppingID9price4 + EndIf + + EndIf DEBUGVAR SelectDrinkType