MYS: prep pro Yuzu template WIP
This commit is contained in:
parent
985cfb267f
commit
1d3c15fa5b
27 changed files with 62721 additions and 1541 deletions
|
|
@ -6,23 +6,35 @@
|
|||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_recommend_multi_pro.skt":
|
||||
multi_pro_gen = True
|
||||
else:
|
||||
multi_pro_gen = False
|
||||
|
||||
print("Found multi pro skt: ", multi_pro_gen )
|
||||
|
||||
print ("######################################################################################################")
|
||||
idx_of_eng = 2
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
if touch_less_gen == True:
|
||||
out_xml('<Max> 16 </Max>\r\n')
|
||||
elif multi_pro_gen:
|
||||
out_xml('<Max> 4 </Max>\r\n')
|
||||
out_xml('<X> 10 </X>\r\n')
|
||||
out_xml('<Y> 497 </Y>\r\n')
|
||||
out_xml('<Width> 1080 </Width>\r\n')
|
||||
out_xml('<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
if multi_pro_gen:
|
||||
out_xml('<Column> 2 </Column>\r\n')
|
||||
else:
|
||||
out_xml('<Column> 4 </Column>\r\n')
|
||||
out_xml('<Script>\r\n')
|
||||
|
||||
print("current_file_name " + current_file_name)
|
||||
|
||||
|
||||
if touch_less_gen == False:
|
||||
if touch_less_gen == False or multi_pro_gen:
|
||||
|
||||
out_xml('\t Var block_index_override = 0\r\n')
|
||||
out_xml('\t Var block_index_move = 0\r\n')
|
||||
|
|
@ -86,6 +98,9 @@
|
|||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
for spl in menu_new_list:
|
||||
#product_code = s
|
||||
print("> ",spl, len(spl))
|
||||
# spl = spl[0]
|
||||
|
||||
if spl[0] == "IGNORE":
|
||||
continue
|
||||
|
||||
|
|
@ -1011,7 +1026,35 @@
|
|||
#if count_test > 8 :
|
||||
# break
|
||||
|
||||
|
||||
if multi_pro_gen:
|
||||
for i in range(1, 5):
|
||||
out_xml(';block'+str(i)+'\r\n')
|
||||
out_xml('\t<Block>\r\n')
|
||||
out_xml('\t\t<State> \"Enable\" </State> \r\n')
|
||||
# out_xml('\t\t<MarginTop> 22 </MarginTop>\r\n')
|
||||
# out_xml('\t\t<MarginLeft> 33 </MarginLeft>\r\n')
|
||||
out_xml('\t\t<Width> 516 </Width>\r\n')
|
||||
out_xml('\t\t<Height> 636 </Height>\r\n')
|
||||
out_xml('\t\t<FrameScroll>\r\n')
|
||||
out_xml('\t\t\t<Max> 4 </Max>\r\n')
|
||||
out_xml('\t\t\t<X> 0 </X>\r\n')
|
||||
out_xml('\t\t\t<Y> 0 </Y>\r\n')
|
||||
out_xml('\t\t\t<Width> 516 </Width>\r\n')
|
||||
out_xml('\t\t\t<Height> 636 </Height>\r\n')
|
||||
out_xml('\t\t\t<ScrollHeight> "auto" </ScrollHeight>\r\n')
|
||||
out_xml('\t\t\t<Scroll> "Vertical" </Scroll>\r\n')
|
||||
out_xml('\t\t\t<Column> 2 </Column>\r\n')
|
||||
out_xml('\t\t\t<Script>\r\n')
|
||||
out_xml('\t\t\t\tVar block_index_override = 0\r\n')
|
||||
out_xml('\t\t\t\tVar block_index_move = 0\r\n')
|
||||
out_xml('\t\t\t</Script>\r\n')
|
||||
GenListMenu()
|
||||
out_xml('\t\t</FrameScroll>\r\n')
|
||||
out_xml('\t\t</Block>\r\n')
|
||||
out_xml(';endblock'+str(i)+'\r\n')
|
||||
else:
|
||||
out_xml('; menu_new_list '+ str(len(menu_new_list))+'\r\n')
|
||||
GenListMenu()
|
||||
|
||||
out_xml('</FrameScroll>\r\n')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue