THAI: fix topping show that invisible

This commit is contained in:
thanawat saiyota 2025-03-20 12:48:36 +07:00
parent c060ada9a1
commit dfaf71c2ab
2 changed files with 399 additions and 162 deletions

View file

@ -340,27 +340,47 @@ If CART_COUNT = 0 Then
If blend_button_state = "PressForever" Then
Var toppingSelectState = "Enable"
If toppingSelectState = "Enable" Then
Var CustomOreoState = "Enable"
Var CustomOvaltineState = "Enable"
Var CustomCocoaState = "Enable"
Var PopupToppingSelect = "Enable"
If toppingID6index2 = 321 Then
Var CustomOreoCheckState = "Enable"
If toppingID6index2Status = "Enable" Then
Var CustomOreoCheckState = "Enable"
Var CustomOreoState = "Enable"
Else
Var CustomOreoCheckState = "Disable"
Var CustomOreoState = "Enable"
EndIf
Else
Var CustomOreoCheckState = "Disable"
Var CustomOreoCheckState = "Invisible"
EndIf
If toppingID6index3 = 322 Then
Var CustomCocoaCheckState = "Enable"
If toppingID6index3Status = "Enable" Then
Var CustomCocoaCheckState = "Enable"
Var CustomCocoaState = "Enable"
Else
Var CustomCocoaCheckState = "Disable"
Var CustomCocoaState = "Enable"
EndIf
Else
Var CustomCocoaCheckState = "Disable"
Var CustomCocoaCheckState = "Invisible"
EndIf
If toppingID6index4 = 323 Then
Var CustomOvaltineCheckState = "Enable"
If toppingID6index4Status = "Enable" Then
Var CustomOvaltineCheckState = "Enable"
Var CustomOvaltineState = "Enable"
Else
Var CustomOvaltineCheckState = "Disable"
Var CustomOvaltineState = "Enable"
EndIf
Else
Var CustomOvaltineCheckState = "Disable"
Var CustomOvaltineCheckState = "Invisible"
EndIf
EndIf
EndIf