Allow to add separator
Until now, all the menu entries were shown in a continuous list, one after another. This patch allows to add separators between entries.
This commit is contained in:
parent
8719778d22
commit
c222c4ab14
8 changed files with 616 additions and 214 deletions
|
|
@ -56,8 +56,15 @@ class dvdauthor_converter(devedeng.executor.executor):
|
|||
self.progress_bar[1].set_text(data[0])
|
||||
return
|
||||
|
||||
def create_dvdauthor_xml(self, movie_folder, file_movies, menu_entries, start_with_menu, play_all_opt, menuWide):
|
||||
def create_dvdauthor_xml(self, movie_folder, file_movies_in, menu_entries, start_with_menu, play_all_opt, menuWide):
|
||||
|
||||
file_movies = []
|
||||
for element in file_movies_in:
|
||||
if element.element_type != "file_movie":
|
||||
continue
|
||||
file_movies.append(element)
|
||||
|
||||
print(file_movies)
|
||||
xmlpath = os.path.join(movie_folder, "xml_data")
|
||||
xml_file_path = os.path.join(xmlpath, "dvdauthor.xml")
|
||||
datapath = os.path.join(movie_folder, "dvd_tree")
|
||||
|
|
@ -243,16 +250,14 @@ class dvdauthor_converter(devedeng.executor.executor):
|
|||
xml_file.write('\t\t\t\t\tg0=1;\n')
|
||||
xml_file.write('\t\t\t\t\tjump vmgm menu;\n')
|
||||
else:
|
||||
xml_file.write(
|
||||
'\t\t\t\t\tg0=' + str(title_list[title_counter]) + ';\n')
|
||||
xml_file.write('\t\t\t\t\tg0={:};\n'.format(str(title_list[title_counter])))
|
||||
xml_file.write('\t\t\t\t\tjump vmgm menu;\n')
|
||||
title_counter += 1
|
||||
button_counter += 1
|
||||
xml_file.write('\t\t\t\t</button>\n')
|
||||
|
||||
if (menu_page["left"] is not None):
|
||||
xml_file.write('\t\t\t\t<button name="' +
|
||||
menu_page["left"] + '"> g1=')
|
||||
xml_file.write('\t\t\t\t<button name="' + menu_page["left"] + '"> g1=')
|
||||
xml_file.write(str(menu_number - 1))
|
||||
xml_file.write('; g2=1024; jump menu ')
|
||||
xml_file.write(str(menu_number))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue