Before pull
This commit is contained in:
parent
efacd73937
commit
7b92d69761
13 changed files with 1183 additions and 14 deletions
|
|
@ -7,6 +7,8 @@
|
|||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
|
||||
pd_code_available = '##-##-##-####'
|
||||
|
||||
count_test = 0
|
||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
for spl in menu_new_list:
|
||||
|
|
@ -27,7 +29,25 @@
|
|||
str_con += spl[6] + '.Button,'
|
||||
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
|
||||
|
||||
pd_code_1 = spl[4]
|
||||
pd_stage1 = '$' + spl[4] + '.Button'
|
||||
if spl[4] == "-" or len(spl[4]) == 0 :
|
||||
pd_code_1 = pd_code_available
|
||||
pd_stage1 = '"Disable2"'
|
||||
|
||||
pd_code_2 = spl[5]
|
||||
pd_stage2 = '$' + spl[5] + '.Button'
|
||||
if spl[5] == "-" or len(spl[5]) == 0:
|
||||
pd_code_2 = pd_code_available
|
||||
pd_stage2 = '"Disable2"'
|
||||
|
||||
pd_code_3 = spl[6]
|
||||
pd_stage3 = '$' + spl[6] + '.Button'
|
||||
if spl[6] == "-" or len(spl[6]) == 0:
|
||||
pd_code_3 = pd_code_available
|
||||
pd_stage3 = '"Disable2"'
|
||||
|
||||
out_xml( '\t<Button>\r\n')
|
||||
out_xml( '\t<State> Flag( '+ str_con + ') </State> \r\n')
|
||||
out_xml( '\t<Filename> "' + new_default_dir + '/'+ menu_img +'" </Filename>\r\n')
|
||||
|
|
@ -53,6 +73,20 @@
|
|||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE3 = "' + pd_code_3 + '"\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_STAGE_1 = ' + pd_stage1 + '\r\n')
|
||||
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\tIf PD_STAGE_2 = "Enable" Then\r\n')
|
||||
out_xml( '\t\t\tVar PD_STAGE_2 = "PressForever"\r\n')
|
||||
out_xml( '\t\tEndIf\r\n')
|
||||
|
||||
|
||||
|
||||
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue