DO menu and brewing3.xml

This commit is contained in:
kong 2023-09-05 14:22:43 +07:00
parent 592dcf6502
commit 3e12cbfb27
12 changed files with 395 additions and 282 deletions

View file

@ -161,6 +161,7 @@
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
out_xml( '\t<EventOnClick> \r\n')
# Default
out_xml( '\t\tVar NameDrink = "' + spl[1].replace("\\n", " ") + '"\r\n')
out_xml( '\t\tVar NameDrinkTH = "' + spl[0].replace("\\n", " ") + '"\r\n')
@ -251,7 +252,8 @@
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
if spl[1] != "None":
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
out_xml( '\t\t\r\n')
@ -259,276 +261,276 @@
out_xml( '\t</EventOnClick>\r\n')
out_xml( '\t</Button>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 164 </Y>\r\n')
out_xml( '\t<Size> 24 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> "' + spl[0].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
if spl[1] != "None":
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 164 </Y>\r\n')
out_xml( '\t<Size> 24 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> "' + spl[0].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 220 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> "' + spl[2].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 220 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showthaiText </State>\r\n')
out_xml( '\t<Value> "' + spl[2].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 164 </Y>\r\n')
out_xml( '\t<Size> 22 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> "' + spl[1].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 220 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> "' + spl[3].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
out_xml( '\t</Image>\r\n')
ice_tab_hot_show = True
shw = "$" + spl[4] + ".Button"
if spl[4] == "-" :
shw = '"Invisible"'
ice_tab_hot_show = False
if len(spl[4]) == 0 :
shw = '"Invisible"'
ice_tab_hot_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t</Image>\r\n')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 50 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 164 </Y>\r\n')
out_xml( '\t<Size> 22 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Mode> "multi2" </Mode>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
else:
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> "' + spl[1].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 50 </X>\r\n')
out_xml( '\t<Y> 265 </Y>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 220 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_ice_show = True
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<State> showengText </State>\r\n')
out_xml( '\t<Value> "' + spl[3].replace("\\n", "\n") + '" </Value>\r\n')
out_xml( '\t</Text>\r\n')
shw = "$" + spl[5] + ".Button"
if spl[5] == "-" :
shw = '"Invisible"'
ice_tab_ice_show = False
if len(spl[5]) == 0 :
shw = '"Invisible"'
ice_tab_ice_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 81 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 115 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
else:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 115 </X>\r\n')
out_xml( '\t<Y> 265 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_blend_show = True
shw = "$" + spl[6] + ".Button"
if spl[6] == "-" :
shw = '"Invisible"'
ice_tab_blend_show = False
if len(spl[6]) == 0 :
shw = '"Invisible"'
ice_tab_blend_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 146 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
if "inter" in param:
out_xml( '\t<X> 180 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
#out_xml( '\t<Align> end </Align>\r\n')
else:
out_xml( '\t<X> 183 </X>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
out_xml( '\t</Image>\r\n')
ice_tab_hot_show = True
shw = "$" + spl[4] + ".Button"
if spl[4] == "-" :
shw = '"Invisible"'
ice_tab_hot_show = False
if len(spl[4]) == 0 :
shw = '"Invisible"'
ice_tab_hot_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 16 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "hot_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t</Image>\r\n')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 50 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 81 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<State> \r\n')
out_xml( '\t\teval( \r\n')
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
out_xml( '\t\t\r\n')
if ice_tab_hot_show == True:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 50 </X>\r\n')
out_xml( '\t<Y> 265 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_ice_show = True
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
out_xml( '\t\t\tElse\r\n')
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
out_xml( '\t\t\tEndIf\r\n')
else:
shw = "$" + spl[5] + ".Button"
if spl[5] == "-" :
shw = '"Invisible"'
ice_tab_ice_show = False
if len(spl[5]) == 0 :
shw = '"Invisible"'
ice_tab_ice_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 81 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "cold.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "cold_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 115 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
else:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 115 </X>\r\n')
out_xml( '\t<Y> 265 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_blend_show = True
shw = "$" + spl[6] + ".Button"
if spl[6] == "-" :
shw = '"Invisible"'
ice_tab_blend_show = False
if len(spl[6]) == 0 :
shw = '"Invisible"'
ice_tab_blend_show = False
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 146 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "blend.png" ) </Filename>\r\n')
out_xml( '\t<FilenameDisable> Var( DirImage2 + "blend_db.png" ) </FilenameDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
if "inter" in param:
out_xml( '\t<X> 180 </X>\r\n')
out_xml( '\t<Y> TextPriceMenuY </Y>\r\n')
out_xml( '\t<Size> TextPriceMenuSize </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitRegularTTF </Font>\r\n')
#out_xml( '\t<Align> end </Align>\r\n')
else:
out_xml( '\t<X> 183 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<Size> 14 </Size>\r\n')
out_xml( '\t<Width>220</Width>\r\n')
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0x6F5F51 </Color>\r\n')
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
if "inter" in param:
if "free" in param:
out_xml( '\t<Value> "Free" </Value>\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 81 </X>\r\n')
out_xml( '\t<Y> 264 </Y>\r\n')
out_xml( '\t<State> \r\n')
out_xml( '\t\teval( \r\n')
out_xml( '\t\tIf ICE_PROCESS_STATUS = 2 Then\r\n')
out_xml( '\t\t\r\n')
if ice_tab_hot_show == True:
#out_xml( '\t\t\tDEBUGVAR $Sum' + str_con_var +'\r\n')
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
out_xml( '\t\t\t\tVar ice_tab_process_show = "Disable"\r\n')
out_xml( '\t\t\tElse\r\n')
out_xml( '\t\t\t\tVar ice_tab_process_show = "Enable"\r\n')
out_xml( '\t\t\tEndIf\r\n')
else:
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tVar ice_tab_process_show = "Invisible"\r\n')
out_xml( '\t\tEndIf\r\n')
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
out_xml( '\t\t)\r\n')
out_xml( '\t</State>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 49 </X>\r\n')
out_xml( '\t<Y> 117 </Y>\r\n')
out_xml( '\t<State> \r\n')
out_xml( '\t\teval( \r\n')
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\tElse\r\n')
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
out_xml( '\t\t\tEndIf\r\n')
out_xml( '\t\t)\r\n')
if param == "old":
out_xml( '\t\tEndIf\r\n')
out_xml( '\t\tVar return = ice_tab_process_show\r\n')
out_xml( '\t\t)\r\n')
out_xml( '\t</State>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err.png" </Filename>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png" </Filename>\r\n')
out_xml( '\t<FilenameDisable> "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png" </FilenameDisable>\r\n')
out_xml( '\t</Image>\r\n')
else:
out_xml( '\t</State>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 84 </X>\r\n')
out_xml( '\t<Y> 266 </Y>\r\n')
out_xml( '\t<Size> 10 </Size>\r\n')
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
out_xml( '\t<Value> ice_show_open </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Image>\r\n')
out_xml( '\t<X> 49 </X>\r\n')
out_xml( '\t<Y> 117 </Y>\r\n')
out_xml( '\t<State> \r\n')
out_xml( '\t\teval( \r\n')
out_xml( '\t\t\tIf $Sum' + str_con_var +' = "Disable" Then\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_1 + '.TAG tag1_is_disable\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_2 + '.TAG tag2_is_disable\r\n')
out_xml( '\t\t\t\tSTRCONTAIN "ERR" $' + pd_code_3 + '.TAG tag3_is_disable\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_1 + '.TAG\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_2 + '.TAG\r\n')
#out_xml( '\t\t\t\tDEBUGVAR $' + pd_code_3 + '.TAG\r\n')
out_xml( '\t\t\t\tVar return = "Invisible"\r\n')
out_xml( '\t\t\t\tIf tag1_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\t\tIf tag2_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\t\tIf tag3_is_disable = "true" Then\r\n')
out_xml( '\t\t\t\t\tVar return = "Enable"\r\n')
out_xml( '\t\t\t\tEndIf\r\n')
out_xml( '\t\t\tElse\r\n')
out_xml( '\t\t\t\t\tVar return = "Invisible"\r\n')
out_xml( '\t\t\tEndIf\r\n')
out_xml( '\t\t)\r\n')
if param == "old":
out_xml( '\t</State>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err.png" </Filename>\r\n')
out_xml( '\t</Image>\r\n')
else:
out_xml( '\t</State>\r\n')
out_xml( '\t<Filename> "ROOT/taobin_project/image//img_menu_err2.png" </Filename>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 84 </X>\r\n')
out_xml( '\t<Y> 266 </Y>\r\n')
out_xml( '\t<Size> 10 </Size>\r\n')
out_xml( '\t<Font> OpunMediumTTF </Font>\r\n')
out_xml( '\t<Color> 0xDE794E </Color>\r\n')
out_xml( '\t<State> ice_tab_process_show </State>\r\n')
out_xml( '\t<Value> ice_show_open </Value>\r\n')
out_xml( '\t</Text>\r\n')
if param == "old":