Delete xml/menu_tab
This commit is contained in:
parent
44831b9c84
commit
c0348c0bde
140 changed files with 372 additions and 297856 deletions
|
|
@ -13,6 +13,17 @@
|
|||
EndIf
|
||||
Machine WakeUp
|
||||
|
||||
;for 3 langs
|
||||
If show_eng = "true" Then
|
||||
If LanguageShow = "MYANMAR" Then
|
||||
SetLanguage "MYANMAR"
|
||||
Else
|
||||
SetLanguage "ENG"
|
||||
EndIf
|
||||
Else
|
||||
SetLanguage "THAI"
|
||||
EndIf
|
||||
|
||||
Var TextSelfTestCntColor = "0x746253"
|
||||
Var UserSeletedSugar = 0
|
||||
|
||||
|
|
@ -36,6 +47,7 @@
|
|||
DEBUGVAR Seeker
|
||||
|
||||
Var BGSugarNew = "Invisible"
|
||||
Var BGMilkNew = "Invisible"
|
||||
|
||||
DEBUGVAR video_menu_0
|
||||
|
||||
|
|
@ -246,6 +258,7 @@
|
|||
|
||||
|
||||
Var BugFlag = 0
|
||||
Var DirImageInter = "ROOT/taobin_project/image/topping_revamp_inter"
|
||||
|
||||
If show_eng = "true" Then
|
||||
|
||||
|
|
@ -1097,6 +1110,30 @@
|
|||
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
|
||||
Else
|
||||
Var LanguageButtonEnable = "Invisible"
|
||||
Var show_eng_button_stage = "Enable"
|
||||
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>
|
||||
|
|
@ -1399,6 +1436,7 @@
|
|||
DEBUGVAR TOPPING8
|
||||
DEBUGVAR TOPPING9
|
||||
DEBUGVAR TOPPING10
|
||||
DEBUGVAR TOPPING11
|
||||
|
||||
DEBUGVAR toppingID1index1
|
||||
DEBUGVAR toppingID1index2
|
||||
|
|
@ -1558,6 +1596,23 @@
|
|||
EndIf
|
||||
EndIf
|
||||
|
||||
If TOPPING11 = "milk-level" Then
|
||||
|
||||
;for some menu that not have sugar-level channel from json
|
||||
If TOPPING1 = "" Then
|
||||
Var BGMilkNew = "Enable"
|
||||
Var BGSugarNew = "Invisible"
|
||||
EndIf
|
||||
|
||||
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
|
||||
|
||||
If TOPPING6 = "all-volcano" Then
|
||||
|
||||
Var SelectToppingType = 0
|
||||
|
|
@ -2035,23 +2090,30 @@
|
|||
Var showYuzuEnable = "Disable"
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[0] = "Disable" Then
|
||||
Var CustomMilkState[0] = "Enable"
|
||||
EndIf
|
||||
If TOPPING11 = "milk-level" Then
|
||||
|
||||
If CustomMilkState[1] = "Disable" Then
|
||||
Var CustomMilkState[1] = "Enable"
|
||||
EndIf
|
||||
If CustomMilkState[2] = "Disable" Then
|
||||
Var CustomMilkState[2] = "Enable"
|
||||
EndIf
|
||||
If CustomMilkState[0] = "Disable" Then
|
||||
Var CustomMilkState[0] = "Enable"
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[0] = "Enable" Then
|
||||
If CustomMilkState[1] = "Enable" Then
|
||||
If CustomMilkState[2] = "Enable" Then
|
||||
Var CustomMilkState[1] = "PressForever" Then
|
||||
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
|
||||
|
||||
Var SelectToppingType = 1
|
||||
|
|
@ -2133,23 +2195,31 @@
|
|||
; first time.
|
||||
If blend_button_state = "PressForever" Then
|
||||
|
||||
If CustomMilkState[0] = "Disable" Then
|
||||
Var CustomMilkState[0] = "Enable"
|
||||
EndIf
|
||||
If TOPPING11 = "milk-level" Then
|
||||
|
||||
If CustomMilkState[1] = "Disable" Then
|
||||
Var CustomMilkState[1] = "Enable"
|
||||
EndIf
|
||||
If CustomMilkState[2] = "Disable" Then
|
||||
Var CustomMilkState[2] = "Enable"
|
||||
EndIf
|
||||
If CustomMilkState[0] = "Disable" Then
|
||||
Var CustomMilkState[0] = "Enable"
|
||||
EndIf
|
||||
|
||||
If CustomMilkState[0] = "Enable" Then
|
||||
If CustomMilkState[1] = "Enable" Then
|
||||
If CustomMilkState[2] = "Enable" Then
|
||||
Var CustomMilkState[1] = "PressForever" Then
|
||||
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
|
||||
|
||||
|
||||
|
|
@ -4709,7 +4779,7 @@
|
|||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<State> BGSugarHotHealthy </State>
|
||||
<Filename> Var( DirImage + "/topping_revamp/bg_custom_sweet_level.png" ) </Filename>
|
||||
<Filename> Var( DirImageInter + "/bg_custom_sweet_level_healthy.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
|
||||
|
|
@ -4734,8 +4804,6 @@
|
|||
Var CustomSweetState[1] = "Enable"
|
||||
Var CustomSweetState[2] = "Enable"
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "Enable"
|
||||
Var CustomSweetState[5] = "Enable"
|
||||
|
||||
Var topping1 = toppingID1index1
|
||||
EndIf
|
||||
|
|
@ -4746,6 +4814,20 @@
|
|||
|
||||
Refresh
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 002048 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 1 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 52 </Height>
|
||||
</Language>
|
||||
<Language>
|
||||
<ID> 002052 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 32 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 21 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
; sugar2
|
||||
|
|
@ -4774,8 +4856,7 @@
|
|||
Var CustomSweetState[1] = "PressForever"
|
||||
Var CustomSweetState[2] = "Enable"
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "Enable"
|
||||
Var CustomSweetState[5] = "Enable"
|
||||
|
||||
Var topping1 = toppingID1index2
|
||||
EndIf
|
||||
|
||||
|
|
@ -4787,6 +4868,20 @@
|
|||
|
||||
Refresh
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 002049 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 1 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 52 </Height>
|
||||
</Language>
|
||||
<Language>
|
||||
<ID> 002053 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 32 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 21 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
; sugar3
|
||||
|
|
@ -4812,8 +4907,6 @@
|
|||
Var CustomSweetState[1] = "Enable"
|
||||
Var CustomSweetState[2] = "PressForever"
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "Enable"
|
||||
Var CustomSweetState[5] = "Enable"
|
||||
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
|
|
@ -4823,11 +4916,25 @@
|
|||
|
||||
Refresh
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 002050 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 1 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 52 </Height>
|
||||
</Language>
|
||||
<Language>
|
||||
<ID> 002054 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 32 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 21 </Height>
|
||||
</Language>
|
||||
</Button>
|
||||
|
||||
; sugar4
|
||||
<Button>
|
||||
<X> 689 </X>
|
||||
<X> 930 </X>
|
||||
<Y> 10 </Y>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
||||
|
|
@ -4850,8 +4957,6 @@
|
|||
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
|
||||
|
|
@ -4859,208 +4964,21 @@
|
|||
Refresh
|
||||
|
||||
</EventClick>
|
||||
<Language>
|
||||
<ID> 002051 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 1 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 55 </Height>
|
||||
</Language>
|
||||
<Language>
|
||||
<ID> 002055 </ID>
|
||||
<X> 0 </X>
|
||||
<Y> 32 </Y>
|
||||
<Width> 198 </Width>
|
||||
<Height> 21 </Height>
|
||||
</Language>
|
||||
</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"
|
||||
Var topping1 = toppingID1index5
|
||||
EndIf
|
||||
|
||||
|
||||
Var UserSeletedSugar = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
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"
|
||||
Var topping1 = toppingID1index6
|
||||
EndI
|
||||
|
||||
Var UserSeletedSugar = 1
|
||||
EndIf
|
||||
Refresh
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetNotTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[0] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[0] </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetNotPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[0] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[0] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetLittleTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[1] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[1] </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetLittlePercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[1] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[1] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetLessTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[2] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[2] </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetLessPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[2] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[2] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetPerfectTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[3] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetPerfectPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[3] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetExtraTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[4] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[4] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetExtraPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[4] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[4] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetestTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[5] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[5] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetestPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[5] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[5] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</Row1>
|
||||
|
|
@ -5073,13 +4991,22 @@
|
|||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<State> BGSugarColdHealthy </State>
|
||||
<Filename> Var( DirImage + "/topping_revamp/bg_custom_sweet_level.png" ) </Filename>
|
||||
<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> 356 </X>
|
||||
<X> 400 </X>
|
||||
<Y> 10 </Y>
|
||||
<State> CustomSweetState[0] </State>
|
||||
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
||||
|
|
@ -5112,7 +5039,7 @@
|
|||
|
||||
; sugar2
|
||||
<Button>
|
||||
<X> 467 </X>
|
||||
<X> 550 </X>
|
||||
<Y> 10 </Y>
|
||||
<State> CustomSweetState[1] </State>
|
||||
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
||||
|
|
@ -5160,7 +5087,7 @@
|
|||
|
||||
; sugar3
|
||||
<Button>
|
||||
<X> 578 </X>
|
||||
<X> 700 </X>
|
||||
<Y> 10 </Y>
|
||||
<State> CustomSweetState[2] </State>
|
||||
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
||||
|
|
@ -5206,7 +5133,7 @@
|
|||
|
||||
; sugar4
|
||||
<Button>
|
||||
<X> 689 </X>
|
||||
<X> 850 </X>
|
||||
<Y> 10 </Y>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Filename> Var( DirImage + "/cb_uncheck_new.png" ) </Filename>
|
||||
|
|
@ -5257,240 +5184,91 @@
|
|||
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"
|
||||
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"
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "PressForever"
|
||||
Var CustomSweetState[5] = "Enable"
|
||||
Var topping1 = toppingID1index3
|
||||
EndIf
|
||||
|
||||
Var UserSeletedSugar = 1
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
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"
|
||||
Var topping1 = toppingID1index6
|
||||
EndIf
|
||||
|
||||
If ShiftSugarStep = 2 Then
|
||||
Var CustomSweetState[2] = "Enable"
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "Enable"
|
||||
Var CustomSweetState[5] = "PressForever"
|
||||
Var topping1 = toppingID1index5
|
||||
EndIf
|
||||
|
||||
If ShiftSugarStep = 3 Then
|
||||
Var CustomSweetState[3] = "Enable"
|
||||
Var CustomSweetState[4] = "Enable"
|
||||
Var CustomSweetState[5] = "PressForever"
|
||||
Var topping1 = toppingID1index4
|
||||
EndIf
|
||||
|
||||
Var UserSeletedSugar = 1
|
||||
EndIf
|
||||
Refresh
|
||||
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetNotTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[0] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[0] </Value>
|
||||
<X> 380 </X>
|
||||
<Y> 50 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<ID> 002048 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetNotPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[0] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[0] </Value>
|
||||
<X> 300 </X>
|
||||
<Y> 65 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<ID> 002052 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetLittleTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[1] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[1] </Value>
|
||||
<X> 530 </X>
|
||||
<Y> 50 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<ID> 002049 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetLittlePercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[1] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[1] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetLessTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[2] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[2] </Value>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> CustomSweetLessPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[2] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[2] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetPerfectTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[3] </Value>
|
||||
<X> 450 </X>
|
||||
<Y> 65 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<ID> 002053 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetPerfectPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[3] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[3] </Value>
|
||||
<X> 670 </X>
|
||||
<Y> 50 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<ID> 002050 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
<Text>
|
||||
<X> 600 </X>
|
||||
<Y> 65 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<ID> 002054 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetExtraTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[4] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[4] </Value>
|
||||
<X> 840 </X>
|
||||
<Y> 50 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<X> 0 </X>
|
||||
<Y> 0 </Y>
|
||||
<ID> 002051 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetExtraPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[4] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[4] </Value>
|
||||
<X> 770 </X>
|
||||
<Y> 65 </Y>
|
||||
<Width> 250 </Width>
|
||||
<Height> 20 </Height>
|
||||
<Language>
|
||||
<ID> 002055 </ID>
|
||||
</Language>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetestTextX </X>
|
||||
<Y> CustomSweetTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[5] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomSweetrText[5] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
<Text>
|
||||
<X> CustomSweetestPercentTextX </X>
|
||||
<Y> CustomSweetPercentTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomSweetState[5] </State>
|
||||
<Size> 14 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> CustomSweetrPercent[5] </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</Row1>
|
||||
|
||||
<Row1>
|
||||
|
|
@ -6107,6 +5885,136 @@
|
|||
|
||||
</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( DirImage + "/topping_revamp/bg_custom_milk.png" ) </Filename>
|
||||
</Image>
|
||||
|
||||
<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> 694 </X>
|
||||
<Y> CustomEspressoTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomMilkState[0] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomMilkText[0] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 804 </X>
|
||||
<Y> CustomEspressoTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomMilkState[1] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomMilkText[1] </Value>
|
||||
</Text>
|
||||
|
||||
<Text>
|
||||
<X> 893 </X>
|
||||
<Y> CustomEspressoTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomMilkState[2] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x513C2F </Color>
|
||||
<Value> CustomMilkText[2] </Value>
|
||||
</Text>
|
||||
|
||||
; Additional Price
|
||||
<Text>
|
||||
<X> 935 </X>
|
||||
<Y> CustomEspressoTextY </Y>
|
||||
<Font> KanitRegularTTF </Font>
|
||||
<State> CustomMilkState[2] </State>
|
||||
<Size> 16 </Size>
|
||||
<Color> 0x84776F </Color>
|
||||
<Value> MilkIncreasePriceText </Value>
|
||||
</Text>
|
||||
|
||||
|
||||
</Row1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue