Ticket #3755: button-order.patch
File button-order.patch, 1.6 KB (added by , 17 years ago) |
---|
-
mythburn.py
old new 1759 1759 #Number of video items on this menu page 1760 1760 itemsonthispage=0 1761 1761 1762 endbuttons = [] 1762 1763 #Loop through all the items on this menu page 1763 1764 while itemnum <= numberofitems and itemsonthispage < itemsperpage: 1764 1765 menuitem=menuitems[ itemsonthispage ] … … 1927 1928 button=dvddom.createElement("button") 1928 1929 button.setAttribute("name","previous") 1929 1930 button.appendChild(dvddom.createTextNode("{g2=1;jump menu %s;}" % page )) 1930 menupgc.appendChild(button) 1931 del button 1931 endbuttons.append(button) 1932 1932 1933 1933 1934 1934 elif node.nodeName=="next": … … 1936 1936 button=dvddom.createElement("button") 1937 1937 button.setAttribute("name","next") 1938 1938 button.appendChild(dvddom.createTextNode("{g2=1;jump menu %s;}" % (page + 2))) 1939 menupgc.appendChild(button) 1940 del button 1939 endbuttons.append(button) 1941 1940 1942 1941 #On to the next item 1943 1942 itemnum+=1 … … 1945 1944 #Move on to the next page 1946 1945 page+=1 1947 1946 1947 for button in endbuttons: 1948 menupgc.appendChild(button) 1949 del button 1950 1948 1951 if wantIntro: 1949 1952 #Menu creation is finished so we know how many pages were created 1950 1953 #add to to jump to the correct one automatically