Topping8: Fixed add shot coffee and milk-level for another state

This commit is contained in:
Ittipat Lusuk 2025-05-16 13:28:53 +07:00
parent 31e52e77b9
commit d7b4329dc9

View file

@ -1820,11 +1820,18 @@
Var CustomMilkState[0] = "Enable" Var CustomMilkState[0] = "Enable"
Var CustomMilkState[1] = "Enable" Var CustomMilkState[1] = "Enable"
Var CustomMilkState[2] = "Enable" Var CustomMilkState[2] = "Enable"
Else
If TOPPING11 = "milk-level" Then
Var CustomMilkState[0] = "Enable"
Var CustomMilkState[1] = "Enable"
Var CustomMilkState[2] = "Enable"
Else Else
Var CustomMilkState[0] = "Disable" Var CustomMilkState[0] = "Disable"
Var CustomMilkState[1] = "Disable" Var CustomMilkState[1] = "Disable"
Var CustomMilkState[2] = "Disable" Var CustomMilkState[2] = "Disable"
EndIf EndIf
EndIf
Else Else
Var CustomMilkState[0] = "Disable" Var CustomMilkState[0] = "Disable"
Var CustomMilkState[1] = "Disable" Var CustomMilkState[1] = "Disable"
@ -2214,14 +2221,21 @@
If toppingID13index2Status = "" Then If toppingID13index2Status = "" Then
Var showShotNormalSoda = "Invisible" Var showShotNormalSoda = "Invisible"
Var showShotEnableSoda = "Invisible" Var showShotEnableSoda = "Invisible"
Else
If toppingID13index2Status = "Enable" Then
Var showShotEnableSoda = "Enable"
Var showShotNormalSoda = "Enable"
Else Else
Var showShotNormalSoda = "Disable" Var showShotNormalSoda = "Disable"
Var showShotEnableSoda = "Disable" Var showShotEnableSoda = "Disable"
EndIf EndIf
EndIf EndIf
EndIf EndIf
Else
Var showShotNormalSoda = "Disable"
Var showShotEnableSoda = "Disable"
EndIf
DEBUGVAR SubMenuGroupIDSlot6_1 DEBUGVAR SubMenuGroupIDSlot6_1
@ -2623,6 +2637,20 @@
Var CustomMilkState[2] = "Disable" Var CustomMilkState[2] = "Disable"
EndIf EndIf
If TOPPING13 = "shot coffee" Then
If showShotNormalSoda = "Enable" Then
If showShotEnableSoda = "Enable" Then
Var showShotNormalSoda = "Press"
EndIf
EndIf
Else
If showShotNormal = "Enable" Then
If showShotEnable = "Enable" Then
Var showShotNormal = "Press"
EndIf
EndIf
EndIf
Var SelectToppingType = 1 Var SelectToppingType = 1
EndIf EndIf
@ -2682,26 +2710,17 @@
EndIf EndIf
EndIf EndIf
If CustomMilkState[0] = "Enable" Then If TOPPING11 = "milk-level" Then
Var CustomMilkState[0] = "Disable"
If CustomMilkState[0] = "Disable" Then
Var CustomMilkState[0] = "Enable"
EndIf EndIf
If CustomMilkState[1] = "Enable" Then If CustomMilkState[1] = "Disable" Then
Var CustomMilkState[1] = "Disable" Var CustomMilkState[1] = "Enable"
EndIf EndIf
If CustomMilkState[2] = "Enable" Then If CustomMilkState[2] = "Disable" Then
Var CustomMilkState[2] = "Disable" Var CustomMilkState[2] = "Enable"
EndIf
If CustomMilkState[0] = "PressForever" Then
Var CustomMilkState[0] = "Disable"
EndIf
If CustomMilkState[1] = "PressForever" Then
Var CustomMilkState[1] = "Disable"
EndIf
If CustomMilkState[2] = "PressForever" Then
Var CustomMilkState[2] = "Disable"
EndIf EndIf
If CustomMilkState[0] = "Enable" Then If CustomMilkState[0] = "Enable" Then
@ -2711,6 +2730,11 @@
EndIf EndIf
EndIf EndIf
EndIf EndIf
Else
Var CustomMilkState[0] = "Disable"
Var CustomMilkState[1] = "Disable"
Var CustomMilkState[2] = "Disable"
EndIf
If TOPPING13 = "shot coffee" Then If TOPPING13 = "shot coffee" Then
If showShotNormalSoda = "Enable" Then If showShotNormalSoda = "Enable" Then