fix bug topview2 and page_collect_point_3_28.xml

This commit is contained in:
wanlop run 2025-02-07 11:21:40 +07:00
parent 46cd6603d0
commit 0793aaeeb6
91 changed files with 10797 additions and 1764 deletions

View file

@ -40,7 +40,516 @@
Var block_index_move = 0
</Script>
;dummy_layout.inc
; menu_new_list 69
; menu_new_list 70
; ==================> Len = 15
; 12-01-01-0030 12-01-02-0030 12-01-03-0030
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-01-01-0030.Button,12-01-02-0030.Button,12-01-03-0030.Button,DateTimeStart="2025/02/17T00:00:00",Var=TaiwaneseDrinkMenu,$Sum120101003012010200301201030030) </State>
<Button>
<State> $Sum120101003012010200301201030030 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenameDisable>
<OverlayImage> xmlpro( 12-01-01-0030, "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 = "Taiwanese Tea Cafe Latte"
Var NameDrinkTH = "กาแฟชานมไต้หวัน"
Var DrinkDescriptionTH = "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล"
Var DrinkDescription = "Taiwanese Tea, Coffee, Milk And Sugar"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Iced_taiwanese_Tea_Cafe_Latte.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-01-01-0030.Price
Var PriceD2 = $12-01-02-0030.Price
Var PriceD3 = $12-01-03-0030.Price
Var PD_CODE1 = "12-01-01-0030"
Var PD_CODE2 = "12-01-02-0030"
Var PD_CODE3 = "12-01-03-0030"
Var PD_STAGE_1 = $12-01-01-0030.Button
Var PD_STAGE_2 = $12-01-02-0030.Button
Var PD_STAGE_3 = $12-01-03-0030.Button
Var OverlayMenuFilter !assigned xmlpro( 12-01-01-0030, "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" "12-01-02-0030"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-01-01-0030"
Else
Topping "Load" "12-01-03-0030"
EndIf
EndIf
Var menu_name_eng_hot = $12-01-01-0030.NameE
Var menu_desc_eng_hot = $12-01-01-0030.descriptionE
Var menu_name_thai_hot = $12-01-01-0030.Name
Var menu_desc_thai_hot = $12-01-01-0030.description
Var menu_name_eng_cold = $12-01-02-0030.NameE
Var menu_desc_eng_cold = $12-01-02-0030.descriptionE
Var menu_name_thai_cold = $12-01-02-0030.Name
Var menu_desc_thai_cold = $12-01-02-0030.description
Var menu_name_eng_blender = $12-01-03-0030.NameE
Var menu_desc_eng_blender = $12-01-03-0030.descriptionE
Var menu_name_thai_blender = $12-01-03-0030.Name
Var menu_desc_thai_blender = $12-01-03-0030.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> "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล" </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> "Taiwanese Tea Cafe Latte" </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> "Taiwanese Tea, Coffee, Milk
And Sugar" </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> $12-01-01-0030.Button </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> $12-01-01-0030.Button </State>
<Value> StringFmt( $12-01-01-0030.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> $12-01-02-0030.Button </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> $12-01-02-0030.Button </State>
<Value> StringFmt( $12-01-02-0030.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-01-03-0030.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-01-03-0030.Button </State>
<Value> StringFmt( $12-01-03-0030.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum120101003012010200301201030030 = "Disable" Then
Var ice_tab_process_show = "Disable"
Else
Var ice_tab_process_show = "Enable"
EndIf
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 $Sum120101003012010200301201030030 = "Disable" Then
STRCONTAIN "ERR" $12-01-01-0030.TAG tag1_is_disable
STRCONTAIN "ERR" $12-01-02-0030.TAG tag2_is_disable
STRCONTAIN "ERR" $12-01-03-0030.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> $Sum120101003012010200301201030030 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; 12-21-01-0030 12-21-02-0030 12-21-03-0030
<Block>
<MarginLeft> 33 </MarginLeft>
<MarginTop> 22 </MarginTop>
<Width> 225 </Width>
<Height> 296 </Height>
<State> Flag( 12-21-01-0030.Button,12-21-02-0030.Button,12-21-03-0030.Button,DateTimeStart="2025/02/17T00:00:00",Var=TaiwaneseDrinkMenu,$Sum122101003012210200301221030030) </State>
<Button>
<State> $Sum122101003012210200301221030030 </State>
<Filename> "ROOT/taobin_project/image/page_drink_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </Filename>
<FilenamePress> "ROOT/taobin_project/image/page_drink_press_n//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/image/page_drink_disable_n2//bn_Iced_taiwanese_Tea_Cafe_Latte.png" </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<OverlayImage> xmlpro( 12-21-01-0030, "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_posi1.png") </OverlayImage>
<EventOnClick>
Var NameDrink = "Taiwanese Tea Cafe Latte"
Var NameDrinkTH = "กาแฟชานมไต้หวัน"
Var DrinkDescriptionTH = "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล"
Var DrinkDescription = "Taiwanese Tea, Coffee, Milk And Sugar"
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_Iced_taiwanese_Tea_Cafe_Latte.png"
Var OpenFromXML = CurrentXMLFileName2
Var PriceD1 = $12-21-01-0030.Price
Var PriceD2 = $12-21-02-0030.Price
Var PriceD3 = $12-21-03-0030.Price
Var PD_CODE1 = "12-21-01-0030"
Var PD_CODE2 = "12-21-02-0030"
Var PD_CODE3 = "12-21-03-0030"
Var PD_STAGE_1 = $12-21-01-0030.Button
Var PD_STAGE_2 = $12-21-02-0030.Button
Var PD_STAGE_3 = $12-21-03-0030.Button
Var OverlayMenuFilter !assigned xmlpro( 12-21-01-0030, "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" "12-21-02-0030"
Else
If PD_STAGE_1 = "Enable" Then
Topping "Load" "12-21-01-0030"
Else
Topping "Load" "12-21-03-0030"
EndIf
EndIf
Var menu_name_eng_hot = $12-21-01-0030.NameE
Var menu_desc_eng_hot = $12-21-01-0030.descriptionE
Var menu_name_thai_hot = $12-21-01-0030.Name
Var menu_desc_thai_hot = $12-21-01-0030.description
Var menu_name_eng_cold = $12-21-02-0030.NameE
Var menu_desc_eng_cold = $12-21-02-0030.descriptionE
Var menu_name_thai_cold = $12-21-02-0030.Name
Var menu_desc_thai_cold = $12-21-02-0030.description
Var menu_name_eng_blender = $12-21-03-0030.NameE
Var menu_desc_eng_blender = $12-21-03-0030.descriptionE
Var menu_name_thai_blender = $12-21-03-0030.Name
Var menu_desc_thai_blender = $12-21-03-0030.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> "ชาไต้หวัน, กาแฟ, นม และ น้ำตาล" </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> "Taiwanese Tea Cafe Latte" </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> "Taiwanese Tea, Coffee, Milk
And Sugar" </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> $12-21-01-0030.Button </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> $12-21-01-0030.Button </State>
<Value> StringFmt( $12-21-01-0030.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> $12-21-02-0030.Button </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> $12-21-02-0030.Button </State>
<Value> StringFmt( $12-21-02-0030.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-21-03-0030.Button </State>
</Image>
<Text>
<X> 183 </X>
<Y> TextPriceMenuY </Y>
<Size> TextPriceMenuSize </Size>
<Width>220</Width>
<Font> KanitMediumTTF </Font>
<Color> 0x6F5F51 </Color>
<ColorDisable> 0xEAE6E1 </ColorDisable>
<State> $12-21-03-0030.Button </State>
<Value> StringFmt( $12-21-03-0030.Price , DisplayFormat, PreScaleConvertShow) </Value>; test
</Text>
<Image>
<X> 81 </X>
<Y> 264 </Y>
<State>
eval(
If ICE_PROCESS_STATUS = 2 Then
If $Sum122101003012210200301221030030 = "Disable" Then
Var ice_tab_process_show = "Disable"
Else
Var ice_tab_process_show = "Enable"
EndIf
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 $Sum122101003012210200301221030030 = "Disable" Then
STRCONTAIN "ERR" $12-21-01-0030.TAG tag1_is_disable
STRCONTAIN "ERR" $12-21-02-0030.TAG tag2_is_disable
STRCONTAIN "ERR" $12-21-03-0030.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> $Sum122101003012210200301221030030 </State>
<Value> text_unavailable </Value>
<Align> center-vertical-horizontal </Align>
</Text>
</Block>
; ==================> Len = 15
; 12-01-01-0074 12-01-02-0074 12-01-03-0074
<Block>