Add file
This commit is contained in:
parent
840d993fe9
commit
f6c9fd63f6
39 changed files with 3106 additions and 456 deletions
|
|
@ -1,3 +1,15 @@
|
|||
if menu_count >= 16:
|
||||
scroll_height = 1725
|
||||
else:
|
||||
scroll_height = 1400
|
||||
|
||||
out_xml('<Frame> \r\n')
|
||||
out_xml('<X> 0 </X>\r\n')
|
||||
out_xml('<Y> 520 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<Height> 1400 </Height>\r\n')
|
||||
out_xml('<ScrollHeight> ' + str(scroll_height) + ' </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
i_str = str(i + 1)
|
||||
|
|
@ -13,11 +25,12 @@
|
|||
out_xml( '\t<FilenameDisable> "' + default_dir_disable + ''+ bt_pic[i].replace('#','n') +'" </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<EventClick> \r\n')
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
out_xml( '\t\tVar SelectDrink = "'+ product_code[i] +'"\r\n')
|
||||
out_xml( '\t\tVar NameDrink = $' + product_code[i] + '.Name2\r\n')
|
||||
out_xml( '\t\tVar NameDrinkTH = $' + product_code[i] + '.Name\r\n')
|
||||
out_xml( '\t\tVar DrinkDescription = $' + product_code[i] + '.description\r\n')
|
||||
out_xml( '\t\tVar PriceDrink = $' + product_code[i] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PictureDrink = "' + default_dir2 + '/' + bt_pic[i].replace('#','n') + '"\r\n')
|
||||
out_xml( '\t\tTopping "Load" SelectDrink\r\n')
|
||||
|
|
@ -26,7 +39,7 @@
|
|||
out_xml( '\t\tVar PriceShowValue = "Free"r\n')
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/menu_topping_alter.xml"\r\n')
|
||||
|
||||
out_xml( '\t</EventClick>\r\n')
|
||||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
for i in range( menu_count):
|
||||
|
|
@ -65,10 +78,22 @@
|
|||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 214) + ' </Y>\r\n')
|
||||
out_xml( '\t<Align> "Hurr" </Align>\r\n')
|
||||
out_xml( '\t<Size> 24 </Size>\r\n')
|
||||
out_xml( '\t<Width>1080</Width>\r\n')
|
||||
out_xml( '\t<Font> RobotoBlack </Font>\r\n')
|
||||
out_xml( '\t<Size> 26 </Size>\r\n')
|
||||
out_xml( '\t<Width>220</Width>\r\n')
|
||||
out_xml( '\t<Mode> "bound" </Mode>\r\n')
|
||||
out_xml( '\t<Font> KanitMediumTTF </Font>\r\n')
|
||||
out_xml( '\t<Color> 0x322B26 </Color>\r\n')
|
||||
out_xml( '\t<Value> $' + product_code[i] + '.Name2 </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
out_xml( '\t<X> ' + str(x_button[i] + 16) + ' </X>\r\n')
|
||||
out_xml( '\t<Y> ' + str(y_button[i] + 246) + ' </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<Value> $' + product_code[i] + '.description </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml('</Frame>\r\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue