12324 lines
281 KiB
XML
12324 lines
281 KiB
XML
<Popup>
|
|
<Cache> "Enable" </Cache>
|
|
<Width> 1080 </Width>
|
|
<Height> 1920 </Height>
|
|
;<Background> "0xeae6e1" </Background>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventOpen>
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
|
|
If RedirectToNormalVersion = 1 Then
|
|
RootLayoutVisible 3 "hide"
|
|
;include="ROOT/taobin_project/inter/tha/xml/multi/tab_menu_hide.lxml"
|
|
EndIf
|
|
Machine WakeUp
|
|
|
|
Var MachineEvent = 0
|
|
Var MachineSpiralStage = "-"
|
|
|
|
Var OverridePrice = 100
|
|
|
|
Var Seeker.orderFromNewTopping = 1
|
|
|
|
Var TextSelfTestCntColor = "0x746253"
|
|
Var UserSeletedSugar = 0
|
|
|
|
SAVELOG "Event Open Select 8"
|
|
|
|
If NoWaitMachineEnable = 1 Then
|
|
Var ConfirmDrinkButtonState = "Enable"
|
|
Else
|
|
|
|
Var ConfirmDrinkButtonState = "Invisible"
|
|
EndIf
|
|
|
|
Var y_topping_bg = 912
|
|
|
|
Var CHECK_EventOpen_Double = CHECK_EventOpen_Double + 1
|
|
If CHECK_EventOpen_Double > 1 Then
|
|
WRITE_FILE "/mnt/sdcard/xml_alert_bug" "double called"
|
|
EndIf
|
|
|
|
WEB "DISABLE"
|
|
DEBUGVAR Seeker
|
|
|
|
Var BGSugarNew = "Invisible"
|
|
Var BGMilkNew = "Invisible"
|
|
|
|
DEBUGVAR video_menu_0
|
|
|
|
DEBUGVAR SelectDrink
|
|
DEBUGVAR PictureDrink
|
|
|
|
Var DisableAllNotFreeTopping = 0
|
|
|
|
|
|
Var SaveProductCodeSelect = "-"
|
|
Var UserSelectProductCode = "-"
|
|
|
|
Var showText4 = "Invisible"
|
|
Var showText7 = "Invisible"
|
|
|
|
DEBUGVAR UserSelectProductCode
|
|
|
|
Var blendedState = "Enable"
|
|
Var DisableUsingCode = "false"
|
|
Var ShowLidStraw = "Invisible"
|
|
Var ShowLidOnly = "Invisible"
|
|
Var ShowCollagenOnly = "Invisible"
|
|
|
|
Var blendedStateShow = "Invisible"
|
|
Var ShotCoffeeBG = "Invisible"
|
|
Var showShotEnable = "Invisible"
|
|
Var ShowLidStraw = "Invisible"
|
|
Var ShowStrawOnly = "Invisible"
|
|
Var ShowLidOnly = "Invisible"
|
|
|
|
Var ShowNormalNextButton = "Enable"
|
|
|
|
; On open
|
|
Var lidAndStrawOldPageIgnore = "true"
|
|
Var SugarState1 = "Invisible"
|
|
Var SugarState2 = "Invisible"
|
|
Var SugarState3 = "Invisible"
|
|
Var SugarState4 = "Invisible"
|
|
Var SugarState5 = "Invisible"
|
|
Var SugarState6 = "Invisible"
|
|
|
|
Var AddShotEnable = "Invisible"
|
|
|
|
Var BGSugar = "Invisible"
|
|
Var ShotCoffeeBG = "Invisible"
|
|
|
|
Var showShotEnable = "Invisible"
|
|
Var ShotCoffeePremium = "Invisible"
|
|
|
|
Var showCustomCoffee = "Invisible"
|
|
|
|
Var showAdjust = "Invisible"
|
|
|
|
Var showOvaltineEnable = "Invisible"
|
|
Var showOreoAddEnable = "Invisible"
|
|
Var showCocoaEnable = "Invisible"
|
|
Var showJemilaEnable = "Invisible"
|
|
|
|
Var showStrawberryEnable = "Invisible"
|
|
Var showYuzuEnable = "Invisible"
|
|
|
|
Var SpecialMix = "Invisible"
|
|
Var CustomSyrup = "Invisible"
|
|
Var showEnergyEnable = "Invisible"
|
|
Var showShotSodaEnable = "Invisible"
|
|
Var showCoffeeEnable = "Invisible"
|
|
Var showMilkEnable = "Invisible"
|
|
|
|
|
|
; Customer Coffee
|
|
|
|
Var CustomCoffeeEnable = "False"
|
|
Var EnableLightRoast = "Disable"
|
|
|
|
Var showCoffeeWater = "Invisible"
|
|
Var showSweetLevel = "Invisible"
|
|
Var showCoffeeQuantity = "Invisible"
|
|
Var showCoffeeLevel = "Invisible"
|
|
Var showCoffeeTamping = "Invisible"
|
|
|
|
|
|
|
|
; States
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
|
|
Var CustomCoffeeQuantityState[0] = "Enable"
|
|
Var CustomCoffeeQuantityState[1] = "Enable"
|
|
Var CustomCoffeeQuantityState[2] = "Enable"
|
|
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
Var CustomCoffeeTampingState[0] = "Enable"
|
|
Var CustomCoffeeTampingState[1] = "Enable"
|
|
Var CustomCoffeeTampingState[2] = "Enable"
|
|
|
|
Var CustomSweetState[0] = "Invisible"
|
|
Var CustomSweetState[1] = "Invisible"
|
|
Var CustomSweetState[2] = "Invisible"
|
|
Var CustomSweetState[3] = "Invisible"
|
|
Var CustomSweetState[4] = "Invisible"
|
|
Var CustomSweetState[5] = "Invisible"
|
|
|
|
Var showShotNormal = "Enable"
|
|
|
|
Var showShotNormalSoda = "Enable"
|
|
Var showShotEnableSoda = "Enable"
|
|
|
|
Var CustomEnaergyState[0] = "Enable"
|
|
Var CustomEnaergyState[1] = "Enable"
|
|
|
|
Var CustomCocoaState[0] = "Enable"
|
|
Var CustomCocoaState[1] = "Enable"
|
|
Var CustomCocoaState[2] = "Enable"
|
|
|
|
|
|
Var CustomOvaltineState[0] = "Enable"
|
|
Var CustomOvaltineState[1] = "Enable"
|
|
Var CustomOvaltineState[2] = "Enable"
|
|
|
|
|
|
Var CustomMilkState[0] = "Invisible"
|
|
Var CustomMilkState[1] = "Invisible"
|
|
Var CustomMilkState[2] = "Invisible"
|
|
|
|
Var showShotEnableSoda = "Disable"
|
|
Var CustomEnergyState[0] = "Disable"
|
|
Var CustomEnergyState[1] = "Disable"
|
|
Var CustomEnergyState[3] = "Disable"
|
|
|
|
; Texts
|
|
Var CustomCoffeeTextY = 47
|
|
Var CustomSweetTextY = 52
|
|
Var CustomSweetPercentTextY = 52
|
|
Var CustomEspressoTextY = 52
|
|
|
|
Var CustoppopupToppingY = 880
|
|
Var CustoppopupToppingNextY = 180
|
|
|
|
Var CustomOreoState = "Invisible"
|
|
Var CustomOvaltineState = "Invisible"
|
|
Var CustomCocoaState = "Invisible"
|
|
Var CustomCollagenState = "Invisible"
|
|
|
|
Var CustomOreoCheckState = "Invisible"
|
|
Var CustomOvaltineCheckState = "Invisible"
|
|
Var CustomCocoaCheckState = "Invisible"
|
|
|
|
; enery group clear
|
|
Var topping12 = 80
|
|
|
|
Var PopupToppingSelect = "Invisible"
|
|
|
|
Var custom_coffee_offset_text_x = 0
|
|
|
|
|
|
|
|
Var CustomCoffeeWaterText[0] = "20ml"
|
|
Var CustomCoffeeWaterText[1] = "30ml"
|
|
Var CustomCoffeeWaterText[2] = "40ml"
|
|
Var CustomCoffeeWaterText[3] = "50ml"
|
|
Var CustomCoffeeWaterText[4] = "60ml"
|
|
|
|
Var CustomCoffeeQuantityText[0] = "10g"
|
|
Var CustomCoffeeQuantityText[1] = "13g"
|
|
Var CustomCoffeeQuantityText[2] = "16g"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Var CustomSweetrPercent[0] = "(0%)"
|
|
Var CustomSweetrPercent[1] = "(30%)"
|
|
Var CustomSweetrPercent[2] = "(60%)"
|
|
Var CustomSweetrPercent[3] = "(100%)"
|
|
Var CustomSweetrPercent[4] = "(120%)"
|
|
Var CustomSweetrPercent[5] = "(140%)"
|
|
|
|
|
|
|
|
|
|
|
|
; End Customer Coffee
|
|
|
|
Var BGSugarHotHealthy = "Invisible"
|
|
Var BGSugarColdHealthy = "Invisible"
|
|
|
|
Var showText8 = "Invisible"
|
|
|
|
;Var showShotEnable = "Enable"
|
|
;Var ShotCoffeePremium = "Enable"
|
|
;Var showOreoAddEnable = "Enable"
|
|
;Var showCustomCoffee = "Enable"
|
|
|
|
Var CerealMilkToppingEnable = "Invisible"
|
|
|
|
Var ExtraTopping = "Invisible"
|
|
|
|
; On open
|
|
Var LidState = Lid1Status
|
|
|
|
;SAVELOG PreviseXMLFileName2
|
|
|
|
Var MenuReady = "-"
|
|
|
|
Var topping1 = "1"
|
|
Var topping2 = "31"
|
|
Var topping3 = "31"
|
|
|
|
|
|
Var BugFlag = 0
|
|
Var DirImageInter = "ROOT/taobin_project/image/topping_revamp_inter"
|
|
|
|
If show_eng = "true" Then
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping2_en"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
|
|
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"
|
|
Var bnAcceptX = 360
|
|
|
|
Var text_show_thai = "Invisible"
|
|
Var text_show_eng = "Enable"
|
|
|
|
Var topping_shot_price_x = 630
|
|
Var text_x_add_oreo_price = 430
|
|
Var text_show_normal_x = 408
|
|
Var text_x_free_adjust = 100
|
|
Var text_milk_choice_price_x = 255
|
|
If PromotionOreoToppingFreeEnable = 0 Then
|
|
Var text_x_free_adjust = text_x_free_adjust + 5
|
|
EndIf
|
|
|
|
Var CustomCoffeeLevelText[0] = "Medium"
|
|
Var CustomCoffeeLevelText[1] = "Just Right"
|
|
Var CustomCoffeeLevelText[2] = "Dark"
|
|
Var CustomCoffeeLevelText[3] = "Darker"
|
|
|
|
Var CustomCoffeeTampingText[0] = "Light"
|
|
Var CustomCoffeeTampingText[1] = "Medium"
|
|
Var CustomCoffeeTampingText[2] = "Hight"
|
|
|
|
Var CustomSweetrText[0] = "Not sweet"
|
|
Var CustomSweetrText[1] = "Little"
|
|
Var CustomSweetrText[2] = "Less"
|
|
Var CustomSweetrText[3] = "Perfect"
|
|
Var CustomSweetrText[4] = "Extra"
|
|
Var CustomSweetrText[5] = "Sweetest"
|
|
|
|
|
|
Var CustomEspressoText[0] = "Normal"
|
|
Var CustomEspressoText[1] = "1 Shot"
|
|
|
|
Var CustomEnergyText[0] = "1 Shot"
|
|
Var CustomEnergyText[1] = "2 Shot"
|
|
|
|
Var CustomCocoaText[0] = "Cocoa X2"
|
|
Var CustomCocoaText[1] = "Cocoa X3"
|
|
Var CustomCocoaText[2] = "Cocoa X10"
|
|
|
|
|
|
Var CustomOvaltineText[0] = "Ovaltine X2"
|
|
Var CustomOvaltineText[1] = "Ovaltine X3"
|
|
Var CustomOvaltineText[2] = "Ovaltine X10"
|
|
|
|
Var CustomMilkText[0] = "Light"
|
|
Var CustomMilkText[1] = "Normal"
|
|
Var CustomMilkText[2] = "Rich"
|
|
|
|
|
|
|
|
Var custom_coffee_level_medium_text_x = 540
|
|
Var custom_coffee_level_medium_price_x = 600
|
|
|
|
Var custom_coffee_level_right_text_x = 676
|
|
|
|
Var custom_coffee_level_darker_text_x = 880
|
|
Var custom_coffee_level_dark_text_x = 785
|
|
Var SugarZeroCalPrice_X = 540
|
|
Var CustomSweetNotTextX = 310
|
|
Var CustomSweetNotPercentTextX = 388
|
|
|
|
|
|
Var CustomSweetLittleTextX = 442
|
|
Var CustomSweetLittlePercentTextX = 488
|
|
|
|
|
|
Var CustomSweetLessTextX = 553
|
|
Var CustomSweetLessPercentTextX = 595
|
|
|
|
Var CustomSweetPerfectTextX = 660
|
|
Var CustomSweetPerfectPercentTextX = 715
|
|
|
|
Var CustomSweetExtraTextX = 775
|
|
Var CustomSweetExtraPercentTextX = 815
|
|
|
|
|
|
Var CustomSweetestTextX = 865
|
|
Var CustomSweetestPercentTextX = 935
|
|
Var CustomEspressoTextX = 793
|
|
|
|
Var CustomEspressoShotTextX = 892
|
|
Var SugarZeroCalTextX = 890
|
|
Var SugarTextX = 800
|
|
Var HealthySugarTextX = 700
|
|
Var HealthySugarZeroCalTextX = 830
|
|
|
|
Var TampingCoffeeI_X = 696
|
|
Var TampingCoffeeII_X = 790
|
|
Var TampingCoffeeIII_X = 920
|
|
|
|
Var CustomMilkIntensityI_X = 679
|
|
Var CustomMilkIntensityII_X = 795
|
|
Var CustomMilkIntensityIII_X = 893
|
|
|
|
; healthy sugar
|
|
Var CustomHealthySugar_Text_X = 380
|
|
Var CustomHealthySugar_TextBelow_X = 300
|
|
Var CustomHealthySugarI_Text_X = 530
|
|
Var CustomHealthySugarI_TextBelow_X = 450
|
|
Var CustomHealthySugarII_Text_X = 670
|
|
Var CustomHealthySugarII_TextBelow_X = 600
|
|
Var CustomHealthySugarIII_Text_X = 840
|
|
Var CustomHealthySugarIII_TextBelow_X = 770
|
|
|
|
Var Paynow_text_X = 54
|
|
Var Cancel_text_X = 53
|
|
Else
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping2"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
|
|
Var bnAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bn_accept2.png"
|
|
Var bpAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bp_accept2.png"
|
|
Var bnAcceptX = 360
|
|
|
|
|
|
|
|
Var text_show_thai = "Enable"
|
|
Var text_show_eng = "Invisible"
|
|
|
|
Var topping_shot_price_x = 600
|
|
Var text_x_add_oreo_price = 420
|
|
Var text_show_normal_x = 386
|
|
Var text_x_free_adjust = 70
|
|
Var text_milk_choice_price_x = 237
|
|
If PromotionOreoToppingFreeEnable = 0 Then
|
|
Var text_x_free_adjust = text_x_free_adjust + 30
|
|
EndIf
|
|
|
|
Var CustomCoffeeLevelText[0] = "กลาง"
|
|
Var CustomCoffeeLevelText[1] = "กำลังพอดี"
|
|
Var CustomCoffeeLevelText[2] = "เข้ม"
|
|
Var CustomCoffeeLevelText[3] = "เข้มกว่า"
|
|
|
|
Var CustomCoffeeTampingText[0] = "เบา"
|
|
Var CustomCoffeeTampingText[1] = "ปานกลาง"
|
|
Var CustomCoffeeTampingText[2] = "เน้น"
|
|
|
|
|
|
Var CustomSweetrText[0] = "ไม่หวาน"
|
|
Var CustomSweetrText[1] = "จุบจิบ"
|
|
Var CustomSweetrText[2] = "น้อย"
|
|
Var CustomSweetrText[3] = "พอดี"
|
|
Var CustomSweetrText[4] = "จึ้ง"
|
|
Var CustomSweetrText[5] = "สุขิต"
|
|
|
|
|
|
Var CustomEspressoText[0] = "ไม่เพิ่ม"
|
|
Var CustomEspressoText[1] = "1 ช็อต"
|
|
|
|
Var CustomEnergyText[0] = "1 ช็อต"
|
|
Var CustomEnergyText[1] = "2 ช็อต"
|
|
|
|
Var CustomCocoaText[0] = "โกโก้ X2"
|
|
Var CustomCocoaText[1] = "โกโก้ X3"
|
|
Var CustomCocoaText[2] = "โกโก้ X10"
|
|
|
|
|
|
Var CustomOvaltineText[0] = "โอวัลติน X2"
|
|
Var CustomOvaltineText[1] = "โอวัลติน X3"
|
|
Var CustomOvaltineText[2] = "โอวัลติน X10"
|
|
|
|
Var CustomMilkText[0] = "ไลท์"
|
|
Var CustomMilkText[1] = "ปกติ"
|
|
Var CustomMilkText[2] = "ข้นมัน"
|
|
|
|
|
|
Var custom_coffee_level_medium_text_x = 560
|
|
Var custom_coffee_level_medium_price_x = 600
|
|
Var custom_coffee_level_right_text_x = 676
|
|
Var custom_coffee_level_darker_text_x = 880
|
|
Var custom_coffee_level_dark_text_x = 790
|
|
|
|
Var SugarZeroCalPrice_X = 482
|
|
|
|
Var CustomSweetNotTextX = 331
|
|
Var CustomSweetNotPercentTextX = 388
|
|
|
|
Var CustomSweetLittleTextX = 445
|
|
Var CustomSweetLittlePercentTextX = 488
|
|
|
|
Var CustomSweetLessTextX = 560
|
|
Var CustomSweetLessPercentTextX = 595
|
|
|
|
Var CustomSweetPerfectTextX = 675
|
|
Var CustomSweetPerfectPercentTextX = 710
|
|
|
|
Var CustomSweetExtraTextX = 795
|
|
Var CustomSweetExtraPercentTextX = 820
|
|
|
|
Var CustomSweetestTextX = 900
|
|
Var CustomSweetestPercentTextX = 935
|
|
|
|
Var CustomEspressoTextX = 804
|
|
|
|
Var CustomEspressoShotTextX = 892
|
|
Var SugarZeroCalTextX = 890
|
|
Var SugarTextX = 800
|
|
Var HealthySugarTextX = 700
|
|
Var HealthySugarZeroCalTextX = 830
|
|
|
|
Var TampingCoffeeI_X = 696
|
|
Var TampingCoffeeII_X = 790
|
|
Var TampingCoffeeIII_X = 920
|
|
|
|
Var CustomMilkIntensityI_X = 694
|
|
Var CustomMilkIntensityII_X = 804
|
|
Var CustomMilkIntensityIII_X = 893
|
|
|
|
; healthy sugar
|
|
Var CustomHealthySugar_Text_X = 380
|
|
Var CustomHealthySugar_TextBelow_X = 300
|
|
Var CustomHealthySugarI_Text_X = 530
|
|
Var CustomHealthySugarI_TextBelow_X = 450
|
|
Var CustomHealthySugarII_Text_X = 670
|
|
Var CustomHealthySugarII_TextBelow_X = 600
|
|
Var CustomHealthySugarIII_Text_X = 840
|
|
Var CustomHealthySugarIII_TextBelow_X = 770
|
|
|
|
Var Paynow_text_X = 64
|
|
Var Cancel_text_X = 53
|
|
EndIf
|
|
|
|
If LanguageShow = "MYANMAR" Then
|
|
Var CustomEspressoShotTextX = 892
|
|
Var CustomEspressoTextX = 804
|
|
Var SugarZeroCalTextX = 880
|
|
Var HealthySugarTextX = 700
|
|
Var HealthySugarZeroCalTextX = 830
|
|
|
|
Var CustomSweetNotTextX = 310
|
|
Var CustomSweetLittleTextX = 415
|
|
Var CustomSweetLessTextX = 525
|
|
Var CustomSweetPerfectTextX = 640
|
|
Var CustomSweetExtraTextX = 757
|
|
Var CustomSweetestTextX = 865
|
|
|
|
Var SugarTextX = 800
|
|
Var custom_coffee_level_right_text_x = 676
|
|
|
|
Var TampingCoffeeI_X = 661
|
|
Var TampingCoffeeII_X = 755
|
|
Var TampingCoffeeIII_X = 885
|
|
|
|
Var CustomMilkIntensityI_X = 694
|
|
Var CustomMilkIntensityII_X = 804
|
|
Var CustomMilkIntensityIII_X = 893
|
|
|
|
; healthy sugar
|
|
Var CustomHealthySugar_Text_X = 360
|
|
Var CustomHealthySugar_TextBelow_X = 295
|
|
Var CustomHealthySugarI_Text_X = 510
|
|
Var CustomHealthySugarI_TextBelow_X = 440
|
|
Var CustomHealthySugarII_Text_X = 630
|
|
Var CustomHealthySugarII_TextBelow_X = 600
|
|
Var CustomHealthySugarIII_Text_X = 840
|
|
Var CustomHealthySugarIII_TextBelow_X = 765
|
|
|
|
Var Paynow_text_X = 54
|
|
Var Cancel_text_X = 53
|
|
EndIf
|
|
|
|
If LanguageShow = "MSC" Then
|
|
Var CustomEspressoShotTextX = 872
|
|
Var CustomEspressoTextX = 790
|
|
Var SugarZeroCalTextX = 890
|
|
Var HealthySugarTextX = 710
|
|
Var HealthySugarZeroCalTextX = 830
|
|
|
|
Var CustomSweetNotTextX = 340
|
|
Var CustomSweetLittleTextX = 442
|
|
Var CustomSweetLessTextX = 553
|
|
Var CustomSweetPerfectTextX = 660
|
|
Var CustomSweetExtraTextX = 760
|
|
Var CustomSweetestTextX = 865
|
|
|
|
Var SugarTextX = 810
|
|
Var custom_coffee_level_right_text_x = 686
|
|
|
|
Var TampingCoffeeI_X = 696
|
|
Var TampingCoffeeII_X = 800
|
|
Var TampingCoffeeIII_X = 920
|
|
|
|
Var CustomMilkIntensityI_X = 684
|
|
Var CustomMilkIntensityII_X = 794
|
|
Var CustomMilkIntensityIII_X = 893
|
|
|
|
; healthy sugar
|
|
Var CustomHealthySugar_Text_X = 400
|
|
Var CustomHealthySugar_TextBelow_X = 300
|
|
Var CustomHealthySugarI_Text_X = 550
|
|
Var CustomHealthySugarI_TextBelow_X = 450
|
|
Var CustomHealthySugarII_Text_X = 690
|
|
Var CustomHealthySugarII_TextBelow_X = 600
|
|
Var CustomHealthySugarIII_Text_X = 850
|
|
Var CustomHealthySugarIII_TextBelow_X = 760
|
|
|
|
Var Paynow_text_X = 44
|
|
Var Cancel_text_X = 63
|
|
EndIf
|
|
|
|
Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust
|
|
|
|
Var bg_strawlid = DirImage + "/topping_revamp/bg_strawlid.png"
|
|
Var bg_straw_only = DirImage + "/bg_straw_only.png"
|
|
Var bg_lid_only = DirImage + "/bg_lid_only.png"
|
|
|
|
|
|
|
|
Var backGroundAddExtra = DirImage + "/bg_add_shot_coffee_only.png"
|
|
Var backGroundAddExtra2 = DirImage + "/bg_add_shot_coffee_only.png"
|
|
|
|
Var backGroundAddShotPremium = DirImage + "/bg_add_shot_coffee2_only.png"
|
|
Var backGroundAddShotPremiumWith = DirImage + "/bg_add_shot_coffee_only.png"
|
|
|
|
|
|
|
|
;Var blendedState = "Enable"
|
|
;Var ShotCoffeeBG = "Enable"
|
|
;Var showShotEnable = "Enable"
|
|
;Var ShowLidStraw = "Enable"
|
|
;Var ShowStrawOnly = "Enable"
|
|
;Var ShowLidOnly = "Enable"
|
|
|
|
Var ShiftSugarStep = 1
|
|
|
|
|
|
CRLFToSpace showname
|
|
CRLFToSpace showdesc
|
|
|
|
;- Begin
|
|
Var PriceDrinkNoTop = PriceDrink
|
|
Var PriceDrinkTmp = PriceDrink
|
|
Var PriceDrinkTmpShow = charOfBaht + PriceDrinkTmp
|
|
Var Timeout = 0
|
|
|
|
;SAVELOG PriceDrinkTmp
|
|
;- End
|
|
|
|
If RoadShow = "true" Then
|
|
Var PriceDrinkTmp = "Free"
|
|
Var SaveSelectDrinkRoadShow = SelectDrink
|
|
EndIf
|
|
|
|
DEBUGVAR SaveSelectDrinkRoadShow
|
|
|
|
If ShowPrice = "Invisible" Then
|
|
Var PriceDrinkTmpShow = "Free"
|
|
EndIf
|
|
|
|
Var StateImgKeto = "Invisible"
|
|
|
|
|
|
Var ToppingGotoPayment = "true"
|
|
|
|
DEBUGVAR backGroundAddExtra
|
|
DEBUGVAR backGroundAddShotPremium
|
|
|
|
DEBUGVAR MultiPayEnable
|
|
DEBUGVAR CART_COUNT
|
|
Var btnAddCart = "Invisible"
|
|
If MultiPayEnable = "true" Then
|
|
Var btnAddCart = "Enable"
|
|
If CART_COUNT = 3 Then
|
|
Var btnAddCart = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var LidDeactiveButton = "Invisible"
|
|
Var StrawDeactiveButton = "Invisible"
|
|
|
|
Machine DoorClose
|
|
Machine DoorLidClose
|
|
|
|
Var ButtonNext = "false"
|
|
|
|
Var NEW_MULTI = "Invisible"
|
|
|
|
Var high_light_drink_type = "Invisible"
|
|
Var toppingSelectState = "Invisible"
|
|
|
|
Var SelectToppingType = 0
|
|
Var SelectedToppingCount = 0
|
|
Var SelectSyrupType = 0
|
|
|
|
Var text_hot_color = "0x84776F"
|
|
Var text_cold_color = "0x84776F"
|
|
Var text_blender_color = "0x84776F"
|
|
|
|
If new_layout = "true" Then
|
|
Var PriceDrinkTmpShow = "---"
|
|
|
|
Var show_select_type = "Enable"
|
|
|
|
Var hot_button_state = PD_STAGE_1
|
|
Var cold_button_state = PD_STAGE_2
|
|
Var blend_button_state = PD_STAGE_3
|
|
|
|
; Protect have product-code but menu disable or invalid.
|
|
If hot_button_state = "Invisible" Then
|
|
|
|
Var hot_button_state = "Disable2"
|
|
EndIf
|
|
If cold_button_state = "Invisible" Then
|
|
|
|
Var cold_button_state = "Disable2"
|
|
EndIf
|
|
If blend_button_state = "Invisible" Then
|
|
|
|
Var blend_button_state = "Disable2"
|
|
EndIf
|
|
|
|
|
|
Function 2
|
|
|
|
Else
|
|
Var show_select_type = "Invisible"
|
|
|
|
; assume auto select
|
|
Var SelectDrinkType = 1
|
|
EndIf
|
|
|
|
DEBUGVAR show_select_type
|
|
DEBUGVAR PriceD1
|
|
DEBUGVAR PriceD2
|
|
DEBUGVAR PriceD3
|
|
|
|
If From15THBPro = 1 Then
|
|
If PriceD1 > 0 Then
|
|
Var OriginalPriceD1 = PriceD1
|
|
Var PriceD1 = 15
|
|
EndIf
|
|
If PriceD2 > 0 Then
|
|
Var OriginalPriceD2 = PriceD2
|
|
Var PriceD2 = 15
|
|
EndIf
|
|
If PriceD3 > 0 Then
|
|
Var OriginalPriceD3 = PriceD3
|
|
Var PriceD3 = 15
|
|
EndIf
|
|
EndIf
|
|
|
|
If hot_button_state = "Disable2" Then
|
|
Var text_price_d1 = ""
|
|
Else
|
|
Var text_price_d1 !assigned StringFmt( PriceD1 , DisplayFormat, PreScaleConvertShow)
|
|
EndIf
|
|
|
|
If cold_button_state = "Disable2" Then
|
|
Var text_price_d2 = ""
|
|
Else
|
|
Var text_price_d2 !assigned StringFmt( PriceD2 , DisplayFormat, PreScaleConvertShow)
|
|
EndIf
|
|
|
|
If blend_button_state = "Disable2" Then
|
|
Var text_price_d3 = ""
|
|
Else
|
|
Var text_price_d3 !assigned StringFmt( PriceD3 , DisplayFormat, PreScaleConvertShow)
|
|
EndIf
|
|
|
|
DEBUGVAR PD_CODE1
|
|
DEBUGVAR PD_CODE2
|
|
DEBUGVAR PD_CODE3
|
|
DEBUGVAR PD_STAGE_1
|
|
DEBUGVAR PD_STAGE_2
|
|
DEBUGVAR PD_STAGE_3
|
|
|
|
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"
|
|
|
|
If MilkChoiceVeganEnable = 1 Then
|
|
Var OatMilkToppingBg = DirImage + "/bg_milk_choice_j.png"
|
|
Else
|
|
Var OatMilkToppingBg = DirImage + "/bg_milk_choice.png"
|
|
EndIf
|
|
Var OatMilkToppingEnable = "Invisible"
|
|
Var OatMilkEnable = "Invisible"
|
|
|
|
|
|
Var CerealMilkEnable = "Enable"
|
|
|
|
Var topping_price_refresh = 1
|
|
|
|
Var StrawState = "Enable"
|
|
Var LidState = "Enable"
|
|
Var MAT_ID_9701 = StrawState
|
|
|
|
|
|
|
|
Var SubMenuGroupIDSlot6_1 = 0
|
|
|
|
|
|
Var bg_lidProblem_ST = "Invisible"
|
|
Var GetLidButtonState = "Invisible"
|
|
|
|
Var PromotionIDCurrentOrder = 0
|
|
|
|
DEBUGVAR PromotionIDCurrentOrder
|
|
|
|
|
|
Var DiscountWithIdentifyState = "Invisible"
|
|
Var WelcomeDrinkButtonState = "Invisible"
|
|
|
|
|
|
DEBUGVAR Price5Active
|
|
DEBUGVAR EnableLiveness
|
|
DEBUGVAR DiscountWithIdentifyState
|
|
DEBUGVAR WelcomeDrinkEnable
|
|
|
|
If OreoWelcomeDrinkFromClick = 1 Then
|
|
Var OreoWelcomeDrinkFromClick = 0
|
|
Var WelcomeDrinkButtonState = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR WelcomeDrinkButtonState
|
|
|
|
If EnableLiveness = "true" Then
|
|
If CameraCount = 1 Then
|
|
; echo -n true > /mnt/sdcard/enable_discount_price5
|
|
READ_FILE "/mnt/sdcard/enable_discount_price5" EnableDiscountPrice5
|
|
DEBUGVAR EnableDiscountPrice5
|
|
If EnableDiscountPrice5 = "true" Then
|
|
Var EnableDiscountWithIdentify = 1
|
|
Var DiscountWithIdentifyState = "Enable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
Var OatMilkX = 400
|
|
Else
|
|
Var OatMilkX = 270
|
|
EndIf
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/flash_deal/topping_page.ev"
|
|
|
|
Var MenuReason = ""
|
|
|
|
|
|
If SugarZeroCalEnable = "false" Then
|
|
Var SugarZeroCalOption = "Invisible"
|
|
EndIf
|
|
If MAT_ID_1215 = "Disable" Then
|
|
; Disable2 away
|
|
Var SugarZeroCalCheck = "Disable2"
|
|
EndIf
|
|
If MAT_ID_1215 = "Enable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
|
|
If FromCoffeeDrink1BathPro = 1 Then
|
|
Var DisableAllNotFreeTopping = 1
|
|
EndIf
|
|
|
|
Var ShowSpecialButton = "Invisible"
|
|
Var TextShowSpecialButton = ""
|
|
Var OverridePrice = 100
|
|
Var SpecialButtonOpenFileXML = "ROOT/taobin_project/xml/page_payment.xml"
|
|
|
|
|
|
TRY "ROOT/taobin_project/speical/call_from_topping.ev"
|
|
|
|
DEBUGVAR SpeicalButtonPositionX
|
|
DEBUGVAR TextShowSpecialButton
|
|
|
|
If show_eng = "true" Then
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
Else
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
EndIf
|
|
|
|
BackslashNToEnter showname
|
|
BackslashNToEnter showdesc
|
|
CRLFToSpace showname
|
|
CRLFToSpace showdesc
|
|
DEBUGVAR showname
|
|
DEBUGVAR showdesc
|
|
|
|
|
|
|
|
Strlen showname show_name_len
|
|
If show_eng = "true" Then
|
|
If show_name_len > 24 Then
|
|
Var showname = showname + "###size=54"
|
|
EndIf
|
|
Else
|
|
If show_name_len > 0 Then
|
|
Var showname = showname + "###size=68"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var MenuReasonStage = "Invisible"
|
|
Var AdvertOpened = "false"
|
|
Var SpiralReady = 0
|
|
</EventOpen>
|
|
<Timeout> 1000 </Timeout>
|
|
<EventTimeout>
|
|
DEBUGVAR Timeout
|
|
|
|
DEBUGVAR MenuReady
|
|
DEBUGVAR CupRemain
|
|
DEBUGVAR FreePowerup
|
|
|
|
DEBUGVAR showSweetLevel
|
|
|
|
|
|
|
|
|
|
If CLOSE_ORDER_NOW = "true" Then
|
|
;include="ROOT/taobin_project/inc/return_condition.ev"
|
|
EndIf
|
|
|
|
|
|
If NoWaitMachineEnable = 1 Then
|
|
DEBUGVAR MachineStage
|
|
DEBUGVAR ConfirmDrinkButtonState
|
|
If MachineStage = "close-maintenance" Then
|
|
Var ConfirmDrinkButtonState = "Enable"
|
|
|
|
If stop_now = "true" Then
|
|
SAVELOG "stop_now is true page_topping_select7.xml"
|
|
;include="ROOT/taobin_project/inc/return_condition.ev"
|
|
EndIf
|
|
Else
|
|
Var ConfirmDrinkButtonState = "Invisible"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If CLOSE_ORDER_NOW = "true" Then
|
|
SAVELOG "DEACTIVE in page_topping_select7.xml"
|
|
;include="ROOT/taobin_project/inc/return_condition.ev"
|
|
EndIf
|
|
|
|
If SELLSTATUS = "DEACTIVE" Then
|
|
SAVELOG "DEACTIVE in page_topping_select7.xml"
|
|
;include="ROOT/taobin_project/inc/return_condition.ev"
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR Seeker
|
|
|
|
If SelectDrinkType = 1 Then
|
|
If Seeker.SmoothieToPayment = 1 Then
|
|
If SpiralReady = 1 Then
|
|
|
|
Else
|
|
Var MenuReady = "WaitSpiral"
|
|
EndIf
|
|
EndIf
|
|
|
|
If MenuReady = "YES" Then
|
|
DEBUGVAR ToppingDetail
|
|
DEBUGVAR SelectToppingType
|
|
|
|
; 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
|
|
DEBUGVAR DoorCupPosition
|
|
DEBUGVAR show_eng
|
|
|
|
If menu_blend_free = "true" Then
|
|
If blend_button_state = "PressForever" Then
|
|
Var PriceDrinkNoTop = 0
|
|
Var PriceDrink = 0
|
|
Var PriceDrinkTmpShow = "Free"
|
|
EndIf
|
|
EndIf
|
|
|
|
If Seeker = "next" Then
|
|
If CupRemain > 0 Then
|
|
If Only18 = "true" Then
|
|
DEBUGVAR SelectDrink
|
|
MenuProfile SelectDrink "IsMenuInProfile"
|
|
|
|
; disable old verification
|
|
Var AdultState1 = "Invisible"
|
|
|
|
DEBUGVAR IsMenuInProfile
|
|
|
|
If IsMenuInProfile = "true" Then
|
|
|
|
If EnableLiveness = "true" Then
|
|
DEBUGVAR EnableLiveness
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
; full
|
|
Open "ROOT/taobin_project/xml/page_identity_verification.xml"
|
|
Else
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
; Only IDCard
|
|
Open "ROOT/taobin_project/xml/page_identity18_verification.xml"
|
|
EndIf
|
|
Else
|
|
If SelectToppingType = 1 Then
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/page_payment.xml"
|
|
Else
|
|
Var toppingSelectState = "Enable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If SelectToppingType = 1 Then
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/page_payment.xml"
|
|
Else
|
|
Var toppingSelectState = "Enable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If DoorCupPosition = "bottom" Then
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
If FromEnergyDrink1BathPro = 1 Then
|
|
Open "ROOT/taobin_project/xml/event/energy_drink_1_bath/page_energy_drink_1_bath_consent.xml"
|
|
EndIf
|
|
|
|
If Only18 = "true" Then
|
|
DEBUGVAR SelectDrink
|
|
MenuProfile SelectDrink "IsMenuInProfile"
|
|
|
|
; disable old verification
|
|
Var AdultState1 = "Invisible"
|
|
|
|
DEBUGVAR IsMenuInProfile
|
|
|
|
If IsMenuInProfile = "true" Then
|
|
; Check profile
|
|
|
|
If EnableLiveness = "true" Then
|
|
DEBUGVAR EnableLiveness
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
; full
|
|
Open "ROOT/taobin_project/xml/page_identity_verification.xml"
|
|
Else
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
; Only IDCard
|
|
Open "ROOT/taobin_project/xml/page_identity18_verification.xml"
|
|
EndIf
|
|
Else
|
|
If SelectToppingType = 1 Then
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/page_payment.xml"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If SelectToppingType = 1 Then
|
|
If AdvertOpened = "true" Then
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Var AdvertOpened = "true"
|
|
EndIf
|
|
Open "ROOT/taobin_project/xml/page_payment.xml"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Var Timeout = Timeout + 1
|
|
|
|
If Timeout > 40 Then
|
|
Var Timeout = 0
|
|
If Seeker = "next" Then
|
|
|
|
If ChildrenFree = 1 Then
|
|
Var ChildrenFree = 0
|
|
Var Cid = 33
|
|
Var PointCrm = "0"
|
|
Var GetScore = "1"
|
|
AddData Cid TelNumPromotion IDNum PointCrm GetScore
|
|
EndIf
|
|
|
|
|
|
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
|
Open "ROOT/taobin_project/xml/page_brewing3Conti.xml"
|
|
Else
|
|
|
|
If ChildrenFree = 1 Then
|
|
Var ChildrenFree = 0
|
|
Var Cid = 33
|
|
Var PointCrm = "0"
|
|
Var GetScore = "1"
|
|
AddData Cid TelNumPromotion IDNum PointCrm GetScore
|
|
EndIf
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Open "ROOT/taobin_project/xml/page_catalog.xml"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If MultiPayEnable = "true" Then
|
|
If NEW_MULTI = "Invisible" Then
|
|
Var NEW_MULTI = "Enable"
|
|
Else
|
|
Var NEW_MULTI = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
|
|
If Seeker = "curr" Then
|
|
If DoorCupPosition = "bottom" Then
|
|
; It normal
|
|
Var EmergencyStop = "false"
|
|
Else
|
|
Var EmergencyStop = "true"
|
|
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR NoWaitMachineEnable
|
|
If NoWaitMachineEnable = 1 Then
|
|
DEBUGVAR MachineStage
|
|
DEBUGVAR ConfirmDrinkButtonState
|
|
If MachineStage = "close-maintenance" Then
|
|
Var ConfirmDrinkButtonState = "Enable"
|
|
|
|
If stop_now = "true" Then
|
|
Open "ROOT/taobin_project/xml/page_back_to_error.xml"
|
|
EndIf
|
|
Else
|
|
Var ConfirmDrinkButtonState = "Invisible"
|
|
EndIf
|
|
Else
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR bnAccept
|
|
|
|
If show_eng = "true" Then
|
|
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
|
|
Var ShowTextSelfTestCountDown = "Please wait a moment (" + MACHINE_SELF_TEST_COUNT_DOWN
|
|
Var ShowTextSelfTestCountDown = ShowTextSelfTestCountDown + ")"
|
|
Else
|
|
Var ShowTextSelfTestCountDown = "Please wait a moment"
|
|
EndIf
|
|
Else
|
|
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
|
|
Var ShowTextSelfTestCountDown ="กรุณารอสักครู่ (" + MACHINE_SELF_TEST_COUNT_DOWN
|
|
Var ShowTextSelfTestCountDown = ShowTextSelfTestCountDown + ")"
|
|
Else
|
|
Var ShowTextSelfTestCountDown ="กรุณารอสักครู่"
|
|
EndIf
|
|
EndIf
|
|
|
|
If LanguageShow = "MYANMAR" Then
|
|
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
|
|
Var ShowTextSelfTestCountDown = "ခဏစောင့်ပေးပါ။ (" + MACHINE_SELF_TEST_COUNT_DOWN
|
|
Var ShowTextSelfTestCountDown = ShowTextSelfTestCountDown + ")"
|
|
Else
|
|
Var ShowTextSelfTestCountDown = "ခဏစောင့်ပေးပါ။"
|
|
EndIf
|
|
EndIf
|
|
|
|
If LanguageShow = "MSC" Then
|
|
If MACHINE_SELF_TEST_COUNT_DOWN > 0 Then
|
|
Var ShowTextSelfTestCountDown = "请稍等一下 (" + MACHINE_SELF_TEST_COUNT_DOWN
|
|
Var ShowTextSelfTestCountDown = ShowTextSelfTestCountDown + ")"
|
|
Else
|
|
Var ShowTextSelfTestCountDown = "请稍等一下"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
If Seeker = "curr" Then
|
|
If MenuReason = "arm-not-ready" Then
|
|
|
|
SAVELOG "goto mode arm-not-ready"
|
|
DEBUGVAR DoorCupPosition
|
|
|
|
If DoorCupPosition = "bottom" Then
|
|
Machine RemoveCup
|
|
Machine DoorLidOpen
|
|
Else
|
|
Var TextSelfTestCntColor = "0x513C2F"
|
|
Var ConfirmDrinkButtonState = "Enable"
|
|
|
|
If show_eng = "true" Then
|
|
Var ShowTextSelfTestCountDown = "Please take out the glass."
|
|
Else
|
|
Var ShowTextSelfTestCountDown = "กรุณานําแก้วออก"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If MenuReason = "brew-stg" Then
|
|
Var ConfirmDrinkButtonState = "Enable"
|
|
If Timeout > 15 Then
|
|
Var MenuReason = "-"
|
|
Var Timeout = 0
|
|
Var ConfirmDrinkButtonState = "Invisible"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If MenuReason = "-" Then
|
|
|
|
Else
|
|
Var MenuReasonString = MenuReason
|
|
Var MenuReasonStage = "Enable"
|
|
EndIf
|
|
|
|
|
|
Var oreo_y = 1060
|
|
Var oreo_button_y = 1070
|
|
Var oreo_text_y = 1085
|
|
|
|
Var ovaltine_y = 1060
|
|
Var ovaltine_button_y = 1070
|
|
Var ovaltine_text_y = 1085
|
|
|
|
Var cocoa_y = 1060
|
|
Var cocoa_button_y = 1070
|
|
Var cocoa_text_y = 1085
|
|
|
|
Var bottom_y = 1060
|
|
Var accept_y = 1075
|
|
|
|
Var offset_total = 0
|
|
|
|
Var ovaltine_y = 1060
|
|
Var ovaltine_button_y = 1070
|
|
Var ovaltine_text_y = 1085
|
|
|
|
If CustomOvaltineState = "Enable" Then
|
|
Var offset_total = offset_total + 72
|
|
EndIf
|
|
|
|
Var oreo_offset = offset_total
|
|
Var oreo_y = 1060 + oreo_offset
|
|
Var oreo_button_y = 1070 + oreo_offset
|
|
Var oreo_text_y = 1085 + oreo_offset
|
|
|
|
If CustomOreoState = "Enable" Then
|
|
Var offset_total = offset_total + 72
|
|
EndIf
|
|
|
|
Var cocoa_offset = offset_total
|
|
Var cocoa_y = 1060 + cocoa_offset
|
|
Var cocoa_button_y = 1070 + cocoa_offset
|
|
Var cocoa_text_y = 1085 + cocoa_offset
|
|
|
|
If CustomCocoaState = "Enable" Then
|
|
Var offset_total = offset_total + 72
|
|
EndIf
|
|
|
|
Var bottom_offset = offset_total
|
|
Var bottom_y = 1060 + bottom_offset
|
|
Var accept_y = 1075 + bottom_offset
|
|
|
|
If Seeker.SmoothieToPayment = 1 Then
|
|
DEBUGVAR MachineSpiralStage
|
|
If MachineEvent = 1 Then
|
|
If MachineSpiralStage = "-" Then
|
|
|
|
Else
|
|
If MachineSpiralStage = "spiral-valid" Then
|
|
Function 2
|
|
Var SpiralReady = 1
|
|
Else
|
|
; Verify error
|
|
DEBUGVAR MachineSpiralErrorCode
|
|
Open "ROOT/taobin_project/xml/page_spiral_invalid_failed.xml"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
TimerReset
|
|
</EventTimeout>
|
|
|
|
<EventLanguageOnChange>
|
|
DEBUGVAR LanguageShow
|
|
DEBUGVAR InternationalEnable
|
|
|
|
SAVELOG "EventLanguageOnChange menu -list"
|
|
|
|
If InternationalEnable = 1 Then
|
|
If CountryName = "Thailand" Then
|
|
Var show_eng_button_stage = "Invisible"
|
|
Var LanguageButtonEnable = "Enable"
|
|
EndIf
|
|
If CountryName = "HongKong" Then
|
|
Var show_eng_button_stage = "Invisible"
|
|
Var LanguageButtonEnable = "Invisible"
|
|
Var BtnLangToggleIndex = "Enable"
|
|
EndIf
|
|
Else
|
|
Var LanguageButtonEnable = "Invisible"
|
|
Var show_eng_button_stage = "Enable"
|
|
EndIf
|
|
|
|
If SelectDrinkType = 1 Then
|
|
Var showname = NameLang[IndexDrinktType][LanguageShowByIndex]
|
|
Var showdesc = DescLang[IndexDrinktType][LanguageShowByIndex]
|
|
Else
|
|
Var showname = aliasName[LanguageShowByIndex]
|
|
Var showdesc = aliasName[LanguageShowByIndex]
|
|
EndIf
|
|
|
|
DEBUGVAR LanguageButtonEnable
|
|
DEBUGVAR show_eng_button_stage
|
|
|
|
OpenInst 3 "ROOT/taobin_project/xml/topview2.xml"
|
|
RefreshAll
|
|
</EventLanguageOnChange>
|
|
|
|
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Width> 1080 </Width>
|
|
<Height> 1540 </Height>
|
|
<Color> "0xeae6e1" </Color>
|
|
</Image>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 990 </X>
|
|
<Y> 408 </Y>
|
|
<State> "Invisible" </State>
|
|
<Filename> show_btn </Filename>
|
|
<FilenamePress> show_btp </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
; eng
|
|
SAVELOG "Lang change!"
|
|
If show_eng = "true" Then
|
|
Var show_eng = "false"
|
|
Else
|
|
Var show_eng = "true"
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping2_en"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_thai_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_thai_lang.png"
|
|
Var showname = NameDrink
|
|
Var showdesc = DrinkDescription
|
|
|
|
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"
|
|
Var bnAcceptX = 360
|
|
|
|
Var text_show_thai = "Invisible"
|
|
Var text_show_eng = "Enable"
|
|
|
|
Var topping_shot_price_x = 630
|
|
Var text_x_add_oreo_price = 430
|
|
Var text_show_normal_x = 408
|
|
Var text_x_free_adjust = 100
|
|
If PromotionOreoToppingFreeEnable = 0 Then
|
|
Var text_x_free_adjust = text_x_free_adjust + 5
|
|
EndIf
|
|
|
|
Var CustomCoffeeLevelText[0] = "Medium"
|
|
Var CustomCoffeeLevelText[1] = "Just Right"
|
|
Var CustomCoffeeLevelText[2] = "Dark"
|
|
Var CustomCoffeeLevelText[3] = "Darker"
|
|
|
|
Var CustomCoffeeTampingText[0] = "Light"
|
|
Var CustomCoffeeTampingText[1] = "Medium"
|
|
Var CustomCoffeeTampingText[2] = "Hight"
|
|
|
|
Var CustomSweetrText[0] = "Not sweet"
|
|
Var CustomSweetrText[1] = "Little"
|
|
Var CustomSweetrText[2] = "Less"
|
|
Var CustomSweetrText[3] = "Perfect"
|
|
Var CustomSweetrText[4] = "Extra"
|
|
Var CustomSweetrText[5] = "Sweetest"
|
|
|
|
|
|
Var CustomEspressoText[0] = "Normal"
|
|
Var CustomEspressoText[1] = "1 Shot"
|
|
|
|
Var CustomEnergyText[0] = "1 Shot"
|
|
Var CustomEnergyText[1] = "2 Shot"
|
|
|
|
Var CustomCocoaText[0] = "Cocoa X2"
|
|
Var CustomCocoaText[1] = "Cocoa X3"
|
|
Var CustomCocoaText[2] = "Cocoa X10"
|
|
|
|
|
|
Var CustomOvaltineText[0] = "Ovaltine X2"
|
|
Var CustomOvaltineText[1] = "Ovaltine X3"
|
|
Var CustomOvaltineText[2] = "Ovaltine X10"
|
|
|
|
Var CustomMilkText[0] = "Light"
|
|
Var CustomMilkText[1] = "Normal"
|
|
Var CustomMilkText[2] = "Rich"
|
|
|
|
|
|
|
|
Var custom_coffee_level_medium_text_x = 540
|
|
Var custom_coffee_level_medium_price_x = 600
|
|
|
|
Var custom_coffee_level_darker_text_x = 880
|
|
Var custom_coffee_level_dark_text_x = 785
|
|
|
|
|
|
Var CustomSweetNotTextX = 310
|
|
Var CustomSweetNotPercentTextX = 388
|
|
|
|
Var CustomSweetLittleTextX = 445
|
|
Var CustomSweetLittlePercentTextX = 488
|
|
|
|
Var CustomSweetLessTextX = 553
|
|
Var CustomSweetLessPercentTextX = 595
|
|
|
|
|
|
Var CustomSweetPerfectTextX = 660
|
|
Var CustomSweetPerfectPercentTextX = 715
|
|
|
|
Var CustomSweetExtraTextX = 770
|
|
Var CustomSweetExtraPercentTextX = 815
|
|
|
|
Var CustomSweetestTextX = 865
|
|
Var CustomSweetestPercentTextX = 935
|
|
Else
|
|
|
|
Var DirImage = "ROOT/taobin_project/image/topping2"
|
|
Var show_btp = "ROOT/taobin_project/image/bn_eng_lang_press.png"
|
|
Var show_btn = "ROOT/taobin_project/image/bn_eng_lang.png"
|
|
Var showname = NameDrinkTH
|
|
Var showdesc = DrinkDescriptionTH
|
|
|
|
Var bnAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bn_accept2.png"
|
|
Var bpAccept = "ROOT/taobin_project/image/topping2/topping_revamp/bp_accept2.png"
|
|
Var bnAcceptX = 360
|
|
|
|
Var text_show_thai = "Enable"
|
|
Var text_show_eng = "Invisible"
|
|
|
|
Var topping_shot_price_x = 600
|
|
Var text_x_add_oreo_price = 420
|
|
Var text_show_normal_x = 386
|
|
Var text_x_free_adjust = 70
|
|
If PromotionOreoToppingFreeEnable = 0 Then
|
|
Var text_x_free_adjust = text_x_free_adjust + 30
|
|
EndIf
|
|
|
|
Var CustomCoffeeLevelText[0] = "กลาง"
|
|
Var CustomCoffeeLevelText[1] = "กำลังพอดี"
|
|
Var CustomCoffeeLevelText[2] = "เข้ม"
|
|
Var CustomCoffeeLevelText[3] = "เข้มกว่า"
|
|
|
|
Var CustomCoffeeTampingText[0] = "เบา"
|
|
Var CustomCoffeeTampingText[1] = "ปานกลาง"
|
|
Var CustomCoffeeTampingText[2] = "เน้น"
|
|
|
|
Var CustomSweetrText[0] = "ไม่หวาน"
|
|
Var CustomSweetrText[1] = "จุบจิบ"
|
|
Var CustomSweetrText[2] = "น้อย"
|
|
Var CustomSweetrText[3] = "พอดี"
|
|
Var CustomSweetrText[4] = "จึ้ง"
|
|
Var CustomSweetrText[5] = "สุขิต"
|
|
|
|
|
|
Var CustomEspressoText[0] = "ไม่เพิ่ม"
|
|
Var CustomEspressoText[1] = "2 ช็อต"
|
|
|
|
Var CustomCocoaText[0] = "โกโก้ X2"
|
|
Var CustomCocoaText[1] = "โกโก้ X3"
|
|
Var CustomCocoaText[2] = "โกโก้ X10"
|
|
|
|
|
|
Var CustomOvaltineText[0] = "โอวัลติน X2"
|
|
Var CustomOvaltineText[1] = "โอวัลติน X3"
|
|
Var CustomOvaltineText[2] = "โอวัลติน X10"
|
|
|
|
Var CustomMilkText[0] = "ไลท์"
|
|
Var CustomMilkText[1] = "ปกติ"
|
|
Var CustomMilkText[2] = "ข้นมัน"
|
|
|
|
Var custom_coffee_level_medium_text_x = 560
|
|
Var custom_coffee_level_medium_price_x = 600
|
|
|
|
Var custom_coffee_level_darker_text_x = 880
|
|
Var custom_coffee_level_dark_text_x = 790
|
|
|
|
Var CustomSweetNotTextX = 331
|
|
Var CustomSweetNotPercentTextX = 388
|
|
|
|
Var CustomSweetLittleTextX = 442
|
|
Var CustomSweetLittlePercentTextX = 488
|
|
|
|
Var CustomSweetLessTextX = 560
|
|
Var CustomSweetLessPercentTextX = 595
|
|
|
|
Var CustomSweetPerfectTextX = 675
|
|
Var CustomSweetPerfectPercentTextX = 710
|
|
|
|
Var CustomSweetExtraTextX = 795
|
|
Var CustomSweetExtraPercentTextX = 820
|
|
|
|
Var CustomSweetestTextX = 900
|
|
Var CustomSweetestPercentTextX = 935
|
|
EndIf
|
|
|
|
Var text_x_free_topping = text_x_add_oreo_price + text_x_free_adjust
|
|
|
|
|
|
Var backGroundAddExtra = DirImage + "/bg_add_shot_coffee_only.png"
|
|
Var backGroundAddExtra2 = DirImage + "/bg_add_shot_coffee_only.png"
|
|
|
|
Var bg_strawlid = DirImage + "/bg_strawlid.png"
|
|
Var bg_straw_only = DirImage + "/bg_straw_only.png"
|
|
Var bg_lid_only = DirImage + "/bg_lid_only.png"
|
|
|
|
|
|
|
|
Var backGroundAddExtra = DirImage + "/bg_add_shot_coffee_only.png"
|
|
Var backGroundAddExtra2 = DirImage + "/bg_add_shot_coffee_only.png"
|
|
|
|
Var backGroundAddShotPremium = DirImage + "/bg_add_shot_coffee2_only.png"
|
|
Var backGroundAddShotPremiumWith = DirImage + "/bg_add_shot_coffee_only.png"
|
|
|
|
|
|
CRLFToSpace showname
|
|
CRLFToSpace showdesc
|
|
|
|
If BGSugar = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
If SelectDrinkType = 1 Then
|
|
If show_eng = "true" Then
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Sweet.mp3"
|
|
Else
|
|
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/select_level.mp3"
|
|
|
|
; Play Sound #zone
|
|
If SoundBackToSchoolEnable = 1 Then
|
|
|
|
If SoundBackToSchoolType = 1 Then
|
|
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/boy/"
|
|
EndIf
|
|
If SoundBackToSchoolType = 2 Then
|
|
Var RootPathSoundBackToSchool = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/girl/"
|
|
EndIf
|
|
Var PlaySoundLag = RootPathSoundBackToSchool + "select_level.wav"
|
|
EndIf
|
|
|
|
Play PlaySoundLag
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If PromotionOreoToppingFreeEnable = 1 Then
|
|
Var toppingID6price2 = 0
|
|
If show_eng = "true" Then
|
|
|
|
Var text_price_6 = "(Free)"
|
|
Else
|
|
Var text_price_6 = "(ฟรี)"
|
|
EndIf
|
|
EndIf
|
|
|
|
If show_eng = "true" Then
|
|
Var OatMilkX = 400
|
|
Else
|
|
Var OatMilkX = 270
|
|
EndIf
|
|
|
|
|
|
|
|
DEBUGVAR text_lines
|
|
|
|
Function 2
|
|
|
|
|
|
RefreshAll
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
;include="ROOT/taobin_project/inc/video.inc"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EventMachine>
|
|
DEBUGVAR MAT_ID_9701
|
|
DEBUGVAR MAT_ID_9601
|
|
DEBUGVAR MAT_ID_1215
|
|
|
|
DEBUGVAR SubMenuProductCode1
|
|
DEBUGVAR SubMenuName11
|
|
DEBUGVAR SubMenuPrice1
|
|
|
|
DEBUGVAR SubMenuProductCode2
|
|
DEBUGVAR SubMenuName12
|
|
|
|
DEBUGVAR TOPPING1
|
|
DEBUGVAR TOPPING1_EXT_2
|
|
DEBUGVAR TOPPING2
|
|
DEBUGVAR TOPPING3
|
|
DEBUGVAR TOPPING4
|
|
DEBUGVAR TOPPING5
|
|
DEBUGVAR TOPPING6
|
|
DEBUGVAR TOPPING7
|
|
DEBUGVAR TOPPING8
|
|
DEBUGVAR TOPPING9
|
|
DEBUGVAR TOPPING10
|
|
DEBUGVAR TOPPING11
|
|
DEBUGVAR TOPPING12
|
|
DEBUGVAR TOPPING13
|
|
|
|
DEBUGVAR toppingID1index1
|
|
DEBUGVAR toppingID1index2
|
|
DEBUGVAR toppingID1index3
|
|
DEBUGVAR toppingID1index4
|
|
DEBUGVAR toppingID1index5
|
|
DEBUGVAR toppingID1index6
|
|
DEBUGVAR toppingID1index7
|
|
DEBUGVAR toppingID1index8
|
|
DEBUGVAR toppingID1index9
|
|
|
|
DEBUGVAR toppingID2index1
|
|
DEBUGVAR toppingID2index2
|
|
DEBUGVAR toppingID2index3
|
|
DEBUGVAR toppingID2index4
|
|
DEBUGVAR toppingID2index5
|
|
|
|
DEBUGVAR toppingID6index1
|
|
DEBUGVAR toppingID6index2
|
|
DEBUGVAR toppingID6index3
|
|
DEBUGVAR toppingID6index4
|
|
DEBUGVAR toppingID6index5
|
|
DEBUGVAR toppingID6index6
|
|
|
|
DEBUGVAR toppingID6index1Status
|
|
DEBUGVAR toppingID6index2Status
|
|
DEBUGVAR toppingID6index3Status
|
|
DEBUGVAR toppingID6index4Status
|
|
DEBUGVAR toppingID6index5Status
|
|
DEBUGVAR toppingID6index6Status
|
|
|
|
DEBUGVAR toppingID7index1
|
|
DEBUGVAR toppingID7index2
|
|
DEBUGVAR toppingID7index3
|
|
DEBUGVAR toppingID7index4
|
|
DEBUGVAR toppingID7index5
|
|
|
|
DEBUGVAR toppingID8index1
|
|
DEBUGVAR toppingID8index2
|
|
DEBUGVAR toppingID8index3
|
|
|
|
DEBUGVAR toppingID9index1
|
|
DEBUGVAR toppingID9index2
|
|
DEBUGVAR toppingID9index3
|
|
DEBUGVAR toppingID9index4
|
|
|
|
DEBUGVAR toppingID10index1
|
|
DEBUGVAR toppingID10index2
|
|
DEBUGVAR toppingID10index3
|
|
|
|
DEBUGVAR toppingID11index1
|
|
DEBUGVAR toppingID11index2
|
|
DEBUGVAR toppingID11index3
|
|
|
|
DEBUGVAR toppingID12index1
|
|
DEBUGVAR toppingID12index2
|
|
DEBUGVAR toppingID12index3
|
|
|
|
DEBUGVAR toppingID12index1Status
|
|
DEBUGVAR toppingID12index2Status
|
|
DEBUGVAR toppingID12index3Status
|
|
|
|
DEBUGVAR toppingID13index1
|
|
DEBUGVAR toppingID13index2
|
|
DEBUGVAR toppingID13index3
|
|
|
|
DEBUGVAR toppingID13index1Status
|
|
DEBUGVAR toppingID13index2Status
|
|
DEBUGVAR toppingID13index3Status
|
|
|
|
If toppingID1index5 > 0 Then
|
|
SAVELOG "toppingID1index5 not set"
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
DEBUGVAR toppingID1Default
|
|
DEBUGVAR toppingID2Default
|
|
DEBUGVAR toppingID3Default
|
|
|
|
DEBUGVAR toppingID7Default
|
|
DEBUGVAR toppingID8Default
|
|
DEBUGVAR toppingID9Default
|
|
DEBUGVAR toppingID10Default
|
|
|
|
|
|
DEBUGVAR MenuCodeName1
|
|
DEBUGVAR MenuCodeName2
|
|
DEBUGVAR SubMenuOnTop1
|
|
DEBUGVAR SubMenuOnTop2
|
|
DEBUGVAR SubMenuOnTop3
|
|
DEBUGVAR SubMenuProductCode1
|
|
DEBUGVAR SubMenuProductCode2
|
|
DEBUGVAR SubMenuProductCode3
|
|
|
|
|
|
DEBUGVAR toppingID2price1
|
|
DEBUGVAR toppingID2price2
|
|
DEBUGVAR toppingID2price3
|
|
DEBUGVAR toppingID2price4
|
|
DEBUGVAR toppingID3price2
|
|
DEBUGVAR toppingID6price2
|
|
|
|
DEBUGVAR toppingID8price1
|
|
DEBUGVAR toppingID8price2
|
|
DEBUGVAR toppingID8price3
|
|
|
|
DEBUGVAR toppingID9price1
|
|
DEBUGVAR toppingID9price2
|
|
DEBUGVAR toppingID9price3
|
|
DEBUGVAR toppingID9price4
|
|
|
|
|
|
DEBUGVAR BrewParam
|
|
DEBUGVAR UserSeletedSugar
|
|
DEBUGVAR showOvaltineEnable
|
|
|
|
|
|
If BugFlag = 1 Then
|
|
|
|
Else
|
|
|
|
If TOPPING6 = "Topping-Volcano" Then
|
|
Var SelectToppingType = 1
|
|
|
|
Var text_color_6 = "0x84776F"
|
|
|
|
If toppingID6price2 > 0 Then
|
|
DEBUGVAR toppingID6price2
|
|
DEBUGVAR DisplayFormat
|
|
|
|
Var toppingID6price2Conv !assigned StringFmt( toppingID6price2 , DisplayFormat, PreScaleConvertShow)
|
|
|
|
DEBUGVAR toppingID6price2Conv
|
|
|
|
Var text_price_6 = ""
|
|
|
|
Var text_price_6 = toppingID6price2Conv + ")"
|
|
Var text_price_6 = "(+" + text_price_6
|
|
|
|
|
|
|
|
DEBUGVAR text_price_6
|
|
DEBUGVAR text_color_6
|
|
Else
|
|
|
|
Var text_price_6 = ""
|
|
EndIf
|
|
|
|
Var CustomSyrup = "Invisible"
|
|
|
|
Var showOvaltineEnable = "Invisible"
|
|
Var showCocoaEnable = "Invisible"
|
|
|
|
|
|
If blend_button_state = "PressForever" Then
|
|
Var SpecialMix = "Enable"
|
|
|
|
Var showOreoAddEnable = "Enable"
|
|
Var showText8 = "Invisible"
|
|
Else
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showText8 = "Enable"
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
Var ExtraTopping = "Enable"
|
|
|
|
|
|
If blend_button_state = "Disable2" Then
|
|
If hot_button_state = "Disable2" Then
|
|
If cold_button_state = "PressForever" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Var showText8 = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING11 = "milk-level" Then
|
|
Var showMilkEnable = "Enable"
|
|
;for some menu that not have sugar-level channel from json
|
|
If TOPPING1 = "" Then
|
|
Var BGMilkNew = "Enable"
|
|
Var BGSugarNew = "Invisible"
|
|
Var SugarZeroCalOption = "Invisible"
|
|
EndIf
|
|
|
|
If blend_button_state = "PressForever" Then
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "Enable"
|
|
Else
|
|
If TOPPING11 = "milk-level" Then
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "Enable"
|
|
Else
|
|
Var CustomMilkState[0] = "Disable"
|
|
Var CustomMilkState[1] = "Disable"
|
|
Var CustomMilkState[2] = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
Var CustomMilkState[0] = "Disable"
|
|
Var CustomMilkState[1] = "Disable"
|
|
Var CustomMilkState[2] = "Disable"
|
|
EndIf
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
|
|
Var SelectToppingType = 0
|
|
Var SelectedToppingCount = 0
|
|
|
|
If toppingID6price2 > 0 Then
|
|
DEBUGVAR toppingID6price2
|
|
DEBUGVAR DisplayFormat
|
|
|
|
Var toppingID6price2Conv !assigned StringFmt( toppingID6price2 , DisplayFormat, PreScaleConvertShow)
|
|
|
|
DEBUGVAR toppingID6price2Conv
|
|
|
|
Var text_price_6 = ""
|
|
|
|
Var text_price_6 = toppingID6price2Conv + ")"
|
|
Var text_price_6 = "(+" + text_price_6
|
|
|
|
|
|
|
|
DEBUGVAR text_price_6
|
|
Else
|
|
|
|
Var text_price_6 = ""
|
|
EndIf
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
Var SpecialMix = "Enable"
|
|
Var CustomSyrup = "Enable"
|
|
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
|
|
Var showStrawberryEnable = "Disable"
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
If hot_button_state = "PressForever" Then
|
|
Var SpecialMix = "Enable"
|
|
Var CustomSyrup = "Enable"
|
|
|
|
|
|
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
|
|
Var showStrawberryEnable = "Disable"
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
|
|
If blend_button_state = "PressForever" Then
|
|
Var SpecialMix = "Enable"
|
|
Var CustomSyrup = "Enable"
|
|
|
|
If toppingID6index2 = 321 Then
|
|
Var showOreoAddEnable = "Enable"
|
|
EndIf
|
|
If toppingID6index3 = 322 Then
|
|
Var showCocoaEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID6index4 = 323 Then
|
|
Var showOvaltineEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID6index5 = 324 Then
|
|
Var showStrawberryEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
Var showYuzuEnable = "Enable"
|
|
EndIf
|
|
|
|
Var showText8 = "Invisible"
|
|
|
|
; Var showCustomCoffee = "Enable"
|
|
|
|
; Var showCoffeeWater = "Enable"
|
|
; Var showCoffeeQuantity = "Enable"
|
|
; Var showCoffeeLevel = "Enable"
|
|
; Var showCoffeeTamping = "Enable"
|
|
|
|
DEBUGVAR toppingSelectState
|
|
If toppingSelectState = "Enable" Then
|
|
Var CustomOreoState = "Enable"
|
|
Var CustomOvaltineState = "Enable"
|
|
Var CustomCocoaState = "Enable"
|
|
Var CustomCollagenState = "Enable"
|
|
|
|
Var PopupToppingSelect = "Enable"
|
|
|
|
|
|
Var CustomOreoCheckState = "Enable"
|
|
Var CustomOvaltineCheckState = "Enable"
|
|
Var CustomCocoaCheckState = "Enable"
|
|
EndIf
|
|
Else
|
|
Var SpecialMix = "Enable"
|
|
Var CustomSyrup = "Enable"
|
|
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
|
|
If toppingSelectState = "Enable" Then
|
|
Var CustomCocoaCheckState = "Disable"
|
|
Var CustomOreoCheckState = "Disable"
|
|
Var CustomOvaltineCheckState = "Disable"
|
|
EndIf
|
|
|
|
Var showStrawberryEnable = "Disable"
|
|
Var showYuzuEnable = "Disable"
|
|
Var showText8 = "Enable"
|
|
|
|
; Var showCustomCoffee = "Invisible"
|
|
|
|
; Var showCoffeeWater = "Invisible"
|
|
; Var showCoffeeQuantity = "Invisible"
|
|
; Var showCoffeeLevel = "Invisible"
|
|
; Var showCoffeeTamping = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index2Status = "" Then
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index3Status = "" Then
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index4Status = "" Then
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index5Status = "" Then
|
|
Var showStrawberryEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index6Status = "" Then
|
|
Var showYuzuEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index2Status = "Disable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index3Status = "Disable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index4Status = "Disable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index5Status = "Disable" Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index6Status = "Disable" Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
|
|
Var ExtraTopping = "Enable"
|
|
|
|
|
|
If blend_button_state = "Disable2" Then
|
|
If hot_button_state = "Disable2" Then
|
|
If cold_button_state = "PressForever" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Var showOvaltineEnable = "Enable"
|
|
Var showCocoaEnable = "Enable"
|
|
Var showText8 = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
If blend_button_state = "PressForever" Then
|
|
Var SelectToppingType = 1
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
|
|
If toppingID6price2 > 0 Then
|
|
DEBUGVAR toppingID6price2
|
|
DEBUGVAR DisplayFormat
|
|
|
|
Var toppingID6price2Conv !assigned StringFmt( toppingID6price2 , DisplayFormat, PreScaleConvertShow)
|
|
|
|
DEBUGVAR toppingID6price2Conv
|
|
|
|
Var text_price_6 = ""
|
|
|
|
Var text_price_6 = toppingID6price2Conv + ")"
|
|
Var text_price_6 = "(+" + text_price_6
|
|
|
|
|
|
|
|
DEBUGVAR text_price_6
|
|
Else
|
|
|
|
Var text_price_6 = ""
|
|
EndIf
|
|
|
|
If SpecialMix = "Enable" Then
|
|
|
|
Else
|
|
Var SpecialMix = "Invisible"
|
|
EndIf
|
|
|
|
If showOreoAddEnable = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
If showOvaltineEnable = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
If showCocoaEnable = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
|
|
Var CustomSyrup = "Enable"
|
|
|
|
Var showStrawberryEnable = "Disable"
|
|
Var showYuzuEnable = "Disable"
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Var showYuzuEnable = "Enable"
|
|
EndIf
|
|
|
|
|
|
If hot_button_state = "PressForever" Then
|
|
Var SpecialMix = "Enable"
|
|
Var CustomSyrup = "Enable"
|
|
|
|
|
|
Var showStrawberryEnable = "Disable"
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
|
|
If toppingID6index2Status = "" Then
|
|
Var showStrawberryEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index3Status = "" Then
|
|
Var showYuzuEnable = "Invisible"
|
|
EndIf
|
|
|
|
If toppingID6index2Status = "Disable" Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index3Status = "Disable" Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
|
|
Var ExtraTopping = "Enable"
|
|
|
|
|
|
If blend_button_state = "Disable2" Then
|
|
If hot_button_state = "Disable2" Then
|
|
If cold_button_state = "PressForever" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Var showOvaltineEnable = "Enable"
|
|
Var showCocoaEnable = "Enable"
|
|
Var showText8 = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If TOPPING12 = "energy-drink" Then
|
|
Var showAdjust = "Enable"
|
|
If toppingID12index2Status = "Enable" Then
|
|
Var showEnergyEnable = "Enable"
|
|
EndIf
|
|
|
|
|
|
If toppingID12index2Status = "Disable" Then
|
|
Var showEnergyEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID12index2Status = "" Then
|
|
Var showEnergyEnable = "Invisible"
|
|
EndIf
|
|
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
If toppingID12index2Status = "Enable" Then
|
|
Var CustomEnergyState[0] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID12index3Status = "Enable" Then
|
|
Var CustomEnergyState[1] = "Enable"
|
|
EndIf
|
|
Else
|
|
If toppingID12index2Status = "" Then
|
|
Var CustomEnergyState[0] = "Invisible"
|
|
Else
|
|
Var CustomEnergyState[0] = "Disable"
|
|
EndIf
|
|
|
|
If toppingID12index3Status = "" Then
|
|
Var CustomEnergyState[1] = "Invisible"
|
|
Else
|
|
Var CustomEnergyState[1] = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If blend_button_state = "PressForever" Then
|
|
If toppingID12index2Status = "Enable" Then
|
|
Var CustomEnergyState[0] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID12index3Status = "Enable" Then
|
|
Var CustomEnergyState[1] = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If CustomEnergyState[0] = "Enable" Then
|
|
|
|
If CustomEnergyState[1] = "Enable" Then
|
|
Var CustomEnergyState[3] = "Press"
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
If CustomEnergyState[0] = "Enable" Then
|
|
Var CustomEnergyState[0] = "Disable"
|
|
EndIf
|
|
If CustomEnergyState[0] = "Press" Then
|
|
Var CustomEnergyState[0] = "Disable"
|
|
EndIf
|
|
If CustomEnergyState[1] = "Enable" Then
|
|
Var CustomEnergyState[1] = "Disable"
|
|
EndIf
|
|
If CustomEnergyState[1] = "Press" Then
|
|
Var CustomEnergyState[1] = "Disable"
|
|
EndIf
|
|
If CustomEnergyState[3] = "Enable" Then
|
|
Var CustomEnergyState[3] = "Disable"
|
|
EndIf
|
|
If CustomEnergyState[3] = "Press" Then
|
|
Var CustomEnergyState[3] = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING13 = "shot coffee" Then
|
|
Var showAdjust = "Enable"
|
|
If toppingID13index2Status = "Enable" Then
|
|
Var showShotSodaEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID13index2Status = "Disable" Then
|
|
Var showShotSodaEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID13index2Status = "" Then
|
|
Var showShotSodaEnable = "Invisible"
|
|
EndIf
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
If toppingID13index2Status = "Enable" Then
|
|
Var showShotEnableSoda = "Enable"
|
|
Var showShotNormalSoda = "Enable"
|
|
EndIf
|
|
Else
|
|
|
|
If toppingID13index2Status = "" Then
|
|
Var showShotNormalSoda = "Invisible"
|
|
Var showShotEnableSoda = "Invisible"
|
|
Else
|
|
If toppingID13index2Status = "Enable" Then
|
|
Var showShotEnableSoda = "Enable"
|
|
Var showShotNormalSoda = "Enable"
|
|
Else
|
|
Var showShotNormalSoda = "Disable"
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
Var showShotNormalSoda = "Disable"
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR SubMenuGroupIDSlot6_1
|
|
|
|
DEBUGVAR TOPPING3
|
|
If TOPPING3 = "Collagen(mix)" Then
|
|
If JemilaToppingFlag = 1 Then
|
|
|
|
If hot_button_state = "PressForever" Then
|
|
Var CollagenState = "Disable"
|
|
EndIf
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
If CollagenState = "Invisible" Then
|
|
Var CollagenState = "Enable"
|
|
EndIf
|
|
If CollagenState = "Disable" Then
|
|
Var CollagenState = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If blend_button_state = "PressForever" Then
|
|
If CollagenState = "Invisible" Then
|
|
Var CollagenState = "Enable"
|
|
EndIf
|
|
If CollagenState = "Disable" Then
|
|
Var CollagenState = "Enable"
|
|
EndIf
|
|
EndIf
|
|
Var CollagenState = "Enable"
|
|
|
|
If JemilaToppingFreeFlag = 1 Then
|
|
Var CollagenToppingBg = "/bg_top_jemila_free.png"
|
|
Var CollagenToppingPrice = 0
|
|
Else
|
|
Var CollagenToppingBg = "/bg_top_jemila.png"
|
|
Var CollagenToppingPrice = 5
|
|
EndIf
|
|
Else
|
|
Var CollagenState = "Invisible"
|
|
EndIf
|
|
Else
|
|
If CollagenState != "Invisible" Then
|
|
Var CollagenState = "Disable"
|
|
Else
|
|
Var CollagenState = "Invisible"
|
|
Var ShowCollagenOnly = "Invisible"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
DEBUGVAR CollagenState
|
|
If CollagenState = "Enable" Then
|
|
Var ExtraTopping = "Enable"
|
|
EndIf
|
|
|
|
Var PriceCustomCoffeeFormat = "%.0f฿"
|
|
|
|
If TOPPING7 = "water-level" Then
|
|
Var CustomCoffeeEnable = "True"
|
|
Var showCustomCoffee = "Enable"
|
|
Var showCoffeeWater = "Enable"
|
|
|
|
If toppingID7Default = "" Then
|
|
Var CustomCoffeeWaterState[0] = "PressForever"
|
|
Else
|
|
|
|
If toppingID7index1 = toppingID7Default Then
|
|
Var CurrentCoffeeWaterId = toppingID7index1
|
|
Var CustomCoffeeWaterState[0] = "PressForever"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID7index2 = toppingID7Default Then
|
|
Var CurrentCoffeeWaterId = toppingID7index2
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "PressForever"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID7index3 = toppingID7Default Then
|
|
Var CurrentCoffeeWaterId = toppingID7index3
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "PressForever"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID7index4 = toppingID7Default Then
|
|
Var CurrentCoffeeWaterId = toppingID7index4
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "PressForever"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID7index5 = toppingID7Default Then
|
|
Var CurrentCoffeeWaterId = toppingID7index5
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING9 = "single-shot-espv2" Then
|
|
Var CustomCoffeeEnable = "True"
|
|
Var showCustomCoffee = "Enable"
|
|
var showCoffeeLevel = "Enable"
|
|
|
|
If toppingID9Default = "" Then
|
|
Var CustomCoffeeLevelState[1] = "PressForever"
|
|
Else
|
|
|
|
If toppingID9index1 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index1
|
|
Var CustomCoffeeLevelState[0] = "PressForever"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
EndIf
|
|
|
|
If toppingID9index2 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index2
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "PressForever"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID9index3 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index3
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "PressForever"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID9index4 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index4
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
If toppingID9price1 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price1 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = ""
|
|
EndIf
|
|
|
|
If toppingID9price2 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price2 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = ""
|
|
EndIf
|
|
|
|
If toppingID9price3 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price3 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = ""
|
|
EndIf
|
|
|
|
If toppingID9price4 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price4 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = CustomCoffeeLevelAdditionalPrice[3] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = ""
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING9 = "double-shot-espv2" Then
|
|
Var CustomCoffeeEnable = "True"
|
|
Var showCustomCoffee = "Enable"
|
|
var showCoffeeLevel = "Enable"
|
|
|
|
If toppingID9Default = "" Then
|
|
Var CustomCoffeeLevelState[1] = "PressForever"
|
|
Else
|
|
|
|
If toppingID9index1 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index1
|
|
Var CustomCoffeeLevelState[0] = "PressForever"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
EndIf
|
|
|
|
If toppingID9index2 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index2
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "PressForever"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID9index3 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index3
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "PressForever"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID9index4 = toppingID9Default Then
|
|
Var CurrentCoffeeLevelId = toppingID9index4
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
If toppingID9price1 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price1 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = CustomCoffeeLevelAdditionalPrice[0] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[0] = ""
|
|
EndIf
|
|
|
|
If toppingID9price2 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price2 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = CustomCoffeeLevelAdditionalPrice[1] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[1] = ""
|
|
EndIf
|
|
|
|
If toppingID9price3 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price3 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = CustomCoffeeLevelAdditionalPrice[2] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[2] = ""
|
|
EndIf
|
|
|
|
If toppingID9price4 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID9price4 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = "(+" + priceFormated
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = CustomCoffeeLevelAdditionalPrice[3] + ")"
|
|
Else
|
|
Var CustomCoffeeLevelAdditionalPrice[3] = ""
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING8 = "tampping-espv2" Then
|
|
Var CustomCoffeeEnable = "True"
|
|
Var showCustomCoffee = "Enable"
|
|
var showCoffeeTamping = "Enable"
|
|
|
|
If toppingID8Default = "" Then
|
|
Var CustomCoffeeTampingState[1] = "PressForever"
|
|
Else
|
|
|
|
If toppingID8index1 = toppingID8Default Then
|
|
Var CurrentCoffeeTampingId = toppingID8index1
|
|
Var CustomCoffeeTampingState[0] = "PressForever"
|
|
Var CustomCoffeeTampingState[1] = "Enable"
|
|
Var CustomCoffeeTampingState[2] = "Enable"
|
|
|
|
EndIf
|
|
|
|
If toppingID8index2 = toppingID8Default Then
|
|
Var CurrentCoffeeTampingId = toppingID8index2
|
|
Var CustomCoffeeTampingState[0] = "Enable"
|
|
Var CustomCoffeeTampingState[1] = "PressForever"
|
|
Var CustomCoffeeTampingState[2] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID8index3 = toppingID8Default Then
|
|
Var CurrentCoffeeTampingId = toppingID8index3
|
|
Var CustomCoffeeTampingState[0] = "Enable"
|
|
Var CustomCoffeeTampingState[1] = "Enable"
|
|
Var CustomCoffeeTampingState[2] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
EndIf
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
|
|
If toppingID6index5 = 324 Then
|
|
Var showStrawberryEnable = "Enable"
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
Var showYuzuEnable = "Enable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
; i f Hot menu disable away
|
|
If hot_button_state = "PressForever" Then
|
|
If showOreoAddEnable = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
If showOreoAddEnable = "Press" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
|
|
If showOvaltineEnable = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
|
|
If showCocoaEnable = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
If showCocoaEnable = "Press" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
If showStrawberryEnable = "Enable" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showStrawberryEnable = "Press" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If showYuzuEnable = "Enable" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showYuzuEnable = "Press" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING11 = "milk-level" Then
|
|
|
|
If CustomMilkState[0] = "Disable" Then
|
|
Var CustomMilkState[0] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[1] = "Disable" Then
|
|
Var CustomMilkState[1] = "Enable"
|
|
EndIf
|
|
If CustomMilkState[2] = "Disable" Then
|
|
Var CustomMilkState[2] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[0] = "Enable" Then
|
|
If CustomMilkState[1] = "Enable" Then
|
|
If CustomMilkState[2] = "Enable" Then
|
|
Var CustomMilkState[1] = "PressForever" Then
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
Var CustomMilkState[0] = "Disable"
|
|
Var CustomMilkState[1] = "Disable"
|
|
Var CustomMilkState[2] = "Disable"
|
|
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
|
|
EndIf
|
|
|
|
|
|
; i f cold menu disable away
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
If showOreoAddEnable = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
If showOreoAddEnable = "Press" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
|
|
|
|
If showOvaltineEnable = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
|
|
If showCocoaEnable = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
If showCocoaEnable = "Press" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
|
|
If showStrawberryEnable = "Enable" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showStrawberryEnable = "Press" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If showYuzuEnable = "Enable" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showYuzuEnable = "Press" Then
|
|
If TOPPING6 = "syrup-topping" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING11 = "milk-level" Then
|
|
|
|
If CustomMilkState[0] = "Disable" Then
|
|
Var CustomMilkState[0] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[1] = "Disable" Then
|
|
Var CustomMilkState[1] = "Enable"
|
|
EndIf
|
|
If CustomMilkState[2] = "Disable" Then
|
|
Var CustomMilkState[2] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[0] = "Enable" Then
|
|
If CustomMilkState[1] = "Enable" Then
|
|
If CustomMilkState[2] = "Enable" Then
|
|
Var CustomMilkState[1] = "PressForever" Then
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
Var CustomMilkState[0] = "Disable"
|
|
Var CustomMilkState[1] = "Disable"
|
|
Var CustomMilkState[2] = "Disable"
|
|
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
|
|
EndIf
|
|
|
|
; first time.
|
|
If blend_button_state = "PressForever" Then
|
|
If showShotEnableSoda = "Enable" Then
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
|
|
If showShotNormalSoda = "Press" Then
|
|
Var showShotNormalSoda = "Disable"
|
|
EndIf
|
|
|
|
If TOPPING11 = "milk-level" Then
|
|
|
|
If CustomMilkState[0] = "Disable" Then
|
|
Var CustomMilkState[0] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[1] = "Disable" Then
|
|
Var CustomMilkState[1] = "Enable"
|
|
EndIf
|
|
If CustomMilkState[2] = "Disable" Then
|
|
Var CustomMilkState[2] = "Enable"
|
|
EndIf
|
|
|
|
If CustomMilkState[0] = "Enable" Then
|
|
If CustomMilkState[1] = "Enable" Then
|
|
If CustomMilkState[2] = "Enable" Then
|
|
Var CustomMilkState[1] = "PressForever" Then
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
Var CustomMilkState[0] = "Disable"
|
|
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
|
|
;Var SelectedToppingCount = 0
|
|
Else
|
|
If SubMenuGroupIDSlot6_1 = 300 Then
|
|
If TOPPING6 = "all-volcano" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
|
|
Var showYuzuEnable = "Disable"
|
|
Var showStrawberryEnable = "Disable"
|
|
|
|
Var showText8 = "Enable"
|
|
EndIf
|
|
|
|
If TOPPING6 = "Topping-Volcano" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
Var showOvaltineEnable = "Invisible"
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
Var ExtraTopping = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
STRCONTAIN "9701" BrewParam IgnoreLidStraw
|
|
|
|
DEBUGVAR BrewParam
|
|
DEBUGVAR IgnoreLidStraw
|
|
|
|
Var h_block_of_sugar = 210
|
|
|
|
|
|
|
|
If IgnoreLidStraw = "true" Then
|
|
Var IgnoreLidStraw = "false"
|
|
Var ShowLidStraw = "Invisible"
|
|
Var ShowLidOnly = "Invisible"
|
|
Var ShowStrawOnly = "Invisible"
|
|
|
|
|
|
Else
|
|
Var ShowLidStraw = "Enable"
|
|
If StrawState = "Enable" Then
|
|
If MAT_ID_9701 = "Enable" Then
|
|
Var StrawState = MAT_ID_9701
|
|
Else
|
|
Var StrawState = MAT_ID_9701
|
|
EndIf
|
|
EndIf
|
|
DEBUGVAR MAT_ID_9701
|
|
DEBUGVAR StrawState
|
|
|
|
If Seeker.SmoothieToPayment = 1 Then
|
|
Var StrawState = "Press"
|
|
EndIf
|
|
|
|
If StrawState = "Press" Then
|
|
Var Seeker.thankStrawFlag = 1
|
|
Else
|
|
Var Seeker.thankStrawFlag = 0
|
|
EndIf
|
|
|
|
|
|
If LidState = "Enable" Then
|
|
If MAT_ID_9601 = "Enable" Then
|
|
Var LidState = "Enable"
|
|
Else
|
|
Var LidState = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
; Override all
|
|
If Service_LidStraw = "Disable" Then
|
|
Var ShowLidStraw = "Enable"
|
|
;Var ShowLidOnly = "Invisible"
|
|
;Var ShowStawOnly = "Invisible"
|
|
|
|
|
|
;Var StrawState = "Disable"
|
|
;Var LidState = "Disable"
|
|
|
|
EndIf
|
|
|
|
If StrawState = "Enable" Then
|
|
Var StrawDeactiveButton = "Invisible"
|
|
Else
|
|
If StrawState = "Press" Then
|
|
Var StrawDeactiveButton = "Invisible"
|
|
Else
|
|
Var StrawDeactiveButton = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If LidState = "Enable" Then
|
|
Var LidDeactiveButton = "Invisible"
|
|
Else
|
|
If LidState = "Press" Then
|
|
Var LidDeactiveButton = "Invisible"
|
|
Else
|
|
Var LidDeactiveButton = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
If UserSeletedSugar = 0 Then
|
|
|
|
If SugarModeUpdateWhenChangeDrinkType = 1 Then
|
|
Var SugarModeUpdateWhenChangeDrinkType = 0
|
|
RefreshAll
|
|
Else
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
EndIf
|
|
|
|
Var sugar_default_flag = 0
|
|
|
|
; Suger 4 step cold
|
|
If TOPPING1 = "Suger 4 step cold" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
|
|
Var BGSugar = "Invisible"
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
; No 2 right steps
|
|
;If NoSugarStepRight2 = "true" Then
|
|
|
|
; Var CustomSweetState[4] = "Disable"
|
|
; Var CustomSweetState[5] = "Disable"
|
|
|
|
;EndIf
|
|
|
|
|
|
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
; Suger 4 step hot
|
|
If TOPPING1 = "Suger 4 step hot" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
|
|
|
|
Var BGSugar = "Invisible"
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
;If NoSugarStepRight2 = "true" Then
|
|
|
|
; Var CustomSweetState[4] = "Disable"
|
|
; Var CustomSweetState[5] = "Disable"
|
|
|
|
;EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
DEBUGVAR RecipeTag2
|
|
;
|
|
If TOPPING1 = "Sugar" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var showAdjust = "Enable"
|
|
EndIf
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index5 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
Else
|
|
Var CustomSweetState[4] = "Disable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING1 = "Powder Sugar for Hot" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var BGSugar = "Enable"
|
|
EndIf
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index5 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
Else
|
|
Var CustomSweetState[4] = "Disable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING1 = "Powder Sugar" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var BGSugar = "Enable"
|
|
EndIf
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
DEBUGVAR "set default Powder Sugar"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index5 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
Else
|
|
Var CustomSweetState[4] = "Disable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
EndIf
|
|
|
|
DEBUGVAR toppingID1Default
|
|
DEBUGVAR CustomSweetState[0]
|
|
EndIf
|
|
|
|
|
|
If TOPPING1 = "Sugar Premix 25" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var BGSugar = "Enable"
|
|
EndIf
|
|
|
|
Var ShiftSugarStep = 2
|
|
Var CustomSweetState[0] = "Disable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING1 = "Powder Sugar Premix 50" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var BGSugar = "Enable"
|
|
EndIf
|
|
Var ShiftSugarStep = 3
|
|
Var CustomSweetState[0] = "Disable"
|
|
Var CustomSweetState[1] = "Disable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[2] = "Disable"
|
|
Else
|
|
Var CustomSweetState[2] = "Enable"
|
|
EndIf
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
; select no sugar
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
Else
|
|
Var CustomSweetState[4] = "Disable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If TOPPING1 = "Powder Sugar Premix 25" Then
|
|
Var SugarZeroCalOption = "Enable"
|
|
Var showAdjust = "Enable"
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var BGSugar = "Invisible"
|
|
Var BGSugarNew = "Enable"
|
|
Else
|
|
Var BGSugar = "Enable"
|
|
EndIf
|
|
|
|
Var ShiftSugarStep = 2
|
|
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
|
|
If toppingID1index1 = toppingID1Default Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index2 = toppingID1Default Then
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
; select no sugar
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
|
|
If toppingID1index3 = toppingID1Default Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
If toppingID1index4 = toppingID1Default Then
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var sugar_default_flag = 1
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
|
|
If RecipeTag2 = "Topping6Step" Then
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
Else
|
|
Var CustomSweetState[4] = "Disable"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
If sugar_default_flag = 0 Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var SugarModeUpdateWhenChangeDrinkType = 0
|
|
|
|
If TOPPING1 = "Suger 4 step cold" Then
|
|
|
|
Var BGSugarColdHealthy = "Enable"
|
|
Var BGSugarHotHealthy = "Invisible"
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var SugarModeUpdateWhenChangeDrinkType = 1
|
|
|
|
If MAT_ID_1215 = "Disable" Then
|
|
Var SugarZeroCalCheck = "Disable2"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING1 = "Suger 4 step hot" Then
|
|
|
|
Var BGSugarHotHealthy = "Enable"
|
|
Var BGSugarColdHealthy = "Invisible"
|
|
|
|
Var ShiftSugarStep = 1
|
|
Var SugarModeUpdateWhenChangeDrinkType = 1
|
|
|
|
If MAT_ID_1215 = "Disable" Then
|
|
Var SugarZeroCalCheck = "Disable2"
|
|
EndIf
|
|
EndIf
|
|
|
|
; Sugar Zero Cal
|
|
DEBUGVAR SugarZeroCalEnable
|
|
DEBUGVAR SugarZeroCalCheck
|
|
If SugarZeroCalEnable = "true" Then
|
|
|
|
Var SugarZeroCalPrice = 10
|
|
Var priceFormat = "(+฿%.0f)"
|
|
|
|
Var SugarZeroCalState = "Invisible"
|
|
Var SugarZeroCalFreeState = "Invisible"
|
|
|
|
If SugarZeroCalFreeFlag = 1 Then
|
|
Var SugarZeroCalFreeState = "Enable"
|
|
Var SugarZeroCalPrice = 0
|
|
Else
|
|
Var SugarZeroCalState = "Enable"
|
|
Var SugarZeroCalPriceStr !assigned StringFmt( SugarZeroCalPrice , priceFormat, PreScaleConvertShow)
|
|
EndIf
|
|
|
|
|
|
Var SugarNormalCheck = "PressForever"
|
|
Else
|
|
Var SugarZeroCalOption = "Invisible"
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var ShowCollagenOnly = "Enable"
|
|
|
|
Var BugFlag = 1
|
|
|
|
Var topping1 = toppingID1Default
|
|
|
|
|
|
Var ToppingGotoPayment = "false"
|
|
|
|
Var SugarSoundFlag = 0
|
|
If BGSugarNew = "Enable" Then
|
|
Var SugarSoundFlag = 1
|
|
|
|
EndIf
|
|
If BGSugar = "Enable" Then
|
|
Var SugarSoundFlag = 1
|
|
|
|
EndIf
|
|
|
|
If SugarSoundFlag = 1 Then
|
|
If SelectDrinkType = 1 Then
|
|
If show_eng = "true" Then
|
|
Play "/mnt/sdcard/coffeevending/taobin_project/sound_eng/Sweet.mp3"
|
|
Else
|
|
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/select_level.mp3"
|
|
|
|
; Play Sound #zone
|
|
|
|
|
|
If LipitPro = 1 Then
|
|
Var PlaySoundLag = "/mnt/sdcard/coffeevending/taobin_project/sound_thai/lipit/select_level.wav"
|
|
EndIf
|
|
|
|
Play PlaySoundLag
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
DEBUGVAR SelectDrinkType
|
|
|
|
If SelectDrinkType = 0 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
EndIf
|
|
|
|
Else
|
|
|
|
|
|
EndIf
|
|
; End of UserSeletedSugar = 0
|
|
|
|
Refresh
|
|
|
|
Var collagenShow = "true"
|
|
;-BEGIN shot layout
|
|
|
|
If topping_price_refresh = 1 Then
|
|
Var topping_price_refresh = 0
|
|
|
|
Var topping3 = toppingID3Default
|
|
Var shot_h_layout = 218
|
|
|
|
If TOPPING2 = "shot coffee" Then
|
|
|
|
Var ShotCoffeeBG = "Enable"
|
|
Var showShotEnable = "Enable"
|
|
Var ExtraTopping = "Enable"
|
|
|
|
Var toppingID2price2Conv !assigned StringFmt( toppingID2price2 , DisplayFormat, PreScaleConvertShow)
|
|
|
|
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
|
|
|
|
|
|
If TOPPING2 = "shot coffee termtem" Then
|
|
|
|
Var ShotCoffeeBG = "Enable"
|
|
Var showShotEnable = "Enable"
|
|
|
|
Var ExtraTopping = "Enable"
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "shot coffee 1003" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
If TOPPING2 = "shot coffee 1007" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
If TOPPING2 = "shot coffee 1008" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1009" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
If TOPPING2 = "add-show-1101" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1102" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1103" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
If TOPPING2 = "add-show-1104" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1105" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1106" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1107" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If TOPPING2 = "add-show-1108" Then
|
|
|
|
If toppingID2index3 = "" Then
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
If toppingID2index3 = 0 Then
|
|
Var EnableLightRoast = "Invisible"
|
|
Var ShotCoffeePremium = "Enable"
|
|
Var showShotEnable = "Invisible"
|
|
Var ExtraTopping = "Enable"
|
|
Else
|
|
Var EnableLightRoast = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
DEBUGVAR TOPPING2
|
|
Refresh
|
|
EndIf
|
|
|
|
If ShotCoffeePremium = "Enable" Then
|
|
Var toppingID2price2Conv !assigned StringFmt( toppingID2price2 , DisplayFormat, PreScaleConvertShow)
|
|
|
|
DEBUGVAR toppingID2price2Conv
|
|
Var text_price_topping = toppingID2price2Conv + ")"
|
|
Var text_price_topping = "(+" + text_price_topping
|
|
|
|
EndIf
|
|
|
|
If EnableLightRoast = "Enable" Then
|
|
Var CustomCoffeeEnable = "True"
|
|
Var showCustomCoffee = "Enable"
|
|
var showCoffeeQuantity = "Enable"
|
|
|
|
If toppingID2Default = "" Then
|
|
Var CustomCoffeeQuantityState[1] = "PressForever"
|
|
Else
|
|
|
|
If toppingID2index1 = toppingID2Default Then
|
|
Var CurrentCoffeeLevelId = toppingID2index1
|
|
Var CustomCoffeeQuantityState[0] = "PressForever"
|
|
Var CustomCoffeeQuantityState[1] = "Enable"
|
|
Var CustomCoffeeQuantityState[2] = "Enable"
|
|
|
|
EndIf
|
|
|
|
If toppingID2index2 = toppingID2Default Then
|
|
Var CurrentCoffeeLevelId = toppingID2index2
|
|
Var CustomCoffeeQuantityState[0] = "Enable"
|
|
Var CustomCoffeeQuantityState[1] = "PressForever"
|
|
Var CustomCoffeeQuantityState[2] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID2index3 = toppingID2Default Then
|
|
Var CurrentCoffeeLevelId = toppingID2index3
|
|
Var CustomCoffeeQuantityState[0] = "Enable"
|
|
Var CustomCoffeeQuantityState[1] = "Enable"
|
|
Var CustomCoffeeQuantityState[2] = "PressForever"
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
If toppingID2price1 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID2price1 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeQuantityAdditionalPrice[0] = "(+" + priceFormated
|
|
Var CustomCoffeeQuantityAdditionalPrice[0] = CustomCoffeeQuantityAdditionalPrice[0] + ")"
|
|
Else
|
|
Var CustomCoffeeQuantityAdditionalPrice[0] = ""
|
|
EndIf
|
|
|
|
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 toppingID2price4 > 0 Then
|
|
Var priceFormated !assigned StringFmt( toppingID2price4 , PriceCustomCoffeeFormat, PreScaleConvertShow)
|
|
Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated
|
|
Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")"
|
|
Else
|
|
Var CustomCoffeeQuantityAdditionalPrice[2] = ""
|
|
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
|
|
|
|
|
|
|
|
EndIf
|
|
;topping_price_refresh = 0
|
|
|
|
If MenuCodeName1 = "OatMilk" Then
|
|
Var OatMilkToppingEnable = "Enable"
|
|
|
|
;SubMenuPrice1 ignore. Fix by xml
|
|
Var OatMilkPrice = "(+5)"
|
|
|
|
If MenuCodeName1_State = "Enable" Then
|
|
Var OatMilkEnable = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
SAVELOG ToppingGotoPayment
|
|
If ToppingGotoPayment = "true" Then
|
|
Topping "Select" SelectDrink
|
|
; Pack
|
|
|
|
Topping "Pack" ExtendDataCurr
|
|
Var Seeker.ExtendDataCurr = ExtendDataCurr
|
|
|
|
|
|
If RestrictedDrink = "true" Then
|
|
|
|
DEBUGVAR RestrictedDrink
|
|
|
|
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
|
Open "ROOT/taobin_project/xml/page_identity_verification.xml"
|
|
Else
|
|
|
|
;OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
|
Open "ROOT/taobin_project/xml/ .xml"
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
If RoadShow = "true" Then
|
|
Var PriceShowValue = "Free"
|
|
Var ModeFreeEnable = 1
|
|
Else
|
|
Var ModeFreeEnable = 0
|
|
EndIf
|
|
|
|
If DisableAllNotFreeTopping = 1 Then
|
|
Var SugarZeroCalOption = "Invisible"
|
|
Var showCustomCoffee = "Invisible"
|
|
Var CustomCoffeeEnable = "False"
|
|
Var ExtraTopping = "Invisible"
|
|
EndIf
|
|
|
|
If showShotEnable = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
EndIf
|
|
|
|
DEBUGVAR showShotEnable
|
|
DEBUGVAR showOreoAddEnable
|
|
DEBUGVAR ShotCoffeePremium
|
|
DEBUGVAR toppingID2price1
|
|
DEBUGVAR toppingID2price2
|
|
DEBUGVAR toppingID2price3
|
|
DEBUGVAR toppingID9price1
|
|
DEBUGVAR toppingID9price2
|
|
DEBUGVAR toppingID9price3
|
|
DEBUGVAR toppingID9price4
|
|
|
|
DEBUGVAR ShiftSugarStep
|
|
Var CustomCoffeeQuantityAdditionalPrice = "(25฿)"
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/flash_deal/topping_page.ev"
|
|
|
|
|
|
If Seeker.SmoothieToPayment = 1 Then
|
|
Var MachineEvent = 1
|
|
DEBUGVAR LinkProductCodeAnotherMachine[0]
|
|
|
|
Var MachineSpiralStage = "-"
|
|
|
|
GenHashWithTimeStamp SpiralRef
|
|
SPIRAL_VERIFY LinkProductCodeAnotherMachine[0] SpiralRef
|
|
|
|
|
|
EndIf
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
|
|
|
|
DEBUGVAR ExtraTopping
|
|
|
|
|
|
</EventMachine>
|
|
|
|
<EventCart>
|
|
;Var BugFlag = 1
|
|
If CartUpdate = "true" Then
|
|
Var CartUpdate = "-"
|
|
|
|
|
|
If CART_COUNT = 3 Then
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
|
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
|
Else
|
|
If ButtonNext = "true" Then
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_blank.xml"
|
|
Open "ROOT/taobin_project/xml/page_payment_multi.xml"
|
|
Else
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert.xml"
|
|
Open "ROOT/taobin_project/xml/page_catalog.xml"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
</EventCart>
|
|
|
|
; same
|
|
<Image>
|
|
<X> 45 </X>
|
|
<Y> 402 </Y>
|
|
<Width> 291 </Width>
|
|
<Height> 396 </Height>
|
|
<Filename> PictureDrink </Filename>
|
|
</Image>
|
|
|
|
|
|
; back
|
|
<Button>
|
|
<X> 1 </X>
|
|
<Y> 420 </Y>
|
|
<Filename> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/page2/bn_back_arrow.png" </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
;Open PreviseXMLFileName2
|
|
DEBUGVAR OpenFromXML
|
|
|
|
If ChildrenFree = 1 Then
|
|
Var ChildrenFree = 0
|
|
Var Cid = 33
|
|
Var PointCrm = "0"
|
|
Var GetScore = "1"
|
|
AddData Cid TelNumPromotion IDNum PointCrm GetScore
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog2.xml"
|
|
EndIf
|
|
|
|
If FreeEnergyDrink = 1 Then
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_catalog2.xml"
|
|
|
|
EndIf
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
DEBUGVAR OpenFromInstMenuTab
|
|
If OpenFromInstMenuTab > 0 Then
|
|
TabMenuVisibleInst OpenFromInstMenuTab
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
|
|
Else
|
|
Open OpenFromXML
|
|
EndIf
|
|
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Image>
|
|
<X> 374 </X>
|
|
<Y> 422 </Y>
|
|
<State> eval(
|
|
If IsSmoRet = "true" Then
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/blender_icon.png" </Filename>
|
|
</Image>
|
|
|
|
; same
|
|
|
|
<Text>
|
|
<Text>
|
|
<X> 330 </X>
|
|
<Y> 470 </Y>
|
|
<Width> 344 </Width>
|
|
<MaxSize> 50 </MaxSize>
|
|
<Size> Auto </Size>
|
|
<MaxLine> 2 </MaxLine>
|
|
<Font> KanitMediumTTF </Font>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> showname </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 330 </X>
|
|
<Y> CustomShowDescTextY </Y>
|
|
<Width> 344</Width>
|
|
<Size> 24 </Size>
|
|
<Font> KanitLightTTF </Font>
|
|
<Color> 0x6F5F51 </Color>
|
|
<Value> showdesc </Value>
|
|
</Text>
|
|
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;-BEGIN
|
|
;
|
|
;-BEGIN Lid straw
|
|
|
|
<Image>
|
|
<X> 690 </X>
|
|
<Y> 460 </Y>
|
|
<Width> 350 </Width>
|
|
<Height> 195 </Height>
|
|
<Filename> Var( DirImageInter + "/bg_strawlid.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 810 </X>
|
|
<Y> 575 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002090 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 810 </X>
|
|
<Y> 495 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002091 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; straw left
|
|
<Button>
|
|
<X> 725 </X>
|
|
<Y> 565 </Y>
|
|
<State> StrawState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_straw.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_straw.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_straw.png" </FilenameDisable>
|
|
<EventClick>
|
|
SAVELOG "Click straw cb"
|
|
If StrawState = "Press" Then
|
|
Var StrawState = "Enable"
|
|
|
|
Var Seeker.thankStrawFlag = 0
|
|
|
|
Else
|
|
Var StrawState = "Press"
|
|
|
|
Var Seeker.thankStrawFlag = 1
|
|
|
|
EndIf
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Button>
|
|
<X> 955 </X>
|
|
<Y> 575 </Y>
|
|
<State> StrawState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<EventClick>
|
|
SAVELOG "Click straw cb"
|
|
If StrawState = "Press" Then
|
|
Var StrawState = "Enable"
|
|
|
|
Var Seeker.thankStrawFlag = 0
|
|
|
|
Else
|
|
Var StrawState = "Press"
|
|
|
|
Var Seeker.thankStrawFlag = 1
|
|
|
|
EndIf
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
; LID left
|
|
<Button>
|
|
<X> 725 </X>
|
|
<Y> 485 </Y>
|
|
<State> LidState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_lid.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_lid.png" </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/bd_lid.png" ) </FilenameDisable>
|
|
<EventClick>
|
|
SAVELOG "Click LID pic"
|
|
If LidState = "Press" Then
|
|
Var LidState = "Enable"
|
|
|
|
Var Seeker.thankLidFlag = 0
|
|
|
|
Else
|
|
Var LidState = "Press"
|
|
|
|
Var Seeker.thankLidFlag = 1
|
|
|
|
EndIf
|
|
|
|
|
|
DEBUGVAR SugarState1
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 955 </X>
|
|
<Y> 493 </Y>
|
|
<State> LidState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/cb_notcheck.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/cb_checked.png" </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<EventClick>
|
|
SAVELOG "Click LID cb"
|
|
If LidState = "Press" Then
|
|
Var LidState = "Enable"
|
|
|
|
Var Seeker.thankLidFlag = 0
|
|
|
|
Else
|
|
Var LidState = "Press"
|
|
|
|
Var Seeker.thankLidFlag = 1
|
|
|
|
EndIf
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Image>
|
|
<State> LidDeactiveButton </State>
|
|
<X> 665 </X>
|
|
<Y> 480 </Y>
|
|
<Filename> Var( DirImage + "/text21.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Image>
|
|
<State> StrawDeactiveButton </State>
|
|
<X> 665 </X>
|
|
<Y> 563 </Y>
|
|
<Filename> Var( DirImage + "/text20.png" ) </Filename>
|
|
</Image>
|
|
|
|
|
|
|
|
|
|
;-END
|
|
;
|
|
;
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;- FRAME SCORELLL
|
|
; zone scroll
|
|
<FrameScroll>
|
|
<X> 52 </X>
|
|
<Y> 680 </Y>
|
|
<Width> 1080 </Width>
|
|
<Height> 1080 </Height>
|
|
<ScrollHeight> 1080 </ScrollHeight>
|
|
<Scroll> "Vertical" </Scroll>
|
|
<Column> 1 </Column>
|
|
|
|
<Block>
|
|
|
|
; show_select_type
|
|
<Width> 988 </Width>
|
|
<Height> 162 </Height>
|
|
<MarginTop> 20 </MarginTop>
|
|
<State> show_select_type </State>
|
|
|
|
<Image>
|
|
<Filename> Var( DirImageInter + "/drink_select_type.png" )</Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 40 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 000067 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
<Button>
|
|
<X> 456 </X>
|
|
<Y> 72 </Y>
|
|
<State> hot_button_state </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping_inter/bt_hot.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bt_hot_selected.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping_inter/bt_hot_disable.png" </FilenameDisable>
|
|
<FilenameDisable2> "ROOT/taobin_project/image/topping_inter/bt_hot_disable2.png" </FilenameDisable2>
|
|
<FilenameForce> "ROOT/taobin_project/image/topping_inter/bt_hot_selected.png" </FilenameForce>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
Var SelectDrinkType = 1
|
|
|
|
SAVELOG "Press hot"
|
|
|
|
Var hot_button_state = "PressForever"
|
|
If cold_button_state = "Disable" Then
|
|
|
|
Else
|
|
If cold_button_state = "Diable2" Then
|
|
|
|
Else
|
|
Var cold_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If blend_button_state = "Disable" Then
|
|
|
|
Else
|
|
If blend_button_state = "Disable2" Then
|
|
|
|
Else
|
|
Var blend_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
DEBUGVAR cold_button_state
|
|
DEBUGVAR blend_button_state
|
|
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE1
|
|
|
|
Var high_light_drink_type = "Invisible"
|
|
|
|
|
|
|
|
|
|
</EventClick>
|
|
<Language>
|
|
<X> 43 </X>
|
|
<Y> 8 </Y>
|
|
<Width> 60 </Width>
|
|
<Height> 42 </Height>
|
|
<ID> 000081 </ID>
|
|
</Language>
|
|
</Button>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 614 </X>
|
|
<Y> 72 </Y>
|
|
<State> cold_button_state </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping_inter/bt_cold_no.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bt_cold_selected_no.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping_inter/bt_cold_disable_no.png" </FilenameDisable>
|
|
<FilenameDisable2> "ROOT/taobin_project/image/topping_inter/bt_cold_disable2_no.png" </FilenameDisable2>
|
|
<FilenameForce> "ROOT/taobin_project/image/topping_inter/bt_cold_selected_no.png" </FilenameForce>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
Var SelectDrinkType = 1
|
|
|
|
SAVELOG "Press cold"
|
|
|
|
Var cold_button_state = "PressForever"
|
|
|
|
If hot_button_state = "Disable" Then
|
|
|
|
Else
|
|
If hot_button_state = "Disable2" Then
|
|
|
|
Else
|
|
Var hot_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If blend_button_state = "Disable" Then
|
|
|
|
Else
|
|
If blend_button_state = "Disable2" Then
|
|
|
|
Else
|
|
Var blend_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE2
|
|
|
|
|
|
|
|
</EventClick>
|
|
<Language>
|
|
<X> 40 </X>
|
|
<Y> 8 </Y>
|
|
<Width> 60 </Width>
|
|
<Height> 42 </Height>
|
|
<ID> 000082 </ID>
|
|
</Language>
|
|
</Button>
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 772 </X>
|
|
<Y> 72 </Y>
|
|
<State> blend_button_state </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping_inter/bt_smoothie_no.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bt_smoothie_selected_no.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping_inter/bt_smoothie_disable_no.png" </FilenameDisable>
|
|
<FilenameDisable2> "ROOT/taobin_project/image/topping_inter/bt_smoothie_disable2_no.png" </FilenameDisable2>
|
|
<FilenameForce> "ROOT/taobin_project/image/topping_inter/bt_smoothie_selected_no.png" </FilenameForce>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "Press blend"
|
|
Var SelectDrinkType = 1
|
|
|
|
Var blend_button_state = "PressForever"
|
|
|
|
If hot_button_state = "Disable" Then
|
|
|
|
Else
|
|
If hot_button_state = "Disable2" Then
|
|
|
|
Else
|
|
Var hot_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If cold_button_state = "Disable" Then
|
|
|
|
Else
|
|
If cold_button_state = "Disable2" Then
|
|
|
|
Else
|
|
Var cold_button_state = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE3
|
|
|
|
|
|
|
|
|
|
</EventClick>
|
|
<Language>
|
|
<X> 30 </X>
|
|
<Y> 8 </Y>
|
|
<Width> 200 </Width>
|
|
<Height> 42 </Height>
|
|
<ID> 000083 </ID>
|
|
</Language>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 552 </X>
|
|
<Y> 85 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Size> 23 </Size>
|
|
<Color> text_hot_color </Color>
|
|
<Value> text_price_d1 </Value>
|
|
</Text>
|
|
<Text>
|
|
<X> 710 </X>
|
|
<Y> 85 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Size> 23 </Size>
|
|
<Color> text_cold_color </Color>
|
|
<Value> text_price_d2 </Value>
|
|
</Text>
|
|
<Text>
|
|
<X> 852 </X>
|
|
<Y> 85 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Size> 23 </Size>
|
|
<State> text_show_thai</State>
|
|
<Color> text_blender_color </Color>
|
|
<Value> text_price_d3 </Value>
|
|
</Text>
|
|
<Text>
|
|
<X> 892 </X>
|
|
<Y> 85 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> text_show_eng</State>
|
|
<Size> 23 </Size>
|
|
<Color> text_blender_color </Color>
|
|
<Value> text_price_d3 </Value>
|
|
</Text>
|
|
|
|
</Block>
|
|
|
|
|
|
|
|
;-END
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
; TEST - BEGIN Custom recipe
|
|
<Block>
|
|
<State> "Enable" </State>
|
|
<Width> 1080 </Width>
|
|
<Height> "auto" </Height>
|
|
<MarginTop> 20 </MarginTop>
|
|
|
|
<ListView1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<Align> "vertical"</Align>
|
|
<State> "Enable" </State>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> 64 </Height>
|
|
<State> showAdjust </State>
|
|
<Image>
|
|
<Filename> Var( DirImageInter + "/bg_top_custom.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 40 </X>
|
|
<Y> 10 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 70 </Height>
|
|
<Language>
|
|
<ID> 002020 </ID>
|
|
</Language>
|
|
</Text>
|
|
</Row1>
|
|
;
|
|
;
|
|
;- Begin topping1
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> BGSugar </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> ExtraTopping </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 356 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
Var SugarZeroCalOption = "Invisible"
|
|
Var UserSeletedSugar = 1
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 467 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 578 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar5
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[4] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR5"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar6
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[5] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR6"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index6
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> CustomSweetNotTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[0]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002070 </ID>
|
|
<SubValue> "(0%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLittleTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[1]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002071 </ID>
|
|
<SubValue> "(30%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLessTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[2]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002072 </ID>
|
|
<SubValue> "(60%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetPerfectTextX </X>
|
|
<Y> CustomSweetPercentTextY </Y>
|
|
<State> "CustomSweetState[3]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002073 </ID>
|
|
<SubValue> "(100%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetExtraTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[4]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002074 </ID>
|
|
<SubValue> "(120%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetestTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[5]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002075 </ID>
|
|
<SubValue> "(140%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
|
|
|
|
|
|
</Row1>
|
|
|
|
; Sugar zero cal in new topping for BGSugarNew and BGMilkNew
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
If BGSugarNew = "Enable" Then
|
|
Var return = "Enable"
|
|
Else
|
|
If BGMilkNew = "Enable" Then
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_zero_cal.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002029 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
; Normal Sugar
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> SugarNormalCheck </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " SugarNormalChecked "
|
|
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Refresh
|
|
Else
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
|
|
If SugarNormalCheck = "PressForever" Then
|
|
Else
|
|
Var SugarNormalCheck = "PressForever"
|
|
EndIf
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; Sugar Zero Cal
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> SugarZeroCalCheck </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable>
|
|
<FilenameDisable2> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable2>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " SugarZeroCalChecked "
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
|
|
Refresh
|
|
Else
|
|
Var SugarNormalCheck = "Enable"
|
|
|
|
If SugarZeroCalCheck = "PressForever" Then
|
|
Else
|
|
Var SugarZeroCalCheck = "PressForever"
|
|
EndIf
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> SugarTextX </X>
|
|
<Y> 50 </Y>
|
|
<Width> 250 </Width>
|
|
<Height> 25 </Height>
|
|
<Language>
|
|
<ID> 002056 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> 800 </X>
|
|
<Y> 67 </Y>
|
|
<Size> 15 </Size>
|
|
<Width> 50 </Width>
|
|
<Height> 25 </Height>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Color> 0x84776F </Color>
|
|
<Value> "(Free)" </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> SugarZeroCalTextX </X>
|
|
<Y> 50 </Y>
|
|
<Width> 250 </Width>
|
|
<Height> 25 </Height>
|
|
<Language>
|
|
<ID> 002057 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> 905 </X>
|
|
<Y> 67 </Y>
|
|
<Size> 15 </Size>
|
|
<Width> 50 </Width>
|
|
<Height> 20 </Height>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Color> 0x84776F </Color>
|
|
<Value> SugarZeroCalPriceStr </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
;- Begin topping new without sugar zero cal
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
Var return = "Invisible"
|
|
Else
|
|
If BGSugarNew = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 356 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
|
|
Var UserSeletedSugar = 1
|
|
|
|
EndIf
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 467 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 578 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar5
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[4] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR5"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar6
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[5] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR6"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index6
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
Var SugarZeroCalCheck = "Enable"
|
|
Var SugarNormalCheck = "PressForever"
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> CustomSweetNotTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[0]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002070 </ID>
|
|
<SubValue> "(0%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLittleTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[1]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002071 </ID>
|
|
<SubValue> "(30%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLessTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[2]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002072 </ID>
|
|
<SubValue> "(60%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetPerfectTextX </X>
|
|
<Y> CustomSweetPercentTextY </Y>
|
|
<State> "CustomSweetState[3]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002073 </ID>
|
|
<SubValue> "(100%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetExtraTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[4]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002074 </ID>
|
|
<SubValue> "(120%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetestTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[5]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002075 </ID>
|
|
<SubValue> "(140%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
;- Begin topping new withsugar zero cal
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
If BGSugarNew = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 356 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
DEBUGVAR CustomSweetState[0]
|
|
SAVELOG "SUGAR1"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
|
|
Refresh
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
DEBUGVAR SugarZeroCalCheck
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
|
|
|
|
;Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 467 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; select no sugar
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
Else
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 578 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
; select no sugar
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
Else
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; select no sugar
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
Else
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar5
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[4] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR5"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "PressForever"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
DEBUGVAR SugarZeroCalCheck
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar6
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[5] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR6"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index6
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index5
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "PressForever"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
Var CustomSweetState[5] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
DEBUGVAR topping1
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> CustomSweetNotTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[0]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002070 </ID>
|
|
<SubValue> "(0%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLittleTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[1]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002071 </ID>
|
|
<SubValue> "(30%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetLessTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[2]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002072 </ID>
|
|
<SubValue> "(60%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetPerfectTextX </X>
|
|
<Y> CustomSweetPercentTextY </Y>
|
|
<State> "CustomSweetState[3]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002073 </ID>
|
|
<SubValue> "(100%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetExtraTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[4]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002074 </ID>
|
|
<SubValue> "(120%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomSweetestTextX </X>
|
|
<Y> CustomSweetTextY </Y>
|
|
<State> "CustomSweetState[5]" </State>
|
|
<Width> 250 </Width>
|
|
<Height> 22 </Height>
|
|
<Language>
|
|
<ID> 002075 </ID>
|
|
<SubValue> "(140%)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
|
|
|
|
; Sugar zero cal recipe for healthy
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
If BGSugarColdHealthy = "Enable" Then
|
|
Var return = "Enable"
|
|
Else
|
|
If BGSugarHotHealthy = "Enable" Then
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy_zero_cal.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002029 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
; Normal Sugar
|
|
<Button>
|
|
<X> 700 </X>
|
|
<Y> 10 </Y>
|
|
<State> SugarNormalCheck </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " SugarNormalChecked "
|
|
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Refresh
|
|
Else
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
|
|
If SugarNormalCheck = "PressForever" Then
|
|
Else
|
|
Var SugarNormalCheck = "PressForever"
|
|
EndIf
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; Sugar Zero Cal
|
|
<Button>
|
|
<X> 850 </X>
|
|
<Y> 10 </Y>
|
|
<State> SugarZeroCalCheck </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable>
|
|
<FilenameDisable2> Var( DirImage + "/topping_revamp/cb_locked_new.png" )</FilenameDisable2>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " SugarZeroCalChecked "
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
|
|
Refresh
|
|
Else
|
|
Var SugarNormalCheck = "Enable"
|
|
|
|
If SugarZeroCalCheck = "PressForever" Then
|
|
Else
|
|
Var SugarZeroCalCheck = "PressForever"
|
|
EndIf
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> HealthySugarTextX </X>
|
|
<Y> 50 </Y>
|
|
<Width> 250 </Width>
|
|
<Height> 25 </Height>
|
|
<Language>
|
|
<ID> 002056 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> 700 </X>
|
|
<Y> 67 </Y>
|
|
<Size> 15 </Size>
|
|
<Width> 50 </Width>
|
|
<Height> 25 </Height>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Color> 0x84776F </Color>
|
|
<Value> "(Free)" </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> HealthySugarZeroCalTextX </X>
|
|
<Y> 50 </Y>
|
|
<Width> 250 </Width>
|
|
<Height> 25 </Height>
|
|
<Language>
|
|
<ID> 002057 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> 850 </X>
|
|
<Y> 67 </Y>
|
|
<Size> 15 </Size>
|
|
<Width> 50 </Width>
|
|
<Height> 20 </Height>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Color> 0x84776F </Color>
|
|
<Value> SugarZeroCalPriceStr </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
; Sugar zero cal, Hot healthy, Then SugarZeroCalOption not enable
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
Var return = "Invisible"
|
|
Else
|
|
If BGSugarHotHealthy = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 400 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 550 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 700 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 850 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugar_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002048 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugar_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002052 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarI_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002049 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarI_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002053 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002050 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002054 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarIII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002051 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarIII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002055 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showMilkEnable </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_milk.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002032 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "PressForever"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "Enable"
|
|
|
|
Var topping11 = toppingID11index1
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "PressForever"
|
|
Var CustomMilkState[2] = "Enable"
|
|
|
|
Var topping11 = toppingID11index2
|
|
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "PressForever"
|
|
|
|
Var topping11 = toppingID11index3
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityI_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<State> CustomMilkState[0] </State>
|
|
<Language>
|
|
<ID> 000126 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityII_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 18 </Height>
|
|
<State> CustomMilkState[1] </State>
|
|
<Language>
|
|
<ID> 000127 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityIII_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 23 </Height>
|
|
<State> CustomMilkState[2] </State>
|
|
<Language>
|
|
<ID> 000128 </ID>
|
|
<SubValue> MilkIncreasePriceText </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
; Sugar zero cal, Hot healthy, Then SugarZeroCalOption enable
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
If BGSugarHotHealthy = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 400 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
Function 2
|
|
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 550 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
;Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 700 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
;Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 850 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
;Var UserSeletedSugar = 1
|
|
EndIf
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugar_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002048 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugar_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002052 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarI_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002049 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarI_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002053 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002050 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002054 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarIII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002051 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarIII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002055 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
; Sugar zero cal, Hot healthy, Then SugarZeroCalOption not enable
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
Var return = "Invisible"
|
|
Else
|
|
If BGSugarColdHealthy = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 400 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 550 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 700 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 850 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugar_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002048 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugar_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002052 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarI_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002049 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarI_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002053 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002050 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002054 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarIII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002051 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarIII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002055 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
; Sugar zero cal, Hot healthy, Then SugarZeroCalOption enable
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> eval(
|
|
If SugarZeroCalOption = "Enable" Then
|
|
If BGSugarColdHealthy = "Enable" Then
|
|
Var showAdjust = "Enable"
|
|
Var return = "Enable"
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
Else
|
|
Var return = "Invisible"
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<State> "Enable" </State>
|
|
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002030 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
; sugar1
|
|
<Button>
|
|
<X> 400 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR1"
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
|
|
Refresh
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "PressForever"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
ar CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
Var SugarNormalCheck = "PressForever"
|
|
If SugarZeroCalCheck = "Disable2" Then
|
|
|
|
Else
|
|
Var SugarZeroCalCheck = "Disable"
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
|
|
Function 2
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar2
|
|
<Button>
|
|
<X> 550 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR2"
|
|
DEBUGVAR SelectDrinkType
|
|
DEBUGVAR UserSeletedSugar
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "PressForever"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index1
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar3
|
|
<Button>
|
|
<X> 700 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "SUGAR3"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "PressForever"
|
|
Var CustomSweetState[3] = "Enable"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
;Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
; sugar4
|
|
<Button>
|
|
<X> 850 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "SUGAR4"
|
|
|
|
If SelectDrinkType = 0 Then
|
|
SAVELOG "drink type popup"
|
|
Var high_light_drink_type = "Enable"
|
|
Else
|
|
|
|
If ShiftSugarStep = 1 Then
|
|
|
|
Var CustomSweetState[0] = "Enable"
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
|
|
; No 2 right steps
|
|
If NoSugarStepRight2 = "true" Then
|
|
|
|
Var CustomSweetState[4] = "Disable"
|
|
|
|
EndIf
|
|
|
|
Var topping1 = toppingID1index4
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 2 Then
|
|
Var CustomSweetState[1] = "Enable"
|
|
Var CustomSweetState[2] = "Enable"
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index3
|
|
EndIf
|
|
|
|
If ShiftSugarStep = 3 Then
|
|
Var CustomSweetState[3] = "PressForever"
|
|
Var CustomSweetState[4] = "Enable"
|
|
Var CustomSweetState[5] = "Enable"
|
|
Var topping1 = toppingID1index2
|
|
EndIf
|
|
|
|
If SugarZeroCalEnable = "true" Then
|
|
If SugarZeroCalCheck = "Disable" Then
|
|
Var SugarZeroCalCheck = "Enable"
|
|
EndIf
|
|
EndIf
|
|
;Var UserSeletedSugar = 1
|
|
EndIf
|
|
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugar_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002048 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugar_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[0] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002052 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarI_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002049 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarI_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[1] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002053 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002050 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[2] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002054 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomHealthySugarIII_Text_X </X>
|
|
<Y> 50 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<ID> 002051 </ID>
|
|
</Language>
|
|
</Text>
|
|
<Text>
|
|
<X> CustomHealthySugarIII_TextBelow_X </X>
|
|
<Y> 65 </Y>
|
|
<State> CustomSweetState[3] </State>
|
|
<Width> 250 </Width>
|
|
<Height> 20 </Height>
|
|
<Language>
|
|
<ID> 002055 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showShotEnable </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_espesso_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002031 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> showShotNormal </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
|
|
Var showShotNormal = "Press"
|
|
Var showShotEnable = "Enable"
|
|
SAVELOG "esp shot ignore"
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> showShotEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var showShotEnable = "Press"
|
|
Var showShotNormal = "Enable"
|
|
SAVELOG "Espresso Shot add"
|
|
|
|
|
|
Function 2
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
<Text>
|
|
<X> CustomEspressoTextX </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<State> showEspressoLevel </State>
|
|
<Language>
|
|
<ID> 002059 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomEspressoShotTextX </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Language>
|
|
<ID> 002060 </ID>
|
|
<SubValue> CoffeeTextLevel1 </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showShotSodaEnable </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_espesso_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002031 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> showShotNormalSoda </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
|
|
Var showShotNormalSoda = "Press"
|
|
If toppingID12index2Status = "Enable" Then
|
|
Var CustomEnergyState[0] = "Enable"
|
|
EndIf
|
|
|
|
If toppingID12index3Status = "Enable" Then
|
|
Var CustomEnergyState[1] = "Enable"
|
|
EndIf
|
|
|
|
|
|
|
|
Var showShotEnableSoda = "Enable"
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> showShotEnableSoda </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
|
|
Var showShotEnableSoda = "Press"
|
|
|
|
If toppingID12index2Status = "" Then
|
|
Var CustomEnergyState[0] = "Invisible"
|
|
Else
|
|
Var CustomEnergyState[0] = "Disable"
|
|
EndIf
|
|
|
|
If toppingID12index3Status = "" Then
|
|
Var CustomEnergyState[1] = "Invisible"
|
|
Else
|
|
Var CustomEnergyState[1] = "Disable"
|
|
EndIf
|
|
|
|
|
|
Var showShotNormalSoda = "Enable"
|
|
|
|
|
|
|
|
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Text>
|
|
<X> CustomEspressoTextX </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<State> showEspressoLevel </State>
|
|
<Language>
|
|
<ID> 002058 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomEspressoShotTextX </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<Language>
|
|
<ID> 002060 </ID>
|
|
<SubValue> CoffeeTextLevel1 </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showEnergyEnable </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_energy_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002035 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomEnergyState[3] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomEnergyState[3] = "Press"
|
|
If cold_button_state = "PressForever" Then
|
|
Var showShotNormalSoda = "Press"
|
|
Var showShotEnableSoda = "Disable"
|
|
Else
|
|
Var showShotNormalSoda = "Disable"
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
If showShotNormalSoda = "Disable" Then
|
|
If toppingID13index1Status = "Enable" Then
|
|
Var showShotNormalSoda = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If showShotEnableSoda = "Disable" Then
|
|
If toppingID13index2Status = "Enable" Then
|
|
Var showShotEnableSoda = "Enable"
|
|
EndIf
|
|
EndIf
|
|
|
|
Var CustomEnergyState[0] = "Enable"
|
|
Var CustomEnergyState[1] = "Enable"
|
|
|
|
|
|
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomEnergyState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomEnergyState[0] = "Press"
|
|
If cold_button_state = "PressForever" Then
|
|
Var showShotNormalSoda = "Press"
|
|
Var showShotEnableSoda = "Disable"
|
|
Else
|
|
Var showShotNormalSoda = "Disable"
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
|
|
|
|
Var CustomEnergyState[1] = "Enable"
|
|
Var CustomEnergyState[3] = "Enable"
|
|
|
|
|
|
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomEnergyState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomEnergyState[1] = "Press"
|
|
|
|
If cold_button_state = "PressForever" Then
|
|
Var showShotNormalSoda = "Press"
|
|
Var showShotEnableSoda = "Disable"
|
|
Else
|
|
Var showShotNormalSoda = "Disable"
|
|
Var showShotEnableSoda = "Disable"
|
|
EndIf
|
|
|
|
|
|
Var CustomEnergyState[0] = "Enable"
|
|
Var CustomEnergyState[3] = "Enable"
|
|
|
|
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 685 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 18 </Height>
|
|
<State> showEspressoLevel </State>
|
|
<Language>
|
|
<ID> 002058 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 784 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 18 </Height>
|
|
<State> showEspressoLevel </State>
|
|
<Language>
|
|
<ID> 002060 </ID>
|
|
<SubValue> "(+5฿)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 892 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 18 </Height>
|
|
<State> showEspressoLevel </State>
|
|
<Language>
|
|
<ID> 002061 </ID>
|
|
<SubValue> "(+10฿)" </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> "Invisible" </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_custom_cocoa_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomCocoaState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCocoaState[0] = "PressForever"
|
|
Var CustomCocoaState[1] = "Enable"
|
|
Var CustomCocoaState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index1
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomCocoaState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCocoaState[0] = "Enable"
|
|
Var CustomCocoaState[1] = "PressForever"
|
|
Var CustomCocoaState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index2
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomCocoaState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCocoaState[0] = "Enable"
|
|
Var CustomCocoaState[1] = "Enable"
|
|
Var CustomCocoaState[2] = "PressForever"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index3
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 684 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCocoaText[0] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 794 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCocoaText[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 903 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCocoaText[2] </Value>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> "Invisible" </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_custom_ovaltine.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomOvaltineState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomOvaltineState[0] = "PressForever"
|
|
Var CustomOvaltineState[1] = "Enable"
|
|
Var CustomOvaltineState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index1
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomOvaltineState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomOvaltineState[0] = "Enable"
|
|
Var CustomOvaltineState[1] = "PressForever"
|
|
Var CustomOvaltineState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index2
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomOvaltineState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomOvaltineState[0] = "Enable"
|
|
Var CustomOvaltineState[1] = "Enable"
|
|
Var CustomOvaltineState[2] = "PressForever"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index3
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 674 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomOvaltineText[0] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 784 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomOvaltineText[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 893 </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showEspressoLevel </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomOvaltineText[2] </Value>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
;for only milk in new topping
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> BGMilkNew </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_milk.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 002032 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "PressForever"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "Enable"
|
|
|
|
Var topping11 = toppingID11index1
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "PressForever"
|
|
Var CustomMilkState[2] = "Enable"
|
|
|
|
Var topping11 = toppingID11index2
|
|
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 10 </Y>
|
|
<State> CustomMilkState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/topping_revamp/cb_locked_new.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomMilkState[0] = "Enable"
|
|
Var CustomMilkState[1] = "Enable"
|
|
Var CustomMilkState[2] = "PressForever"
|
|
|
|
Var topping11 = toppingID11index3
|
|
|
|
Function 2
|
|
Refresh
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityI_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 25 </Height>
|
|
<State> CustomMilkState[0] </State>
|
|
<Language>
|
|
<ID> 000126 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityII_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 25 </Height>
|
|
<State> CustomMilkState[1] </State>
|
|
<Language>
|
|
<ID> 000127 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> CustomMilkIntensityIII_X </X>
|
|
<Y> CustomEspressoTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 23 </Height>
|
|
<State> CustomMilkState[2] </State>
|
|
<Language>
|
|
<ID> 000128 </ID>
|
|
<SubValue> MilkIncreasePriceText </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<State> showAdjust </State>
|
|
<Width> 986 </Width>
|
|
<Height> 27 </Height>
|
|
<Y> -5 </Y>
|
|
<Image>
|
|
<State> showAdjust </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bg_bottom.png" </Filename>
|
|
</Image>
|
|
</Row1>
|
|
|
|
</ListView1>
|
|
</Block>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
; TEST - BEGIN Custom coffee
|
|
<Block>
|
|
<State> showCustomCoffee </State>
|
|
<Width> 1080 </Width>
|
|
<Height> "auto" </Height>
|
|
<MarginTop> 20 </MarginTop>
|
|
|
|
<ListView1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<Align> "vertical"</Align>
|
|
<State> showCustomCoffee </State>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> 64 </Height>
|
|
<State> showCustomCoffee </State>
|
|
<Image>
|
|
<Filename> "ROOT/taobin_project/image/topping_mmr/bg_top_custom_coffee.png" </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 40 </X>
|
|
<Y> 10 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 000103 </ID>
|
|
</Language>
|
|
</Text>
|
|
</Row1>
|
|
;
|
|
;
|
|
; Customer Coffee Water Level
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showCoffeeWater </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_coffee_water_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 000104 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 467 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeWaterState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeWaterState[0] = "PressForever"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
|
|
Var CurrentCoffeeWaterId = toppingID7index1
|
|
|
|
Function 2
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 578 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeWaterState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "PressForever"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
|
|
Var CurrentCoffeeWaterId = toppingID7index2
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeWaterState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "PressForever"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
|
|
Var CurrentCoffeeWaterId = toppingID7index3
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeWaterState[3] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "PressForever"
|
|
Var CustomCoffeeWaterState[4] = "Enable"
|
|
|
|
Var CurrentCoffeeWaterId = toppingID7index4
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeWaterState[4] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeWaterState[0] = "Enable"
|
|
Var CustomCoffeeWaterState[1] = "Enable"
|
|
Var CustomCoffeeWaterState[2] = "Enable"
|
|
Var CustomCoffeeWaterState[3] = "Enable"
|
|
Var CustomCoffeeWaterState[4] = "PressForever"
|
|
|
|
Var CurrentCoffeeWaterId = toppingID7index5
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 472 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeWater </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeWaterText[0] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 583 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeWater </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeWaterText[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 694 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeWater </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeWaterText[2] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 805 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeWater </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeWaterText[3] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 916 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeWater </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeWaterText[4] </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showCoffeeQuantity </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_coffee_bean_quantity.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 000105 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeQuantityState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeQuantityState[0] = "PressForever"
|
|
Var CustomCoffeeQuantityState[1] = "Enable"
|
|
Var CustomCoffeeQuantityState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index1
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeQuantityState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeQuantityState[0] = "Enable"
|
|
Var CustomCoffeeQuantityState[1] = "PressForever"
|
|
Var CustomCoffeeQuantityState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index2
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeQuantityState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeQuantityState[0] = "Enable"
|
|
Var CustomCoffeeQuantityState[1] = "Enable"
|
|
Var CustomCoffeeQuantityState[2] = "PressForever"
|
|
|
|
Var CurrentCoffeeQuantityId = toppingID8index3
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 699 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeQuantity </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeQuantityText[0] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<Refresh> "Enable" </Refresh>
|
|
<X> CustomCoffeeQuantityTextX[1] </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeQuantity </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeQuantityText[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<Refresh> "Enable" </Refresh>
|
|
<X> CustomCoffeeQuantityTextX[2] </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeQuantity </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x513C2F </Color>
|
|
<Value> CustomCoffeeQuantityText[2] </Value>
|
|
</Text>
|
|
|
|
; Additional Price
|
|
<Text>
|
|
<X> 810 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeQuantity </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> CustomCoffeeQuantityAdditionalPrice[1] </Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 918 </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCoffeeQuantity </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> CustomCoffeeQuantityAdditionalPrice[2] </Value>
|
|
</Text>
|
|
</Row1>
|
|
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showCoffeeLevel </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_coffee_level.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 000106 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 578 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeLevelState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeLevelState[0] = "PressForever"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
Var CurrentCoffeeLevelId = toppingID9index1
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeLevelState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "PressForever"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
Var CurrentCoffeeLevelId = toppingID9index2
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeLevelState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "PressForever"
|
|
Var CustomCoffeeLevelState[3] = "Enable"
|
|
|
|
Var CurrentCoffeeLevelId = toppingID9index3
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeLevelState[3] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeLevelState[0] = "Enable"
|
|
Var CustomCoffeeLevelState[1] = "Enable"
|
|
Var CustomCoffeeLevelState[2] = "Enable"
|
|
Var CustomCoffeeLevelState[3] = "PressForever"
|
|
|
|
Var CurrentCoffeeLevelId = toppingID9index4
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> custom_coffee_level_medium_text_x </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 20 </Height>
|
|
<State> showCoffeeLevel </State>
|
|
<Language>
|
|
<ID> 000108 </ID>
|
|
<SubValue> CustomCoffeeLevelAdditionalPrice[0] </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> custom_coffee_level_right_text_x </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 20 </Height>
|
|
<State> showCoffeeLevel </State>
|
|
<Language>
|
|
<ID> 000109 </ID>
|
|
<SubValue> CustomCoffeeLevelAdditionalPrice[1] </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> custom_coffee_level_dark_text_x </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 25 </Height>
|
|
<State> showCoffeeLevel </State>
|
|
<Language>
|
|
<ID> 000110 </ID>
|
|
<SubValue> CustomCoffeeLevelAdditionalPrice[2] </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> custom_coffee_level_darker_text_x </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 25 </Height>
|
|
<State> showCoffeeLevel </State>
|
|
<Language>
|
|
<ID> 000111 </ID>
|
|
<SubValue> CustomCoffeeLevelAdditionalPrice[3] </SubValue>
|
|
<SubSize> 15 </SubSize>
|
|
<SubColor> 0x84776F </SubColor>
|
|
</Language>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showCoffeeTamping </State>
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_custom_coffee_tamping_pressure.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 130 </X>
|
|
<Y> 15 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 46 </Height>
|
|
<Language>
|
|
<ID> 000107 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 689 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeTampingState[0] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeTampingState[0] = "PressForever"
|
|
Var CustomCoffeeTampingState[1] = "Enable"
|
|
Var CustomCoffeeTampingState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeTampingId = toppingID8index1
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeTampingState[1] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeTampingState[0] = "Enable"
|
|
Var CustomCoffeeTampingState[1] = "PressForever"
|
|
Var CustomCoffeeTampingState[2] = "Enable"
|
|
|
|
Var CurrentCoffeeTampingId = toppingID8index2
|
|
|
|
Function 2
|
|
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Button>
|
|
<X> 911 </X>
|
|
<Y> 5 </Y>
|
|
<State> CustomCoffeeTampingState[2] </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked_new.png" ) </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var CustomCoffeeTampingState[0] = "Enable"
|
|
Var CustomCoffeeTampingState[1] = "Enable"
|
|
Var CustomCoffeeTampingState[2] = "PressForever"
|
|
|
|
Var CurrentCoffeeTampingId = toppingID8index3
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> TampingCoffeeI_X </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 20 </Height>
|
|
<State> showCoffeeTamping </State>
|
|
<Language>
|
|
<ID> 002080 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> TampingCoffeeII_X </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 20 </Height>
|
|
<State> showCoffeeTamping </State>
|
|
<Language>
|
|
<ID> 002081 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> TampingCoffeeIII_X </X>
|
|
<Y> CustomCoffeeTextY </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 20 </Height>
|
|
<State> showCoffeeTamping </State>
|
|
<Language>
|
|
<ID> 002082 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<State> showCustomCoffee </State>
|
|
<Width> 986 </Width>
|
|
<Height> 27 </Height>
|
|
<Y> -5 </Y>
|
|
<Image>
|
|
<State> showCustomCoffee </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bg_bottom.png" </Filename>
|
|
</Image>
|
|
</Row1>
|
|
|
|
</ListView1>
|
|
</Block>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
; Extra topping.
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;-BEGIN shot layout
|
|
<Block>
|
|
<State> SpecialMix </State>
|
|
<Width> 1080 </Width>
|
|
<Height> "auto" </Height>
|
|
<MarginTop> 20 </MarginTop>
|
|
|
|
<ListView1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<Align> "vertical"</Align>
|
|
<State> SpecialMix </State>
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> 72 </Height>
|
|
<State> SpecialMix </State>
|
|
<Image>
|
|
<Filename> Var( DirImageInter + "/bg_top_custom_special.png" ) </Filename>
|
|
</Image>
|
|
<Text>
|
|
<X> 40 </X>
|
|
<Y> 10 </Y>
|
|
<Width> 1000 </Width>
|
|
<Height> 70 </Height>
|
|
<Language>
|
|
<ID> 002021 </ID>
|
|
</Language>
|
|
</Text>
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showOvaltineEnable </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002038 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> showOvaltineEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_Ovaltine.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_Ovaltine.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_Ovaltine.png" </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Ovaltine"
|
|
If showOvaltineEnable = "Press" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showOvaltineEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showCocoaEnable = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOreoAddEnable = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showCocoaEnable = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOreoAddEnable = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> showOvaltineEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Ovaltine"
|
|
If showOvaltineEnable = "Press" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showOvaltineEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showCocoaEnable = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOreoAddEnable = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showCocoaEnable = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOreoAddEnable = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showOvaltineEnable </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> OvaltinePriceText </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showOreoAddEnable </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002037 </ID>
|
|
</Language>
|
|
</Text>
|
|
;
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> showOreoAddEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_oreo.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_oreo.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_oreo.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Oreo"
|
|
If showOreoAddEnable = "Press" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showOreoAddEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showCocoaEnable = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showCocoaEnable = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> showOreoAddEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Oreo"
|
|
If showOreoAddEnable = "Press" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showOreoAddEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showCocoaEnable = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showCocoaEnable = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showOreoAddEnable </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> OreoPriceText </Value>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showCocoaEnable </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002039 </ID>
|
|
</Language>
|
|
</Text>
|
|
;
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> showCocoaEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_cocoa.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_cocoa.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_cocoa.png" </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Cocoa"
|
|
If showCocoaEnable = "Press" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showCocoaEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showOreoAddEnable = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showOreoAddEnable = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> showCocoaEnable </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> CocoaPriceText </Value>
|
|
</Text>
|
|
|
|
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> showCocoaEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Cocoa"
|
|
If showCocoaEnable = "Press" Then
|
|
Var showCocoaEnable = "Enable"
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var showCocoaEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If showOreoAddEnable = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If showOreoAddEnable = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If showOvaltineEnable = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount > 0 Then
|
|
Var SelectToppingType = 1
|
|
Else
|
|
Var SelectToppingType = 0
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> CollagenState </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002036 </ID>
|
|
</Language>
|
|
</Text>
|
|
;
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> CollagenState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_jemila.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_jemila.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_jemila.png" </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Collagen"
|
|
Var SelectToppingType = 1
|
|
|
|
If CollagenState = "Press" Then
|
|
Var CollagenState = "Enable"
|
|
Else
|
|
Var CollagenState = "Press"
|
|
EndIf
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> CollagenState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "Press add Collagen"
|
|
Var SelectToppingType = 1
|
|
|
|
If CollagenState = "Press" Then
|
|
Var CollagenState = "Enable"
|
|
Else
|
|
Var CollagenState = "Press"
|
|
EndIf
|
|
|
|
Function 2
|
|
|
|
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> CollagenState </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x92D955 </Color>
|
|
<Value> CollagenPriceText </Value>
|
|
</Text>
|
|
|
|
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
<Row1>
|
|
<State> "Enable" </State>
|
|
<Width> 986 </Width>
|
|
<Height> 27 </Height>
|
|
<Y> -5 </Y>
|
|
<Image>
|
|
<State> ExtraTopping </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bg_bottom.png" </Filename>
|
|
</Image>
|
|
</Row1>
|
|
|
|
|
|
|
|
</ListView1>
|
|
</Block>
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
; Custom Syrup
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Block>
|
|
<State> CustomSyrup </State>
|
|
<Width> 1080 </Width>
|
|
<Height> "auto" </Height>
|
|
<MarginTop> 20 </MarginTop>
|
|
|
|
<ListView1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<Align> "vertical"</Align>
|
|
<State> CustomSyrup </State>
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> 72 </Height>
|
|
<State> CustomSyrup </State>
|
|
<Image>
|
|
<Filename> Var( DirImageInter + "/bg_top_custom_special.png" ) </Filename>
|
|
</Image>
|
|
<Text>
|
|
<X> 40 </X>
|
|
<Y> 10 </Y>
|
|
<Width> 800 </Width>
|
|
<Height> 70 </Height>
|
|
<Language>
|
|
<ID> 002022 </ID>
|
|
</Language>
|
|
</Text>
|
|
</Row1>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showStrawberryEnable </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002040 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> showStrawberryEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_strawberry.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_strawberry.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_strawberry.png" </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " Press add Strawberry "
|
|
|
|
|
|
If showStrawberryEnable = "Press" Then
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
Var SelectSyrupType = 1
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> showStrawberryEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG " Press add Strawberry "
|
|
|
|
|
|
If showStrawberryEnable = "Press" Then
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Else
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
Var SelectSyrupType = 1
|
|
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> "Enable" </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> StrawberryPriceText </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Row1>
|
|
<Width> 986 </Width>
|
|
<Height> "auto" </Height>
|
|
<State> showYuzuEnable </State>
|
|
;
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 0 </Y>
|
|
<Filename> Var( DirImageInter + "/bg_special_topping.png") </Filename>
|
|
</Image>
|
|
|
|
<Text>
|
|
<X> 120 </X>
|
|
<Y> 0 </Y>
|
|
<Width> 500 </Width>
|
|
<Height> 72 </Height>
|
|
<Language>
|
|
<ID> 002041 </ID>
|
|
</Language>
|
|
</Text>
|
|
|
|
;
|
|
<Button>
|
|
<X> 40 </X>
|
|
<Y> 5 </Y>
|
|
<State> showYuzuEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bn_add_yuzu.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping2/bp_add_yuzu.png" </FilenamePress>
|
|
<FilenameDisable> "ROOT/taobin_project/image/topping2/bd_add_yuzu.png" </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Yuzu"
|
|
|
|
If showYuzuEnable = "Press" Then
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var SelectSyrupType = 1
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
;
|
|
<Button>
|
|
<X> 896 </X>
|
|
<Y> 14 </Y>
|
|
<State> showYuzuEnable </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Press add Yuzu"
|
|
|
|
If showYuzuEnable = "Press" Then
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
If toppingID6index5Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var showStrawberryEnable = "Enable"
|
|
Else
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Enable"
|
|
Else
|
|
Var showYuzuEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
|
|
If TOPPING6 = "all-volcano" Then
|
|
If toppingID6index5 = 324 Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index6 = 325 Then
|
|
If toppingID6index6Status = "Enable" Then
|
|
Var showYuzuEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
If TOPPING6 = "syrup-topping" Then
|
|
If toppingID6index2 = 91 Then
|
|
Var showStrawberryEnable = "Disable"
|
|
EndIf
|
|
|
|
If toppingID6index3 = 92 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var showYuzuEnable = "Press"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
Var SelectSyrupType = 1
|
|
|
|
Function 2
|
|
|
|
Refresh
|
|
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 833 </X>
|
|
<Y> 26 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> "Enable" </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> YuzuPriceText </Value>
|
|
</Text>
|
|
|
|
</Row1>
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
<Row1>
|
|
<State> "Enable" </State>
|
|
<Width> 986 </Width>
|
|
<Height> 27 </Height>
|
|
<Y> -5 </Y>
|
|
<Image>
|
|
<State> ExtraTopping </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/bg_bottom.png" </Filename>
|
|
</Image>
|
|
</Row1>
|
|
|
|
|
|
|
|
</ListView1>
|
|
</Block>
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
|
|
</FrameScroll>
|
|
|
|
<EventSecurity>
|
|
Open "/media/bt/xml/security_alarm.xml"
|
|
</EventSecurity>
|
|
|
|
|
|
|
|
|
|
|
|
; back
|
|
<Button>
|
|
<X> 44 </X>
|
|
<Y> 1785 </Y>
|
|
<Filename> "ROOT/taobin_project/image/topping_inter/bn_cancel.png" </Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_cancel.png"</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
;Open PreviseXMLFileName2
|
|
DEBUGVAR OpenFromXML
|
|
|
|
TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/tricker.ev"
|
|
|
|
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"
|
|
|
|
DEBUGVAR OpenFromInstMenuTab
|
|
If OpenFromInstMenuTab > 0 Then
|
|
TabMenuVisibleInst OpenFromInstMenuTab
|
|
OpenInst 2 "/mnt/sdcard/coffeevending/taobin_project/inter/tha/xml/multi/page_instance2.xml"
|
|
Else
|
|
Open OpenFromXML
|
|
EndIf
|
|
|
|
</EventClick>
|
|
<Language>
|
|
<X> Cancel_text_X </X>
|
|
<Y> 16 </Y>
|
|
<Width> 150 </Width>
|
|
<Height> 42 </Height>
|
|
<ID> 000074 </ID>
|
|
</Language>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button>
|
|
<X> 277 </X>
|
|
<Y> 1772 </Y>
|
|
<State> NEW_MULTI </State>
|
|
;<Color> "0x00BDFF" </Color>
|
|
<Interval> 500 </Interval>
|
|
<Filename> Var( DirImage + "/new_multi.png" ) </Filename>
|
|
<EventClick>
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
; next
|
|
<Button>
|
|
<X> 652 </X>
|
|
<Y> 1785 </Y>
|
|
<Filename> "ROOT/taobin_project/image/topping_inter/bn_next.png"</Filename>
|
|
<FilenamePress> "ROOT/taobin_project/image/topping_inter/bp_next.png"</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
<EventClick>
|
|
|
|
;include="ROOT/taobin_project/inc/button_topping_select_confirm_order.inc"
|
|
|
|
</EventClick>
|
|
<Language>
|
|
<X> Paynow_text_X </X>
|
|
<Y> 19 </Y>
|
|
<ID> 000073 </ID>
|
|
</Language>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
<Button>
|
|
<X> SpeicalButtonPositionX </X>
|
|
<Y> 1785 </Y>
|
|
<State> ShowSpecialButton </State>
|
|
<Filename> Var( DirImage + "/bn_button_no_text.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/bp_button_no_text.png" )</FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
;include="ROOT/taobin_project/inc/button_topping_select_confirm_order.inc"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> SpeicalButtonPositionX </X>
|
|
<Y> 1785 </Y>
|
|
<Width> 360 </Width>
|
|
<Height> 92 </Height>
|
|
<Align> center-vertical-horizontal </Align>
|
|
<State> ShowSpecialButton </State>
|
|
<Value> TextShowSpecialButton </Value>
|
|
<Font> KanitTTF </Font>
|
|
<Size> TextSize </Size>
|
|
</Text>
|
|
|
|
;
|
|
;
|
|
;
|
|
;
|
|
;
|
|
|
|
|
|
|
|
<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 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 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"
|
|
|
|
|
|
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[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
|
|
|
|
If Price5Active = 1 Then
|
|
Var PriceDrinkNoTop = 5
|
|
If blend_button_state = "PressForever" Then
|
|
Var PriceDrinkNoTop = 10
|
|
EndIf
|
|
EndIf
|
|
|
|
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
|
|
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
|
|
Var bnAcceptX = 360
|
|
EndIf
|
|
|
|
|
|
Var Timeout = 0
|
|
|
|
RefreshAll
|
|
|
|
</Function2>
|
|
|
|
|
|
|
|
<Text>
|
|
<X> 924 </X>
|
|
<Y> 1804 </Y>
|
|
<Font> KanitTTF </Font>
|
|
<Size> 36 </Size>
|
|
<Width> 1080 </Width>
|
|
<Color> 0xFFFFFF </Color>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
<Value> PriceDrinkTmpShow </Value>
|
|
</Text>
|
|
|
|
|
|
; next2 button Protect
|
|
<Button>
|
|
<State> ConfirmDrinkButtonState </State>
|
|
<X> 526 </X>
|
|
<Y> 1785 </Y>
|
|
<Filename> "ROOT/taobin_project/image/topping/topping2/bd_next2.png"</Filename>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
<Text>
|
|
<State> ConfirmDrinkButtonState </State>
|
|
<X> 0 </X>
|
|
<Y> 18 </Y>
|
|
<Align> Center </Align>
|
|
<Width> 512 </Width>
|
|
<Font> KanitTTF </Font>
|
|
<Size> 36 </Size>
|
|
<Color> 0x746253 </Color>
|
|
<Value> ShowTextSelfTestCountDown </Value>
|
|
</Text>
|
|
</Button>
|
|
|
|
; zone
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Width> 1080 </Width>
|
|
<Height> 1540 </Height>
|
|
<State> toppingSelectState </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/topping_revamp/alpha.png"</Filename>
|
|
</Image>
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> 880 </Y>
|
|
<Width> 641 </Width>
|
|
<Height> 180 </Height>
|
|
<State> toppingSelectState </State>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_top_popup.png" ) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> ovaltine_y </Y>
|
|
<Width> 641 </Width>
|
|
<Height> 72 </Height>
|
|
<State> CustomOvaltineState </State>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_top_ovaltine.png" ) </Filename>
|
|
</Image>
|
|
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> ovaltine_button_y </Y>
|
|
<State> CustomOvaltineCheckState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Click ovaltine cb"
|
|
If CustomOvaltineCheckState = "Press" Then
|
|
Var CustomOvaltineCheckState = "Enable"
|
|
If toppingID6index4 = 323 Then
|
|
Var showOvaltineEnable = "Enable"
|
|
EndIf
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var CustomOvaltineCheckState = "Press"
|
|
Var showOvaltineEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If CustomOreoCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var CustomOreoCheckState = "Invisible"
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var CustomOreoCheckState = "Disable"
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If CustomCocoaCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var CustomCocoaCheckState = "Invisible"
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var CustomCocoaCheckState = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If CustomOreoCheckState = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var CustomOreoCheckState = "Enable"
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var CustomOreoCheckState = "Disable"
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If CustomCocoaCheckState = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var CustomCocoaCheckState = "Enable"
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var CustomCocoaCheckState = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 750 </X>
|
|
<Y> 1083 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> CustomOvaltineState </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> OvaltinePriceText </Value>
|
|
</Text>
|
|
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> oreo_y </Y>
|
|
<Width> 641 </Width>
|
|
<Height> 72 </Height>
|
|
<State> CustomOreoState </State>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_top_oreo.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> oreo_button_y </Y>
|
|
<State> CustomOreoCheckState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Click oreo cb"
|
|
If CustomOreoCheckState = "Press" Then
|
|
Var CustomOreoCheckState = "Enable"
|
|
If toppingID6index2 = 321 Then
|
|
Var showOreoAddEnable = "Enable"
|
|
EndIf
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var CustomOreoCheckState = "Press"
|
|
Var showOreoAddEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If CustomOvaltineCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var CustomOvaltineCheckState = "Invisible"
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var CustomOvaltineCheckState = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If CustomCocoaCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index3Status = "" Then
|
|
Var CustomCocoaCheckState = "Invisible"
|
|
Var showCocoaEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var CustomCocoaCheckState = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If CustomOvaltineCheckState = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var CustomOvaltineCheckState = "Enable"
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var CustomOvaltineCheckState = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
|
|
EndIf
|
|
If CustomCocoaCheckState = "Disable" Then
|
|
If toppingID6index3 = 322 Then
|
|
If toppingID6index3Status = "Enable" Then
|
|
Var CustomCocoaCheckState = "Enable"
|
|
Var showCocoaEnable = "Enable"
|
|
Else
|
|
Var CustomCocoaCheckState = "Disable"
|
|
Var showCocoaEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 750 </X>
|
|
<Y> 1155 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> CustomOreoState </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> OreoPriceText </Value>
|
|
</Text>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> cocoa_y </Y>
|
|
<Width> 641 </Width>
|
|
<Height> 72 </Height>
|
|
<State> CustomCocoaState </State>
|
|
<Filename> Var( DirImage + "/topping_revamp/bg_top_cocoa.png" ) </Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 800 </X>
|
|
<Y> cocoa_button_y </Y>
|
|
<State> CustomCocoaCheckState </State>
|
|
<Mode> "No" </Mode>
|
|
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
|
|
<FilenamePress> Var( DirImage + "/cb_checked.png" ) </FilenamePress>
|
|
<FilenameDisable> Var( DirImage + "/cb_checkdis.png" ) </FilenameDisable>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
SAVELOG "Click cocoa cb"
|
|
If CustomCocoaCheckState = "Press" Then
|
|
Var CustomCocoaCheckState = "Enable"
|
|
If toppingID6index3 = 322 Then
|
|
Var showCocoaEnable = "Enable"
|
|
EndIf
|
|
Var SelectedToppingCount = SelectedToppingCount - 1
|
|
Else
|
|
If SelectedToppingCount < 2 Then
|
|
Var CustomCocoaCheckState = "Press"
|
|
Var showCocoaEnable = "Press"
|
|
Var SelectedToppingCount = SelectedToppingCount + 1
|
|
EndIf
|
|
EndIf
|
|
|
|
If SelectedToppingCount >= 2 Then
|
|
If CustomOvaltineCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index4Status = "" Then
|
|
Var CustomOvaltineCheckState = "Invisible"
|
|
Var showOvaltineEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var CustomOvaltineCheckState = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
If CustomOreoCheckState = "Press" Then
|
|
Else
|
|
If toppingID6index2Status = "" Then
|
|
Var CustomOreoCheckState = "Invisible"
|
|
Var showOreoAddEnable = "Invisible"
|
|
EndIf
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var CustomOreoCheckState = "Disable"
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
Else
|
|
If CustomOvaltineCheckState = "Disable" Then
|
|
If toppingID6index4 = 323 Then
|
|
If toppingID6index4Status = "Enable" Then
|
|
Var CustomOvaltineCheckState = "Enable"
|
|
Var showOvaltineEnable = "Enable"
|
|
Else
|
|
Var CustomOvaltineCheckState = "Disable"
|
|
Var showOvaltineEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
If CustomOreoCheckState = "Disable" Then
|
|
If toppingID6index2 = 321 Then
|
|
If toppingID6index2Status = "Enable" Then
|
|
Var CustomOreoCheckState = "Enable"
|
|
Var showOreoAddEnable = "Enable"
|
|
Else
|
|
Var CustomOreoCheckState = "Disable"
|
|
Var showOreoAddEnable = "Disable"
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
EndIf
|
|
|
|
|
|
Function 2
|
|
Refresh
|
|
</EventClick>
|
|
<Animation>
|
|
<Style> "shake-text" </Style>
|
|
<OnEvent> "OnValueChange" </OnEvent>
|
|
</Animation>
|
|
</Button>
|
|
|
|
<Text>
|
|
<X> 750 </X>
|
|
<Y> 1226 </Y>
|
|
<Font> KanitRegularTTF </Font>
|
|
<State> CustomCocoaState </State>
|
|
<Size> 16 </Size>
|
|
<Color> 0x84776F </Color>
|
|
<Value> CocoaPriceText </Value>
|
|
</Text>
|
|
|
|
|
|
<Image>
|
|
<X> 240 </X>
|
|
<Y> bottom_y </Y>
|
|
<Width> 641 </Width>
|
|
<Height> 120 </Height>
|
|
<State> toppingSelectState </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/topping_revamp/bg_bottom.png"</Filename>
|
|
</Image>
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 820 </X>
|
|
<Y> 900 </Y>
|
|
<Width> 34 </Width>
|
|
<Height> 34 </Height>
|
|
<State> toppingSelectState </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/topping_revamp/bg_exit.png"</Filename>
|
|
<EventClick>
|
|
Var MenuReady = "-"
|
|
Var toppingSelectState = "Invisible"
|
|
Var CustomOreoState = "Invisible"
|
|
Var CustomOvaltineState = "Invisible"
|
|
Var CustomCocoaState = "Invisible"
|
|
Var CustomCollagenState = "Invisible"
|
|
|
|
|
|
Var CustomOreoCheckState = "Invisible"
|
|
Var CustomOvaltineCheckState = "Invisible"
|
|
Var CustomCocoaCheckState = "Invisible"
|
|
</EbentClick>
|
|
</Image>
|
|
|
|
|
|
<Button>
|
|
<X> bnAcceptX </X>
|
|
<Y> accept_y </Y>
|
|
<State> toppingSelectState </State>
|
|
<Filename> bnAccept </Filename>
|
|
<FilenamePress> bpAccept </FilenamePress>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
|
|
<EventClick>
|
|
Var SelectToppingType = 1
|
|
;include="ROOT/taobin_project/inc/button_topping_select_confirm_order.inc"
|
|
|
|
</EventClick>
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Image>
|
|
<X> 0 </X>
|
|
<Y> 380 </Y>
|
|
<Width> 1080 </Width>
|
|
<Height> 1540 </Height>
|
|
<State> high_light_drink_type </State>
|
|
<Filename> "ROOT/taobin_project/image/topping2/topping_revamp/high_light_drink_type.png"</Filename>
|
|
</Image>
|
|
|
|
<Button>
|
|
<X> 508 </X>
|
|
<Y> 773 </Y>
|
|
<State> eval(
|
|
Var return = "Invisible"
|
|
If high_light_drink_type = "Enable" Then
|
|
If hot_button_state = "Enable" Then
|
|
Var return = "Enable"
|
|
EndIf
|
|
EndIf
|
|
)
|
|
</State>
|
|
<Width> 160 </Width>
|
|
<Height> 56 </Height>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "Press hot"
|
|
|
|
Var hot_button_state = "PressForever"
|
|
|
|
Var SelectDrinkType = 1
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE1
|
|
|
|
Var high_light_drink_type = "Invisible"
|
|
|
|
Function 2
|
|
|
|
|
|
Refresh
|
|
|
|
|
|
</EventClick>
|
|
</Button>
|
|
<Button>
|
|
<X> 666 </X>
|
|
<Y> 773 </Y>
|
|
<State> eval(
|
|
Var return = "Invisible"
|
|
If high_light_drink_type = "Enable" Then
|
|
If cold_button_state = "Enable" Then
|
|
Var return = "Enable"
|
|
EndIf
|
|
EndIf
|
|
) </State>
|
|
<Width> 160 </Width>
|
|
<Height> 56 </Height>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
Var cold_button_state = "PressForever"
|
|
|
|
SAVELOG "Press cold - on high-light"
|
|
Var high_light_drink_type = "Invisible"
|
|
|
|
|
|
Var SelectDrinkType = 1
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE2
|
|
|
|
Var PriceDrinkNoTop = PriceD2
|
|
|
|
Function 2
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
<Button>
|
|
<X> 824 </X>
|
|
<Y> 773 </Y>
|
|
<State> eval(
|
|
Var return = "Invisible"
|
|
If high_light_drink_type = "Enable" Then
|
|
If blend_button_state = "Enable" Then
|
|
Var return = "Enable"
|
|
EndIf
|
|
EndIf
|
|
) </State>
|
|
<Width> 160 </Width>
|
|
<Height> 56 </Height>
|
|
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
|
|
<Volume> SoundVolume </Volume>
|
|
<EventClick>
|
|
|
|
SAVELOG "Press blend"
|
|
|
|
Var blend_button_state = "PressForever"
|
|
Var high_light_drink_type = "Invisible"
|
|
|
|
Var SelectDrinkType = 1
|
|
Var BugFlag = 0
|
|
Var topping_price_refresh = 0
|
|
Topping "Load" PD_CODE3
|
|
|
|
Var PriceDrinkNoTop = PriceD3
|
|
|
|
|
|
Function 2
|
|
|
|
|
|
Refresh
|
|
</EventClick>
|
|
</Button>
|
|
<Text>
|
|
<X> 543 </X>
|
|
<Y> 715 </Y>
|
|
<State> high_light_drink_type </State>
|
|
<Font> KanitTTF </Font>
|
|
<Size> 36 </Size>
|
|
<Width> 1080 </Width>
|
|
<Color> 0xFF0000 </Color>
|
|
<Value> eval(
|
|
If show_eng = "true" Then
|
|
Var return = "Please choose drink type"
|
|
Else
|
|
Var return ="โปรดเลือกประเภทเครื่องดื่ม"
|
|
EndIf
|
|
)</Value>
|
|
</Text>
|
|
|
|
<Text>
|
|
<X> 1 </X>
|
|
<Y> 1 </Y>
|
|
<Font> KanitTTF </Font>
|
|
<Size> 22 </Size>
|
|
<Width> 1080 </Width>
|
|
<Align> end </Align>
|
|
<Color> 0xFF0000 </Color>
|
|
<Value> "V1.1"</Value>
|
|
</Text>
|
|
|
|
|
|
;
|
|
|
|
<EventUnitTest1>
|
|
SetLanguage "NEXT_LANG"
|
|
</EventUnitTest1>
|
|
|
|
<EventUnitTest2>
|
|
Var PromotionOreoToppingFreeEnable = 0
|
|
DEBUGVAR PromotionOreoToppingFreeEnable
|
|
</EventUnitTest2>
|
|
|
|
<EventUnitTest4>
|
|
Topping "Select" UserSelectProductCode
|
|
DEBUGVAR UserSelectProductCode
|
|
|
|
; Set option toppinng and pack
|
|
Topping "Select1-ID" topping1
|
|
Topping "Select2-ID" topping2
|
|
Topping "Select3-ID" topping3
|
|
Topping "Select6-ID" topping6
|
|
Topping "Select7-ID" topping7
|
|
Topping "Select8-ID" topping8
|
|
Topping "Select9-ID" topping9
|
|
Topping "Select10-ID" topping10
|
|
|
|
Topping "ClearMultiTopping" "Test 4"
|
|
Var strMulti6_1 = "TPID=313,multiply=2"
|
|
Var strMulti6_2 = "TPID=302,multiply=1"
|
|
;Var strMulti6_3 = "TPID=82,multiply=1"
|
|
|
|
Topping "Multiply6-ID" strMulti6_1
|
|
Topping "Multiply6-ID" strMulti6_2
|
|
;Topping "Multiply6-ID" strMulti6_3
|
|
|
|
Topping "Pack" ExtendDataCurr
|
|
|
|
</EventUnitTest4>
|
|
|
|
<EventUnitTest7>
|
|
<Name> "MachineSpiralStage set spiral-valid" </Name>
|
|
<Script>
|
|
Var MachineSpiralStage = "spiral-valid"
|
|
</Script>
|
|
|
|
</EventUnitTest7>
|
|
|
|
|
|
<EventUnitTest8>
|
|
<Name> "MachineSpiralStage set error" </Name>
|
|
<Script>
|
|
Var MachineSpiralStage = "Error"
|
|
</Script>
|
|
</EventUnitTest8>
|
|
|
|
</Popup>
|