This commit is contained in:
kong 2022-10-28 17:34:57 +07:00
parent 21340bc242
commit 6c8e8a103e
18 changed files with 6597 additions and 2699 deletions

View file

@ -226,7 +226,10 @@
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
if "inter" in param:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.xml"\r\n')
else:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
out_xml( '\t\t\r\n')
@ -306,13 +309,21 @@
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')
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')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 50 </X>\r\n')
out_xml( '\t<Y> 266 </Y>\r\n')
out_xml( '\t<Size> 12 </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> 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')
@ -320,7 +331,7 @@
#out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
if "inter" in param:
out_xml( '\t<Value> IntFormat( $' + spl[4] + '.Price ,$%.2f, /100) </Value>; test\r\n')
out_xml( '\t<Value> IntFormat( $' + spl[4] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -343,18 +354,26 @@
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> 266 </Y>\r\n')
out_xml( '\t<Size> 12 </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<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:
out_xml( '\t<Value> IntFormat( $' + spl[5] + '.Price ,$%.2f, /100) </Value>; test\r\n')
out_xml( '\t<Value> IntFormat( $' + spl[5] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -398,7 +417,7 @@
out_xml( '\t<ColorDisable> 0xEAE6E1 </ColorDisable>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
if "inter" in param:
out_xml( '\t<Value> IntFormat( $' + spl[6] + '.Price ,$%.2f, /100) </Value>; test\r\n')
out_xml( '\t<Value> IntFormat( $' + spl[6] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -650,7 +669,10 @@
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
if "inter" in param:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select6.xml"\r\n')
else:
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
out_xml( '\t\t\r\n')
@ -730,18 +752,31 @@
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> 266 </Y>\r\n')
out_xml( '\t<Size> 12 </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> 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<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[8] + '.Price ) </Value>\r\n')
if "inter" in param:
out_xml( '\t<Value> IntFormat( $' + spl[8] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_ice_show = True
@ -763,16 +798,29 @@
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
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')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 115 </X>\r\n')
out_xml( '\t<Y> 266 </Y>\r\n')
out_xml( '\t<Size> 12 </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')
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price ) </Value>\r\n')
if "inter" in param:
out_xml( '\t<Value> IntFormat( $' + spl[9] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
ice_tab_blend_show = True
@ -794,16 +842,28 @@
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 183 </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')
if "inter" in param:
out_xml( '\t<Text>\r\n')
out_xml( '\t<X> 183 </X>\r\n')
out_xml( '\t<Y> 266 </Y>\r\n')
out_xml( '\t<Size> 12 </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> 183 </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[10] + '.Price ) </Value>\r\n')
if "inter" in param:
out_xml( '\t<Value> IntFormat( $' + spl[10] + '.Price , DisplayFormat, /100) </Value>; test\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
out_xml( '\t<Image>\r\n')