This commit is contained in:
kong 2022-03-21 16:36:20 +07:00
parent b4afe67cee
commit 5f14aa3902
376 changed files with 15274 additions and 2358 deletions

View file

@ -18,13 +18,21 @@
out_xml('\t<MarginTop> 22 </MarginTop>\r\n')
out_xml('\t<Width> 225 </Width>\r\n')
out_xml('\t<Height> 296 </Height>\r\n')
out_xml( '\t<State> Flag( \" ' + spl[4] + '.Button,' + spl[5] + '.Button,' + spl[6] + '.Button\") </State> \r\n')
str_con = ""
if spl[4] != '-':
str_con += spl[4] + '.Button,'
if spl[5] != '-':
str_con += spl[5] + '.Button,'
if spl[6] != '-':
str_con += spl[6] + '.Button,'
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
out_xml( '\t<Button>\r\n')
out_xml( '\t<State> "Enable" </State> \r\n')
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
out_xml( '\t<FilenamePress> "' + new_default_dir_press + '/'+ menu_img +'" </FilenamePress>\r\n')
out_xml( '\t<FilenameDisable> "' + new_default_dir + '/'+ menu_img +'" </FilenameDisable>\r\n')
out_xml( '\t<FilenameDisable> "' + new_default_dir_disable + '/'+ menu_img +'" </FilenameDisable>\r\n')
out_xml( '\t<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>\r\n')
out_xml( '\t<Volume> SoundVolume </Volume>\r\n')
out_xml( '\t<EventOnClick> \r\n')
@ -89,14 +97,17 @@
out_xml( '\t<Filename> Var( DirImage2 + "option_deactive.png" ) </Filename>\r\n')
out_xml( '\t</Image>\r\n')
shw = "Enable"
shw = "$" + spl[4] + ".Button"
if spl[4] == "-" :
shw = "Invisible"
shw = '"Invisible"'
if len(spl[4]) == 0 :
shw = '"Invisible"'
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<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Filename> Var( DirImage2 + "hot.png" ) </Filename>\r\n')
out_xml( '\t</Image>\r\n')
@ -107,20 +118,23 @@
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> "' + shw + '" </State>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
shw = "Enable"
shw = "$" + spl[5] + ".Button"
if spl[5] == "-" :
shw = "Invisible"
shw = '"Invisible"'
if len(spl[5]) == 0 :
shw = '"Invisible"'
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<State> "' + shw + '" </State>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
@ -130,19 +144,22 @@
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> "' + shw + '" </State>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
shw = "Enable"
shw = "$" + spl[6] + ".Button"
if spl[6] == "-" :
shw = "Invisible"
shw = '"Invisible"'
if len(spl[6]) == 0 :
shw = '"Invisible"'
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<State> "' + shw + '" </State>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t</Image>\r\n')
out_xml( '\t<Text>\r\n')
@ -152,7 +169,7 @@
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> "' + shw + '" </State>\r\n')
out_xml( '\t<State> ' + shw + ' </State>\r\n')
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')