Topping8: Topping2 now can use, Switch espresso slot index, default normal espresso slot
This commit is contained in:
parent
da4c4ec1a3
commit
a998b2f04a
1 changed files with 52 additions and 16 deletions
|
|
@ -2790,6 +2790,14 @@
|
||||||
Var CustomMilkState[2] = "Disable"
|
Var CustomMilkState[2] = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If TOPPING2 = "shot coffee" Then
|
||||||
|
If showShotNormal = "Enable" Then
|
||||||
|
If showShotEnable = "Enable" Then
|
||||||
|
Var showShotNormal = "Press"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
;Var SelectToppingType = 0
|
;Var SelectToppingType = 0
|
||||||
;Var SelectedToppingCount = 0
|
;Var SelectedToppingCount = 0
|
||||||
|
|
@ -3516,6 +3524,10 @@
|
||||||
Var text_shot_normal_add = toppingID2price2Conv + ")"
|
Var text_shot_normal_add = toppingID2price2Conv + ")"
|
||||||
Var text_shot_normal_add = "(+" + text_shot_normal_add
|
Var text_shot_normal_add = "(+" + text_shot_normal_add
|
||||||
|
|
||||||
|
If showShotNormal = "Enable" Then
|
||||||
|
Var showShotNormal = "Press"
|
||||||
|
EndIf
|
||||||
|
|
||||||
Refresh
|
Refresh
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
@ -3688,7 +3700,14 @@
|
||||||
Var showShotEnable = "Invisible"
|
Var showShotEnable = "Invisible"
|
||||||
Var ExtraTopping = "Enable"
|
Var ExtraTopping = "Enable"
|
||||||
Else
|
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
|
EndIf
|
||||||
|
|
||||||
DEBUGVAR TOPPING2
|
DEBUGVAR TOPPING2
|
||||||
|
|
@ -3746,16 +3765,16 @@
|
||||||
Var CustomCoffeeQuantityAdditionalPrice[0] = ""
|
Var CustomCoffeeQuantityAdditionalPrice[0] = ""
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If toppingID2price2 > 0 Then
|
If toppingID2price3 > 0 Then
|
||||||
Var priceFormated !assigned StringFmt( toppingID2price2 , 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 toppingID2price3 > 0 Then
|
If toppingID2price4 > 0 Then
|
||||||
Var priceFormated !assigned StringFmt( toppingID2price3 , 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
|
||||||
|
|
@ -3763,6 +3782,18 @@
|
||||||
EndIf
|
EndIf
|
||||||
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
|
;-END
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -7915,8 +7946,8 @@
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
||||||
|
|
||||||
Var showShotNormal = "Enable"
|
Var showShotNormal = "Press"
|
||||||
Var showShotEnable = "PressForever"
|
Var showShotEnable = "Enable"
|
||||||
SAVELOG "esp shot ignore"
|
SAVELOG "esp shot ignore"
|
||||||
|
|
||||||
Function 2
|
Function 2
|
||||||
|
|
@ -7937,7 +7968,7 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
||||||
Var showShotEnable = "PressForever"
|
Var showShotEnable = "Press"
|
||||||
Var showShotNormal = "Enable"
|
Var showShotNormal = "Enable"
|
||||||
SAVELOG "Espresso Shot add"
|
SAVELOG "Espresso Shot add"
|
||||||
|
|
||||||
|
|
@ -9016,7 +9047,7 @@
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
<X> 694 </X>
|
<X> 699 </X>
|
||||||
<Y> CustomCoffeeTextY </Y>
|
<Y> CustomCoffeeTextY </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> showCoffeeQuantity </State>
|
<State> showCoffeeQuantity </State>
|
||||||
|
|
@ -9026,7 +9057,8 @@
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
<X> 784 </X>
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<X> CustomCoffeeQuantityTextX[1] </X>
|
||||||
<Y> CustomCoffeeTextY </Y>
|
<Y> CustomCoffeeTextY </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> showCoffeeQuantity </State>
|
<State> showCoffeeQuantity </State>
|
||||||
|
|
@ -9036,7 +9068,8 @@
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
<X> 892 </X>
|
<Refresh> "Enable" </Refresh>
|
||||||
|
<X> CustomCoffeeQuantityTextX[2] </X>
|
||||||
<Y> CustomCoffeeTextY </Y>
|
<Y> CustomCoffeeTextY </Y>
|
||||||
<Font> KanitRegularTTF </Font>
|
<Font> KanitRegularTTF </Font>
|
||||||
<State> showCoffeeQuantity </State>
|
<State> showCoffeeQuantity </State>
|
||||||
|
|
@ -11391,6 +11424,12 @@
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If showShotEnable = "Disable" Then
|
||||||
|
If showShotNormal = "Enable" Then
|
||||||
|
Var showShotNormal = "Press"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
If showCustomCoffee = "Enable" Then
|
If showCustomCoffee = "Enable" Then
|
||||||
|
|
||||||
If showCoffeeWater = "Enable" Then
|
If showCoffeeWater = "Enable" Then
|
||||||
|
|
@ -11442,10 +11481,10 @@
|
||||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1
|
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1
|
||||||
EndIf
|
EndIf
|
||||||
If CustomCoffeeQuantityState[1] = "PressForever" Then
|
If CustomCoffeeQuantityState[1] = "PressForever" Then
|
||||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
|
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3
|
||||||
EndIf
|
EndIf
|
||||||
If CustomCoffeeQuantityState[2] = "PressForever" Then
|
If CustomCoffeeQuantityState[2] = "PressForever" Then
|
||||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3
|
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price4
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If CustomCoffeeLevelState[0] = "PressForever" Then
|
If CustomCoffeeLevelState[0] = "PressForever" Then
|
||||||
|
|
@ -11588,9 +11627,6 @@
|
||||||
|
|
||||||
RefreshAll
|
RefreshAll
|
||||||
|
|
||||||
;for test
|
|
||||||
;Var showShotEnable = "Invisible"
|
|
||||||
|
|
||||||
</Function2>
|
</Function2>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue