Do Overlay and profile
This commit is contained in:
parent
862d18861e
commit
b65f68b788
27 changed files with 78795 additions and 333 deletions
|
|
@ -162,6 +162,18 @@
|
|||
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_disable + '/'+ menu_img +'" </FilenameDisable>\r\n')
|
||||
|
||||
if len( spl) > 11:
|
||||
if spl[4] != '-':
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[4]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[4]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
elif spl[6] != '-':
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[6]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[6]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
else:
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[5]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[5]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
|
||||
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')
|
||||
|
|
@ -193,6 +205,13 @@
|
|||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
|
||||
|
||||
|
||||
out_xml( '\t\tVar OverlayMenuFilter !assigned ' + menu_xml_var + '\r\n')
|
||||
|
||||
out_xml( '\t\tDEBUGVAR OverlayMenuFilter\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
|
||||
|
||||
|
|
@ -269,13 +288,9 @@
|
|||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
print("len= " + str(len( spl) ) )
|
||||
|
||||
if len( spl) > 10:
|
||||
out_xml( '\t<Image>\r\n')
|
||||
print("spl[11]=" + spl[11])
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/menu_overlay_set/button_overlay_18year_'+ spl[11] +'.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
menu_color_font = None
|
||||
|
|
@ -661,6 +676,17 @@
|
|||
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')
|
||||
if len( spl) > 11:
|
||||
if spl[8] != '-':
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[8]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[8]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
elif spl[10] != '-':
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[10]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[10]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
else:
|
||||
out_xml( '\t<OverlayImage> xmlpro( '+spl[9]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_%s_'+ spl[11] +'.png") </OverlayImage>\r\n')
|
||||
menu_xml_var = 'xmlpro( '+spl[9]+', "ROOT/taobin_project/image/menu_overlay_set/button_overlay_pic_%s_'+ spl[11] +'.png")'
|
||||
|
||||
out_xml( '\t<EventOnClick> \r\n')
|
||||
|
||||
# Default
|
||||
|
|
@ -685,6 +711,13 @@
|
|||
out_xml( '\t\tVar PD_STAGE_2 = ' + pd_stage2 + '\r\n')
|
||||
out_xml( '\t\tVar PD_STAGE_3 = ' + pd_stage3 + '\r\n')
|
||||
|
||||
out_xml( '\t\tVar OverlayMenuFilter !assigned ' + menu_xml_var + '\r\n')
|
||||
|
||||
out_xml( '\t\tDEBUGVAR OverlayMenuFilter\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tVar SelectCountDrinkType = 0\r\n')
|
||||
out_xml( '\t\tVar DefaultDrinkType = 0\r\n')
|
||||
|
|
@ -758,13 +791,7 @@
|
|||
out_xml( '\t</EventOnClick>\r\n')
|
||||
out_xml( '\t</Button>\r\n')
|
||||
|
||||
if len( spl) > 10:
|
||||
out_xml( '\t<Image>\r\n')
|
||||
print("spl[11]=" + spl[11])
|
||||
out_xml( '\t<Filename> "ROOT/taobin_project/image/menu_overlay_set/button_overlay_18year_'+ spl[11] +'.png" </Filename>\r\n')
|
||||
out_xml( '\t</Image>\r\n')
|
||||
|
||||
|
||||
|
||||
|
||||
out_xml( '\t<Text>\r\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue