THAI & AUS: Super update promotion & image menus

This commit is contained in:
Kenta420 2024-12-06 15:08:20 +07:00
parent 2cb72fc7b1
commit bce3edf85e
197 changed files with 86174 additions and 29402 deletions

View file

@ -55,44 +55,9 @@
<Scroll> "Vertical" </Scroll>
<Column> 4 </Column>
<Script>
Var block_index_override = 4
Var block_index_move = 1
If Seeker = "curr" Then
Var TouchLessStg = "Enable"
Var TouchLessQrStg = "Enable"
Else
Var TouchLessStg = "Disable"
Var TouchLessQrStg = "Invisible"
EndIf
If WebAppShow = "Invisible" Then
Var TouchLessStg = "Disable"
Var TouchLessQrStg = "Invisible"
EndIf
Var block_index_override = 0
Var block_index_move = 0
</Script>
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> "Enable" </State>
<Image>
<X> 0 </X>
<Y> 0 </Y>
<State> TouchLessStg </State>
<Filename> Var( DirImage + "/touch_less_order.png" )</Filename>
<FilenameDisable> Var( DirImage + "/touch_less_order_db.png" )</FilenameDisable>
</Image>
<QRCode>
<X> 40 </X>
<Y> 153 </Y>
<Width> 150 </Width>
<Color> "0xeae6e1" </Color>
<QRColor> "0x513C2F" </Color>
<Height> 150 </Height>
<State> TouchLessQrStg </State>
<Service> testservice </Service>
</QRCode>
</Block>
;dummy_layout.inc
; menu_new_list 62
;TAGESP
@ -614,7 +579,7 @@
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-02-0081.Button,Disable=Invisible,$Sum1203020081) </State>
<State> Flag( 12-03-02-0081.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2024/12/31T23:59:59",Disable=Invisible,$Sum1203020081) </State>
<Button>
<State> $Sum1203020081 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_santa_ginger.png" </Filename>
@ -865,7 +830,7 @@
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0088.Button,Disable=Invisible,$Sum1203030088) </State>
<State> Flag( 12-03-03-0088.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2024/12/31T23:59:59",Disable=Invisible,$Sum1203030088) </State>
<Button>
<State> $Sum1203030088 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_choco_snow_flake_smoothie.png" </Filename>
@ -1118,7 +1083,7 @@ CARAMEL SYRUP , OREO AND ICE" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0089.Button,Disable=Invisible,$Sum1203030089) </State>
<State> Flag( 12-03-03-0089.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2024/12/31T23:59:59",Disable=Invisible,$Sum1203030089) </State>
<Button>
<State> $Sum1203030089 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_reindeer_peppermint_smoothie.png" </Filename>
@ -1372,7 +1337,7 @@ STRAWBERRY SYRUP AND ICE" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-01-02-0084.Button,Disable=Invisible,$Sum1201020084) </State>
<State> Flag( 12-01-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2024/12/31T23:59:59",Disable=Invisible,$Sum1201020084) </State>
<Button>
<State> $Sum1201020084 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_christmas_cafe_latte.png" </Filename>
@ -1625,7 +1590,7 @@ CARAMEL SYRUP AND WATER" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-21-02-0084.Button,Disable=Invisible,$Sum1221020084) </State>
<State> Flag( 12-21-02-0084.Button,DateTimeStart="2024/12/01T00:00:00",DateTimeEnd="2024/12/31T23:59:59",Disable=Invisible,$Sum1221020084) </State>
<Button>
<State> $Sum1221020084 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_iced_christmas_cafe_latte.png" </Filename>
@ -1879,7 +1844,7 @@ CARAMEL SYRUP AND WATER" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-02-01-0083.Button,12-02-02-0083.Button,12-02-03-0083.Button,Disable=Invisible,$Sum120201008312020200831202030083) </State>
<State> Flag( 12-02-01-0083.Button,12-02-02-0083.Button,12-02-03-0083.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,$Sum120201008312020200831202030083) </State>
<Button>
<State> $Sum120201008312020200831202030083 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_southern_fusion_tea.png" </Filename>
@ -2135,7 +2100,7 @@ TEA" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,Disable=Invisible,$Sum120201008412020200841202030084) </State>
<State> Flag( 12-02-01-0084.Button,12-02-02-0084.Button,12-02-03-0084.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,$Sum120201008412020200841202030084) </State>
<Button>
<State> $Sum120201008412020200841202030084 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_traditional_green_tea.png" </Filename>
@ -2390,7 +2355,7 @@ TEA" </Value>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-02-01-0085.Button,12-02-02-0085.Button,12-02-03-0085.Button,Disable=Invisible,$Sum120201008512020200851202030085) </State>
<State> Flag( 12-02-01-0085.Button,12-02-02-0085.Button,12-02-03-0085.Button,DateTimeStart="2024/12/01T00:00:00",Disable=Invisible,$Sum120201008512020200851202030085) </State>
<Button>
<State> $Sum120201008512020200851202030085 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_royal_milk_tea.png" </Filename>
@ -6679,261 +6644,6 @@ Sugar, Biscof" </Value>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 14
; - - 12-03-03-0061
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-03-03-0061.Button,Disable=Invisible,$Sum1203030061) </State>
<Button>
<State> $Sum1203030061 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_cocoa_MILK_BISCOFF.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_cocoa_MILK_BISCOFF.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_cocoa_MILK_BISCOFF.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-03-03-0061, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventOnClick>
Var NameDrink = "COCOA MILK BISCOFF VOLCANO"
Var NameDrinkTH = "โกโก้ บิสคอฟ"
Var DrinkDescriptionTH = "โกโก้ นม น้ำตาล บิสคอฟ"
Var DrinkDescription = "Cocoa, Milk, Sugar, Biscof"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_cocoa_MILK_BISCOFF.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $-.Price
Var PriceD2 = $-.Price
Var PriceD3 = $12-03-03-0061.Price
Var PD_CODE1 = "##-##-##-####"
Var PD_CODE2 = "##-##-##-####"
Var PD_CODE3 = "12-03-03-0061"
Var PD_STAGE_1 = "Disable2"
Var PD_STAGE_2 = "Disable2"
Var PD_STAGE_3 = $12-03-03-0061.Button
Var OverlayMenuFilter !assigned xmlpro( 12-03-03-0061, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_posi1.png")
DEBUGVAR OverlayMenuFilter
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-0061"
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-0061.NameE
Var menu_desc_eng_blender = $12-03-03-0061.descriptionE
Var menu_name_thai_blender = $12-03-03-0061.Name
Var menu_desc_thai_blender = $12-03-03-0061.description
DEBUGVAR PD_STAGE_1
DEBUGVAR PD_STAGE_2
DEBUGVAR PD_STAGE_3
Var SelectDrinkType = 0
Var OpenFromInstMenuTab = 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> "โกโก้ นม น้ำตาล
บิสคอฟ" </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> "COCOA MILK
BISCOFF 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> "Cocoa, Milk,
Sugar, Biscof" </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-0061.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-0061.Button </State>
<Value> StringFmt( $12-03-03-0061.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 $Sum1203030061 = "Disable" Then
STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
STRCONTAIN "ERR" $12-03-03-0061.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> $Sum1203030061 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; - - -
; ==================> Len = 14