add mystery cup

This commit is contained in:
kong 2023-06-23 11:16:21 +07:00
parent 454d4ab292
commit 287e0b5325
17 changed files with 4966 additions and 10 deletions

View file

@ -8935,6 +8935,8 @@ LIMENADE SODA" </Value>
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then

View file

@ -8935,6 +8935,7 @@ LIMENADE SODA" </Value>
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then

View file

@ -2,6 +2,8 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then

View file

@ -2,6 +2,7 @@
<Button>
<X> 42 </X>
<Y> 520 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then

View file

@ -144,7 +144,7 @@
pd_code_3 = pd_code_available
pd_stage3 = '"Disable2"'
out_xml( '\t<Button>\r\n')

View file

@ -534,7 +534,7 @@
Var block_index_override = 0
Var block_index_move = 0
</Script>
; menu_new_list 9
; menu_new_list 10
; ==================> Len = 16
; - - 12-03-03-0009
<Block>
@ -1806,7 +1806,7 @@ Sugar, Oreo" </Value>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "12-01-01-0043"
Var NameDrink = "CARAMEL MILK OREO VOLCANO"
Var NameDrinkTH = "นมคาราเมลปั่น โอริโอ้ภูเขาไฟ"
Var DrinkDescriptionTH = "น้ำเชื่อมคาราเมล นม น้ำตาล Oreo"
Var DrinkDescription = "Caramel Syrup, Milk, Sugar, Oreo"
@ -1901,7 +1901,8 @@ Sugar, Oreo" </Value>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "12-01-01-0043" </Value>
<Value> "CARAMEL MILK
OREO VOLCANO" </Value>
</Text>
<Text>
<X> 16 </X>
@ -2792,6 +2793,258 @@ Sugar, Oreo" </Value>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 16
; - - 12-03-03-0026
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0026.Button,$Sum1203030026) </State>
<Button>
<State> $Sum1203030026 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_PinkOreo_smoothie.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_PinkOreo_smoothie.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_PinkOreo_smoothie.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "PINK MILK OREO VOLCANO"
Var NameDrinkTH = "นมชมพูปั่น โอริโอ้ภูเขาไฟ"
Var DrinkDescriptionTH = "น้ำแดงกลิ่นสละ นม น้ำตาล Oreo"
Var DrinkDescription = "Salak Syrup, Milk, Sugar Oreo"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_PinkOreo_smoothie.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0026.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0026"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0026.Button
Var SelectCountDrinkType = 0
Var DefaultDrinkType = 0
If PD_STAGE_1 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 1
EndIf
If PD_STAGE_2 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 2
EndIf
If PD_STAGE_3 = "Enable" Then
Var SelectCountDrinkType = SelectCountDrinkType + 1
Var DefaultDrinkType = 3
EndIf
If PD_STAGE_2 = "Enable" Then
Topping "Load" "-"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "-"
Else
Topping "Load" "12-03-03-0026"
EndIf
EndIf
Var menu_name_eng_hot = $##-##-##-####.NameE
Var menu_desc_eng_hot = $##-##-##-####.descriptionE
Var menu_name_thai_hot = $##-##-##-####.Name
Var menu_desc_thai_hot = $##-##-##-####.description
Var menu_name_eng_cold = $##-##-##-####.NameE
Var menu_desc_eng_cold = $##-##-##-####.descriptionE
Var menu_name_thai_cold = $##-##-##-####.Name
Var menu_desc_thai_cold = $##-##-##-####.description
Var menu_name_eng_blender = $12-03-03-0026.NameE
Var menu_desc_eng_blender = $12-03-03-0026.descriptionE
Var menu_name_thai_blender = $12-03-03-0026.Name
Var menu_desc_thai_blender = $12-03-03-0026.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Open "ROOT/taobin_project/xml/page_topping_select5.xml"
</EventOnClick>
</Button>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 24 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showthaiText </State>
<Value> "นมชมพูปั่น
โอริโอ้ภูเขาไฟ" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showthaiText </State>
<Value> "น้ำแดงกลิ่นสละ นม น้ำตาล
Oreo" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 164 </Y>
<Size> 22 </Size>
<Width>220</Width>
<Mode> "multi2" </Mode>
<Font> KanitMediumTTF </Font>
<Color> 0x322B26 </Color>
<State> showengText </State>
<Value> "PINK MILK
OREO VOLCANO" </Value>
</Text>
<Text>
<X> 16 </X>
<Y> 220 </Y>
<Size> 14 </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<State> showengText </State>
<Value> "Salak Syrup, Milk,
Sugar Oreo" </Value>
</Text>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>
</Image>
<Image>
<X> 16 </X>
<Y> 264 </Y>
<State> "Invisible" </State>
<Filename> Var( DirImage2 + "hot.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>
</Image>
<Text>
<X> 50 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "cold.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>
<State> "Invisible" </State>
</Image>
<Text>
<X> 115 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> "Invisible" </State>
<Value> StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 146 </X>
<Y> 264 </Y>
<Filename> Var( DirImage2 + "blend.png" ) </Filename>
<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>
<State> $12-03-03-0026.Button </State>
</Image>
<Text>
<X> 180 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitRegularTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-03-03-0026.Button </State>
<Value> StringFmt( $12-03-03-0026.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
Var ice_tab_process_show = "Invisible"
Else
Var ice_tab_process_show = "Invisible"
EndIf
Var return = ice_tab_process_show
)
</State>
<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>
<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>
</Image>
<Image>
<X> 49 </X>
<Y> 117 </Y>
<State>
eval(
If $Sum1203030026 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0026.TAG tag3_is_disable
Var return = "Invisible"
If tag1_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag2_is_disable = "true" Then
Var return = "Enable"
EndIf
If tag3_is_disable = "true" Then
Var return = "Enable"
EndIf
Else
Var return = "Invisible"
EndIf
)
</State>
<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>
</Image>
<Text>
<X> 84 </X>
<Y> 266 </Y>
<Size> 10 </Size>
<Font> OpunMediumTTF </Font>
<Color> 0xDE794E </Color>
<State> ice_tab_process_show </State>
<Value> ice_show_open </Value>
</Text>
<Text>
<X> 48 </X>
<Y> 116 </Y>
<Size> 32 </Size>
<Width>128</Width>
<Height>64</Height>
<Font> MITRegularTTF </Font>
<Color> 0x5A5A5A </Color>
<Mode> "disable-show" </Mode>
<State> $Sum1203030026 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
</FrameScroll>

View file

@ -299,6 +299,8 @@
Var img_smth_dis2 = "/bt_smoothie_disable2_no.png"
Var CerealMilkEnable = "Enable"
Var topping_price_refresh = 1
Var StrawState = "Enable"
@ -344,12 +346,18 @@
EndIf
EndIf
If show_eng = "true" Then
Var CerealMilkX = 400
Else
Var CerealMilkX = 270
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
DEBUGVAR Timeout
Var Timeout = Timeout + 1
If Timeout > 40 Then
@ -528,6 +536,12 @@
EndIf
EndIf
If show_eng = "true" Then
Var CerealMilkX = 400
Else
Var CerealMilkX = 270
EndIf
Function 2
@ -1266,7 +1280,7 @@
DEBUGVAR TOPPING2
Refresh
EndIf
If TOPPING2 = "shot coffee 1007" Then
If TOPPING2 = "shot coffee 1007" Then
Var ShotCoffeePremium = "Enable"
Var showShotEnable = "Invisible"
@ -1382,7 +1396,7 @@
EndIf
;-END
;-END
If TOPPING3 = "Collagen" Then
Var CollagenState = "Enable"
Else
@ -1395,6 +1409,9 @@
If MenuCodeName1 = "Cereal-Milk" Then
Var CerealMilkToppingEnable = "Enable"
Var CerealMilkPrice = SubMenuPrice1
Var ExtraTopping = "Enable"
EndIf
@ -2938,19 +2955,38 @@
</Button>
<Text>
<X> topping_shot_price_x </X>
<X> CerealMilkX </X>
<Y> 2 </Y>
<Font> KanitRegularTTF </Font>
<State> "ShotCoffeePremium"</State>
<State> CerealMilkEnable</State>
<Size> 36 </Size>
<Color> 0x84776F </Color>
<Value> text_price_topping </Value>
<Value> CerealMilkPrice </Value>
</Text>
</Row1>
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
<Row1>
<Width> 986 </Width>
<Height> "auto" </Height>
@ -4029,7 +4065,20 @@
Machine PreparCup
EndIf
Var CerealMilkAddAmount = SubMenuPrice1 - PriceDrinkNoTop
If CerealMilkAddAmount = 0 Then
Var CerealMilkPrice = "(+฿10)"
Else
Var CerealMilkPrice = "(+฿" + CerealMilkAddAmount
Var CerealMilkPrice = CerealMilkPrice + ")"
EndIf
DEBUGVAR CerealMilkAddAmount
DEBUGVAR PriceDrinkNoTop
DEBUGVAR PriceDiff
DEBUGVAR showShotEnable
@ -4108,6 +4157,13 @@
Var DisableUsingCode = "false"
EndIf
If CerealMilkEnable = "Press" Then
Var TOPPING_PRICE = TOPPING_PRICE + CerealMilkAddAmount
Var DisableUsingCode = "true"
Else
EndIf
DEBUGVAR SelectDrinkType

File diff suppressed because it is too large Load diff