Topping8: Include Function2
This commit is contained in:
parent
c3d3b9585f
commit
5d28edad0b
2 changed files with 928 additions and 298 deletions
846
xml/function2.inc
Normal file
846
xml/function2.inc
Normal file
|
|
@ -0,0 +1,846 @@
|
|||
<Function2>
|
||||
Var fun = "function2"
|
||||
DEBUGVAR fun
|
||||
Var img_cold_no_flag = 0
|
||||
Var img_smth_no_flag = 0
|
||||
|
||||
If hot_button_state = "Disable2" Then
|
||||
If blend_button_state = "Disable2" Then
|
||||
Var img_cold_no_flag = 1
|
||||
Else
|
||||
Var img_cold_no_flag = 1
|
||||
Var img_smth_no_flag = 2
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If PriceD1 = PriceD2 Then
|
||||
Var img_cold_no_flag = 1
|
||||
EndIf
|
||||
|
||||
If hot_button_state = "Disable2" Then
|
||||
If cold_button_state = "Disable2" Then
|
||||
Var img_smth_no_flag = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If img_cold_no_flag = 1 Then
|
||||
SAVELOG "Cold Image change."
|
||||
Var img_cold = "/bt_cold_no.png"
|
||||
Var img_cold_sel = "/bt_cold_selected_no.png"
|
||||
Var img_cold_dis = "/bt_cold_disable_no.png"
|
||||
Var img_cold_dis2 = "/bt_cold_disable2_no.png"
|
||||
If PD_CODE2 = "12-05-02-0016" Then
|
||||
Var img_cold = "/bt_normal_no.png"
|
||||
Var img_cold_sel = "/bt_normal_selected_no.png"
|
||||
Var img_cold_dis = "/bt_cold_disable_no.png"
|
||||
Var img_cold_dis2 = "/bt_cold_disable2_no.png"
|
||||
EndIf
|
||||
Else
|
||||
Var img_cold = "/bt_cold.png"
|
||||
Var img_cold_sel = "/bt_cold_selected.png"
|
||||
Var img_cold_dis = "/bt_cold_disable.png"
|
||||
Var img_cold_dis2 = "/bt_cold_disable2.png"
|
||||
EndIf
|
||||
|
||||
If img_smth_no_flag = 1 Then
|
||||
SAVELOG "Smoothies change img. 1"
|
||||
Var img_smth = "/bt_smoothie_no.png"
|
||||
Var img_smth_sel = "/bt_smoothie_selected_no.png"
|
||||
Var img_smth_dis = "/bt_smoothie_disable_no.png"
|
||||
Var img_smth_dis2 = "/bt_smoothie_disable2_no.png"
|
||||
Else
|
||||
If img_smth_no_flag = 2 Then
|
||||
SAVELOG "Smoothies change img. 2"
|
||||
Var img_smth = "/bt_smoothie_sub2.png"
|
||||
Var img_smth_sel = "/bt_smoothie_selected_sub2.png"
|
||||
Var img_smth_dis = "/bt_smoothie_disable_sub2.png"
|
||||
Var img_smth_dis2 = "/bt_smoothie_disable2_sub2.png"
|
||||
Else
|
||||
|
||||
Var img_smth = "/bt_smoothie.png"
|
||||
Var img_smth_sel = "/bt_smoothie_selected.png"
|
||||
Var img_smth_dis = "/bt_smoothie_disable.png"
|
||||
Var img_smth_dis2 = "/bt_smoothie_disable2.png"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var img_cold = "/bt_cold_no.png"
|
||||
Var img_cold_sel = "/bt_cold_selected_no.png"
|
||||
Var img_cold_dis = "/bt_cold_disable_no.png"
|
||||
Var img_cold_dis2 = "/bt_cold_disable2_no.png"
|
||||
If PD_CODE2 = "12-05-02-0016" Then
|
||||
Var img_cold = "/bt_normal_no.png"
|
||||
Var img_cold_sel = "/bt_normal_selected_no.png"
|
||||
Var img_cold_dis = "/bt_cold_disable_no.png"
|
||||
Var img_cold_dis2 = "/bt_cold_disable2_no.png"
|
||||
EndIf
|
||||
|
||||
|
||||
Var img_smth = "/bt_smoothie_no.png"
|
||||
Var img_smth_sel = "/bt_smoothie_selected_no.png"
|
||||
Var img_smth_dis = "/bt_smoothie_disable_no.png"
|
||||
Var img_smth_dis2 = "/bt_smoothie_disable2_no.png"
|
||||
|
||||
DEBUGVAR menu_name_thai_cold
|
||||
SAVELOG "FUNCTION2"
|
||||
|
||||
|
||||
Var TOPPING_PRICE = 0
|
||||
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
; Set default
|
||||
If SelectCountDrinkType = 1 Then
|
||||
If DefaultDrinkType = 1 Then
|
||||
Var hot_button_state = "PressForever"
|
||||
EndIf
|
||||
If DefaultDrinkType = 2 Then
|
||||
Var cold_button_state = "PressForever"
|
||||
EndIf
|
||||
If DefaultDrinkType = 3 Then
|
||||
Var blend_button_state = "PressForever"
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
If hot_button_state = "PressForever" Then
|
||||
Var PriceDrinkNoTop = PriceD1
|
||||
Var UserSelectProductCode = PD_CODE1
|
||||
|
||||
If showShotEnable = "Disable" Then
|
||||
If CustomCoffeeEnable = "False" Then
|
||||
Var showShotEnable = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If showCustomCoffee = "Invisible" Then
|
||||
If CustomCoffeeEnable = "True" Then
|
||||
Var showCustomCoffee = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var showText4 = "Invisible"
|
||||
|
||||
If ENABLE_LANGUAGE_COUNT > 2 Then
|
||||
Var showname = NameLang[0][LanguageShowByIndex]
|
||||
Var showdesc = DescLang[0][LanguageShowByIndex]
|
||||
Else
|
||||
If show_eng = "true" Then
|
||||
Var showname = menu_name_eng_hot
|
||||
Var showdesc = menu_desc_eng_hot
|
||||
Else
|
||||
Var showname = menu_name_thai_hot
|
||||
Var showdesc = menu_desc_thai_hot
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Seeker.NameDrinkEN = menu_name_eng_hot
|
||||
Var Seeker.NameDrinkTH = menu_name_thai_hot
|
||||
|
||||
Var text_hot_color = "0xFFFFFF"
|
||||
Var text_cold_color = "0x84776F"
|
||||
Var text_blender_color = "0x84776F"
|
||||
|
||||
Var SelectDrinkType = 1
|
||||
|
||||
Machine PreparCup
|
||||
EndIf
|
||||
|
||||
If cold_button_state = "PressForever" Then
|
||||
Var PriceDrinkNoTop = PriceD2
|
||||
Var OriginalPrice = OriginalPriceD2
|
||||
Var UserSelectProductCode = PD_CODE2
|
||||
|
||||
If showShotEnable = "Disable" Then
|
||||
If CustomCoffeeEnable = "False" Then
|
||||
Var showShotEnable = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If showCustomCoffee = "Invisible" Then
|
||||
If CustomCoffeeEnable = "True" Then
|
||||
Var showCustomCoffee = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var showText4 = "Invisible"
|
||||
|
||||
If ENABLE_LANGUAGE_COUNT > 2 Then
|
||||
Var showname = NameLang[1][LanguageShowByIndex]
|
||||
Var showdesc = DescLang[1][LanguageShowByIndex]
|
||||
Else
|
||||
If show_eng = "true" Then
|
||||
Var showname = menu_name_eng_cold
|
||||
Var showdesc = menu_desc_eng_cold
|
||||
Else
|
||||
Var showname = menu_name_thai_cold
|
||||
Var showdesc = menu_desc_thai_cold
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Seeker.NameDrinkEN = menu_name_eng_cold
|
||||
Var Seeker.NameDrinkTH = menu_name_thai_cold
|
||||
|
||||
Var text_hot_color = "0x84776F"
|
||||
Var text_cold_color = "0xFFFFFF"
|
||||
Var text_blender_color = "0x84776F"
|
||||
|
||||
Var SelectDrinkType = 1
|
||||
|
||||
Machine PreparCup
|
||||
EndIf
|
||||
|
||||
If blend_button_state = "PressForever" Then
|
||||
Var PriceDrinkNoTop = PriceD3
|
||||
Var OriginalPrice = OriginalPriceD3
|
||||
Var UserSelectProductCode = PD_CODE3
|
||||
|
||||
If showShotEnable = "Invisible" Then
|
||||
|
||||
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"
|
||||
|
||||
If ENABLE_LANGUAGE_COUNT > 2 Then
|
||||
Var showname = NameLang[2][LanguageShowByIndex]
|
||||
Var showdesc = DescLang[2][LanguageShowByIndex]
|
||||
Else
|
||||
SAVELOG "Enable lang < 2"
|
||||
DEBUGVAR ENABLE_LANGUAGE_COUNT
|
||||
If show_eng = "true" Then
|
||||
Var showname = menu_name_eng_blender
|
||||
Var showdesc = menu_desc_eng_blender
|
||||
Else
|
||||
Var showname = menu_name_thai_blender
|
||||
Var showdesc = menu_desc_thai_blender
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
Var Seeker.NameDrinkEN = menu_name_eng_blender
|
||||
Var Seeker.NameDrinkTH = menu_name_thai_blender
|
||||
|
||||
Var text_hot_color = "0x84776F"
|
||||
Var text_cold_color = "0x84776F"
|
||||
Var text_blender_color = "0xFFFFFF"
|
||||
|
||||
Var SelectDrinkType = 1
|
||||
|
||||
Machine PreparCup
|
||||
EndIf
|
||||
|
||||
Var OatMilkAddAmount = 5
|
||||
Var CerealMilkPrice = "(+฿5)"
|
||||
|
||||
Var OreoPrice = 10
|
||||
Var CocoaPrice = 10
|
||||
Var OvaltinePrice = 10
|
||||
Var StrawberryPrice = 5
|
||||
Var YuzuPrice = 5
|
||||
Var MilkIncreasePrice = 5
|
||||
Var TaiwaneseTeaIncreasePrice = 5
|
||||
|
||||
Var EnergyPriceLevel1 = 5
|
||||
Var EnergyPriceLevel2 = 10
|
||||
|
||||
Var CoffeePriceLevel1 = 15
|
||||
Var CoffeePriceLevel2 = 25
|
||||
|
||||
Var OreoPriceText = "(+10)"
|
||||
Var CocoaPriceText = "(+10)"
|
||||
Var OvaltinePriceText = "(+10)"
|
||||
Var StrawberryPriceText = "(+5)"
|
||||
Var YuzuPriceText = "(+5)"
|
||||
Var MilkIncreasePriceText = "(+5)"
|
||||
Var TaiwaneseTeaIncreasePriceText = "(+5)"
|
||||
Var CollagenPriceText = "(Free)"
|
||||
|
||||
Var EnergyTextLevel1 = "(+5)"
|
||||
Var EnergyTextLevel2 = "(+10)"
|
||||
|
||||
Var CoffeeTextLevel1 = "(+15)"
|
||||
Var CoffeeTextLevel2 = "(+25)"
|
||||
|
||||
|
||||
|
||||
Var CerealMilkAddAmount = SubMenuPrice1 - PriceDrinkNoTop
|
||||
|
||||
If CerealMilkAddAmount = 0 Then
|
||||
Var CerealMilkPrice = "(+฿10)"
|
||||
|
||||
Else
|
||||
Var CerealMilkPrice = "(+฿" + CerealMilkAddAmount
|
||||
Var CerealMilkPrice = CerealMilkPrice + ")"
|
||||
|
||||
Var CerealMilkPrice = "(+฿10)"
|
||||
EndIf
|
||||
|
||||
DEBUGVAR SubMenuPrice1
|
||||
DEBUGVAR CerealMilkAddAmount
|
||||
|
||||
|
||||
|
||||
DEBUGVAR PriceDrinkNoTop
|
||||
DEBUGVAR PriceDiff
|
||||
DEBUGVAR showShotEnable
|
||||
Var TOPPING_PRICE = 0
|
||||
|
||||
If ShotCoffeePremium = "Press" Then
|
||||
If blendedState = "Press" Then
|
||||
Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
EndIf
|
||||
|
||||
Var blendedState = "Disable"
|
||||
Var TOPPING_PRICE = 0
|
||||
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
|
||||
|
||||
Var topping2 = toppingID2index2
|
||||
|
||||
Var DisableUsingCode = "true"
|
||||
|
||||
Var showText7 = "Enable"
|
||||
|
||||
SAVELOG "Select premi normal shot"
|
||||
|
||||
Else
|
||||
|
||||
If showShotEnable = "Press" Then
|
||||
If blendedState = "Press" Then
|
||||
Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
EndIf
|
||||
|
||||
Var blendedState = "Disable"
|
||||
|
||||
Var TOPPING_PRICE = 0
|
||||
|
||||
;Var PriceDrinkTmp = PriceDrinkNoTop + toppingID2price2
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2
|
||||
|
||||
Var topping2 = toppingID2index2
|
||||
|
||||
Var DisableUsingCode = "true"
|
||||
|
||||
Var showText7 = "Enable"
|
||||
|
||||
SAVELOG "Select add normal shot"
|
||||
Else
|
||||
If blendedState = "Disable" Then
|
||||
Var blendedState = "Enable"
|
||||
EndIf
|
||||
|
||||
|
||||
Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
Var topping2 = toppingID2index1
|
||||
Var DisableUsingCode = "false"
|
||||
SAVELOG "Deselect add normal shot"
|
||||
|
||||
Var showText7 = "Invisible"
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
; Post Topping
|
||||
If SugarZeroCalEnable = "true" Then
|
||||
Var sugarToppingID = 1000
|
||||
If SugarZeroCalCheck = "PressForever" Then
|
||||
Var sugarToppingID = 1001
|
||||
Else
|
||||
Var sugarToppingID = 1000
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If SugarZeroCalEnable = "true" Then
|
||||
If SugarZeroCalOption = "Enable" Then
|
||||
If SugarZeroCalCheck = "PressForever" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + SugarZeroCalPrice
|
||||
Var Seeker.UseFreeSugarZeroCalTopping = 1
|
||||
Else
|
||||
Var Seeker.UseFreeSugarZeroCalTopping = 0
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR showOreoAddEnable
|
||||
DEBUGVAR TOPPING_PRICE
|
||||
|
||||
; Oreo
|
||||
Var strMulti6_1 = "TPID:321+multiply:0"
|
||||
; Ovaltine
|
||||
Var strMulti6_2 = "TPID:323+multiply:0"
|
||||
; Coaco
|
||||
Var strMulti6_3 = "TPID:322+multiply:0"
|
||||
|
||||
Var strMulti6_4 = ""
|
||||
|
||||
Var strMulti6_5 = "TPID=324,multiply=0"
|
||||
|
||||
|
||||
; light-milk
|
||||
Var strMulti11_1 = "TPID:541+multiply:0"
|
||||
; normal-milk
|
||||
Var strMulti11_2 = "TPID:542+multiply:0"
|
||||
; rich-milk
|
||||
Var strMulti11_3 = "TPID:543+multiply:0"
|
||||
; normal-taiwanese-tea
|
||||
Var strMulti11_4 = "TPID:546+multiply:0"
|
||||
; rich-taiwanese-tea
|
||||
Var strMulti11_5 = "TPID:547+multiply:0"
|
||||
|
||||
|
||||
If showOreoAddEnable = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + OreoPrice
|
||||
Var strMulti6_1 = "TPID=321,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
|
||||
;Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
|
||||
Var strMulti6_1 = "TPID=320,multiply=0"
|
||||
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
If showOvaltineEnable = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + OvaltinePrice
|
||||
;Var topping6 = toppingID6index5
|
||||
Var strMulti6_2 = "TPID=323,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
;Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
|
||||
Var strMulti6_2 = "TPID=320,multiply=0"
|
||||
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
|
||||
EndIf
|
||||
|
||||
If showCocoaEnable = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + CocoaPrice
|
||||
;Var topping6 = toppingID6index3
|
||||
Var strMulti6_3 = "TPID=322,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
|
||||
;Var PriceDrinkTmp = PriceDrinkNoTop
|
||||
|
||||
Var strMulti6_3 = "TPID=320,multiply=0"
|
||||
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[0] = "PressForever" Then
|
||||
Var strMulti11_1 = "TPID=541,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
Var strMulti11_1 = "TPID=542,multiply=0"
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[1] = "PressForever" Then
|
||||
Var strMulti11_2 = "TPID=542,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
Var strMulti11_2 = "TPID=542,multiply=0"
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[2] = "PressForever" Then
|
||||
Var strMulti11_3 = "TPID=543,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
Var strMulti11_3 = "TPID=542,multiply=0"
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
EndIf
|
||||
|
||||
If CustomTaiwaneseTeaState[0] = "PressForever" Then
|
||||
Var strMulti11_4 = "TPID=546,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
Var strMulti11_4 = "TPID=546,multiply=0"
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
EndIf
|
||||
|
||||
If CustomTaiwaneseTeaState[1] = "PressForever" Then
|
||||
Var strMulti11_5 = "TPID=547,multiply=1"
|
||||
Var DisableUsingCode = "true"
|
||||
DEBUGVAR DisableUsingCode
|
||||
Else
|
||||
Var strMulti11_5 = "TPID=547,multiply=0"
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
EndIf
|
||||
|
||||
|
||||
If CustomTaiwaneseTeaState[1] = "PressForever" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + TaiwaneseTeaIncreasePrice
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[2] = "PressForever" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + MilkIncreasePrice
|
||||
EndIf
|
||||
|
||||
If CustomEnergyState[0] = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + EnergyPriceLevel1
|
||||
Var topping12 = toppingID12index2
|
||||
Else
|
||||
If CustomEnergyState[1] = "Press" Then
|
||||
|
||||
Else
|
||||
Var topping12 = toppingID12index1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If CustomEnergyState[1] = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + EnergyPriceLevel2
|
||||
Var topping12 = toppingID12index3
|
||||
Else
|
||||
If CustomEnergyState[0] = "Press" Then
|
||||
|
||||
Else
|
||||
Var topping12 = toppingID12index1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If showShotEnableSoda = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + CoffeePriceLevel1
|
||||
EndIf
|
||||
|
||||
|
||||
If CollagenState = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + CollagenToppingPrice
|
||||
Var topping3 = toppingID3index2
|
||||
Var Seeker.UseFreeCollagenTopping = 1
|
||||
Else
|
||||
Var topping3 = toppingID3index1
|
||||
Var Seeker.UseFreeCollagenTopping = 0
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
If CerealMilkEnable = "Press" Then
|
||||
If MenuCodeName1 = "Cereal-Milk" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + CerealMilkAddAmount
|
||||
Var DisableUsingCode = "true"
|
||||
Var UserSelectProductCode = SubMenuProductCode1
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
EndIf
|
||||
|
||||
If showStrawberryEnable = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + StrawberryPrice
|
||||
If TOPPING6 = "all-volcano" Then
|
||||
Var strMulti6_5 = "TPID=324,multiply=1"
|
||||
EndIf
|
||||
|
||||
If TOPPING6 = "syrup-topping" Then
|
||||
Var strMulti6_5 = "TPID=91,multiply=1"
|
||||
EndIf
|
||||
|
||||
Var DisableUsingCode = "true"
|
||||
Else
|
||||
|
||||
|
||||
If TOPPING6 = "all-volcano" Then
|
||||
Var strMulti6_5 = "TPID=320,multiply=1"
|
||||
EndIf
|
||||
|
||||
If TOPPING6 = "syrup-topping" Then
|
||||
Var strMulti6_5 = "TPID=90,multiply=1"
|
||||
EndIf
|
||||
|
||||
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
If showYuzuEnable = "Press" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + YuzuPrice
|
||||
If TOPPING6 = "all-volcano" Then
|
||||
Var strMulti6_6 = "TPID=325,multiply=1"
|
||||
EndIf
|
||||
If TOPPING6 = "syrup-topping" Then
|
||||
Var strMulti6_6 = "TPID=92,multiply=1"
|
||||
EndIf
|
||||
Var DisableUsingCode = "true"
|
||||
Else
|
||||
|
||||
|
||||
If TOPPING6 = "all-volcano" Then
|
||||
Var strMulti6_6 = "TPID=320,multiply=1"
|
||||
EndIf
|
||||
If TOPPING6 = "syrup-topping" Then
|
||||
Var strMulti6_6 = "TPID=90,multiply=1"
|
||||
EndIf
|
||||
|
||||
Var DisableUsingCode = "false"
|
||||
DEBUGVAR DisableUsingCode
|
||||
|
||||
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 showShotEnable = "Disable" Then
|
||||
If showShotNormal = "Enable" Then
|
||||
Var showShotNormal = "Press"
|
||||
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 + toppingID2price3
|
||||
EndIf
|
||||
If CustomCoffeeQuantityState[2] = "PressForever" Then
|
||||
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price4
|
||||
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
|
||||
|
||||
DEBUGVAR showShotEnable
|
||||
DEBUGVAR PriceDrinkTmpShow
|
||||
|
||||
|
||||
Var PriceDrinkTmp = PriceDrinkNoTop + TOPPING_PRICE
|
||||
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
|
||||
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
Var PriceDrinkTmpShow = "---"
|
||||
Else
|
||||
Var PriceDrinkTmpShow !assigned StringFmt( PriceDrinkTmp , DisplayFormat, PreScaleConvertShow)
|
||||
EndIf
|
||||
SAVELOG PriceDrinkTmp
|
||||
|
||||
If RoadShow = "true" Then
|
||||
|
||||
Var PriceDrinkTmpShow = "Free"
|
||||
|
||||
DEBUGVAR SelectDrink2
|
||||
DEBUGVAR PriceDrinkTmpShow
|
||||
EndIf
|
||||
|
||||
|
||||
; echo -n true > /mnt/sdcard/coffeevending/menu_blend_free
|
||||
|
||||
READ_FILE "/mnt/sdcard/coffeevending/menu_blend_free" menu_blend_free
|
||||
DEBUGVAR menu_blend_free
|
||||
DEBUGVAR blend_button_state
|
||||
|
||||
If menu_blend_free = "true" Then
|
||||
If blend_button_state = "PressForever" Then
|
||||
Var PriceDrinkNoTop = 0
|
||||
Var PriceDrinkTmpShow = "Free"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SugarZeroCalCheck = "PressForever" Then
|
||||
If SugarNormalCheck = "PressForever" Then
|
||||
Var SugarZeroCalCheck = "Enable"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SelectDrinkType = 0 Then
|
||||
If ENABLE_LANGUAGE_COUNT > 2 Then
|
||||
Var showname = aliasName[LanguageShowByIndex]
|
||||
Var showdesc = aliasName[LanguageShowByIndex]
|
||||
Else
|
||||
If show_eng = "true" Then
|
||||
Var showname = NameDrink
|
||||
Var showdesc = DrinkDescription
|
||||
Else
|
||||
Var showname = NameDrinkTH
|
||||
Var showdesc = DrinkDescriptionTH
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
BackslashNToEnter showname
|
||||
BackslashNToEnter showdesc
|
||||
CRLFToSpace showname
|
||||
CRLFToSpace showdesc
|
||||
DEBUGVAR showname
|
||||
DEBUGVAR showdesc
|
||||
|
||||
Strlen showname show_name_len
|
||||
|
||||
Var hasPress = "false"
|
||||
|
||||
If CustomOreoState = "Enable" Then
|
||||
If CustomOreoCheckState = "Press" Then
|
||||
Var hasPress = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CustomOvaltineState = "Enable" Then
|
||||
If CustomOvaltineCheckState = "Press" Then
|
||||
Var hasPress = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If CustomCocoaState = "Enable" Then
|
||||
If CustomCocoaCheckState = "Press" Then
|
||||
Var hasPress = "true"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If hasPress = "true" Then
|
||||
Var PopupToppingSelect = "Press"
|
||||
If show_eng = "true" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping2_en/topping_revamp/bn_accept.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping2_en/topping_revamp/bp_accept.png"
|
||||
Else
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bn_accept.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bp_accept.png"
|
||||
EndIf
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping_revamp_mmr/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping_revamp_mmr/bp_accept2.png"
|
||||
EndIf
|
||||
If LanguageShow = "MSC" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping_revamp_msc/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping_revamp_msc/bp_accept2.png"
|
||||
EndIf
|
||||
Var bnAcceptX = 445
|
||||
Else
|
||||
Var PopupToppingSelect = "Enable"
|
||||
If show_eng = "true" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping2_en/topping_revamp/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping2_en/topping_revamp/bp_accept2.png"
|
||||
Else
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bp_accept2.png"
|
||||
EndIf
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping_revamp_mmr/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping_revamp_mmr/bp_accept2.png"
|
||||
EndIf
|
||||
If LanguageShow = "MSC" Then
|
||||
Var bnAccept = "ROOT/taobin_project/image/topping_revamp_msc/bn_accept2.png"
|
||||
Var bpAccept = "ROOT/taobin_project/image/topping_revamp_msc/bp_accept2.png"
|
||||
EndIf
|
||||
Var bnAcceptX = 360
|
||||
EndIf
|
||||
|
||||
|
||||
Var Timeout = 0
|
||||
|
||||
RefreshAll
|
||||
|
||||
</Function2>
|
||||
Loading…
Add table
Add a link
Reference in a new issue