From a998b2f04aac36a84aef3a27a2a6a912ca8f23d0 Mon Sep 17 00:00:00 2001 From: Ittipat Lusuk Date: Thu, 22 May 2025 13:35:36 +0700 Subject: [PATCH] Topping8: Topping2 now can use, Switch espresso slot index, default normal espresso slot --- xml/page_topping_select8.xml | 68 +++++++++++++++++++++++++++--------- 1 file changed, 52 insertions(+), 16 deletions(-) diff --git a/xml/page_topping_select8.xml b/xml/page_topping_select8.xml index dc763b24..fcbba886 100644 --- a/xml/page_topping_select8.xml +++ b/xml/page_topping_select8.xml @@ -2789,6 +2789,14 @@ Var CustomMilkState[1] = "Disable" Var CustomMilkState[2] = "Disable" EndIf + + If TOPPING2 = "shot coffee" Then + If showShotNormal = "Enable" Then + If showShotEnable = "Enable" Then + Var showShotNormal = "Press" + EndIf + EndIf + EndIf ;Var SelectToppingType = 0 @@ -3515,6 +3523,10 @@ DEBUGVAR toppingID2price2Conv Var text_shot_normal_add = toppingID2price2Conv + ")" Var text_shot_normal_add = "(+" + text_shot_normal_add + + If showShotNormal = "Enable" Then + Var showShotNormal = "Press" + EndIf Refresh EndIf @@ -3688,7 +3700,14 @@ Var showShotEnable = "Invisible" Var ExtraTopping = "Enable" Else - Var EnableLightRoast = "Enable" + If toppingID2index3 = 0 Then + Var EnableLightRoast = "Invisible" + Var ShotCoffeePremium = "Enable" + Var showShotEnable = "Invisible" + Var ExtraTopping = "Enable" + Else + Var EnableLightRoast = "Enable" + EndIf EndIf DEBUGVAR TOPPING2 @@ -3746,16 +3765,16 @@ Var CustomCoffeeQuantityAdditionalPrice[0] = "" EndIf - If toppingID2price2 > 0 Then - Var priceFormated !assigned StringFmt( toppingID2price2 , PriceCustomCoffeeFormat, PreScaleConvertShow) + If toppingID2price3 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price3 , 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) + If toppingID2price4 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price4 , PriceCustomCoffeeFormat, PreScaleConvertShow) Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")" Else @@ -3763,6 +3782,18 @@ EndIf EndIf + If CustomCoffeeQuantityAdditionalPrice[1] = "" Then + Var CustomCoffeeQuantityTextX[1] = 809 + Else + Var CustomCoffeeQuantityTextX[1] = 784 + EndIf + + If CustomCoffeeQuantityAdditionalPrice[2] = "" Then + Var CustomCoffeeQuantityTextX[2] = 922 + Else + Var CustomCoffeeQuantityTextX[2] = 892 + EndIf + ;-END @@ -7915,8 +7946,8 @@ - Var showShotNormal = "Enable" - Var showShotEnable = "PressForever" + Var showShotNormal = "Press" + Var showShotEnable = "Enable" SAVELOG "esp shot ignore" Function 2 @@ -7937,7 +7968,7 @@ SoundVolume - Var showShotEnable = "PressForever" + Var showShotEnable = "Press" Var showShotNormal = "Enable" SAVELOG "Espresso Shot add" @@ -9016,7 +9047,7 @@ - 694 + 699 CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -9026,7 +9057,8 @@ - 784 + "Enable" + CustomCoffeeQuantityTextX[1] CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -9036,7 +9068,8 @@ - 892 + "Enable" + CustomCoffeeQuantityTextX[2] CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -11391,6 +11424,12 @@ EndIf EndIf + If showShotEnable = "Disable" Then + If showShotNormal = "Enable" Then + Var showShotNormal = "Press" + EndIf + EndIf + If showCustomCoffee = "Enable" Then If showCoffeeWater = "Enable" Then @@ -11442,10 +11481,10 @@ Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1 EndIf If CustomCoffeeQuantityState[1] = "PressForever" Then - Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2 + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3 EndIf If CustomCoffeeQuantityState[2] = "PressForever" Then - Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3 + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price4 EndIf If CustomCoffeeLevelState[0] = "PressForever" Then @@ -11588,9 +11627,6 @@ RefreshAll - ;for test - ;Var showShotEnable = "Invisible" -