Example #1
0
####### fichier spumux pour menu 16:9 widescreen #########

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")
for x in range(0, 4):
    l, r, u, d = dico_model_indexB["%dgauche" % (x + 1)], dico_model_indexB[
        "%ddroite" %
        (x + 1)], dico_model_indexB["%dhaut" %
                                    (x + 1)], dico_model_indexB["%dbas" %
                                                                (x + 1)]
    print 'widescreen', l, r, u, d
    xml_open.write(
        "\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
        % (x + 1, int(pair_000.pair_down(coordonnees_v_spu[x] / 1.422)) - 2,
           coordonnees_h_spu[x] - 2,
           int(
               pair_000.pair_down(
                   (coordonnees_v_spu[x] + taille_frame[0]) / 1.422)) + 2,
           coordonnees_h_spu[x] + taille_frame[1] + 2, l, r, u, d))
l, r, u, d = dico_model_indexB["5gauche"], dico_model_indexB[
    "5droite"], dico_model_indexB["5haut"], dico_model_indexB["5bas"]
xml_open.write(
    "\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
    %
    (4, int(pair_000.pair_down(offset_gap / 1.422)) - 2, 528 - 2,
     int(pair_000.pair_up(
         (offset_gap + width_element_menu) / 1.422)) + 2, 560 + 2, l, r, u, d))
xml_open.write(fichier_spu_fin)
xml_open.close()
Example #2
0
modele_a_utiliser = dico_modeles[str(range_vignettes_out - range_vignettes_in)]

##### pour les menus 16:9 widescreen ######

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")

for x in range(0, len(range_vignettes)):
    l, r, u, d = modele_a_utiliser["%sgauche" % str(x + 1)], modele_a_utiliser[
        "%sdroite" % str(x + 1)], modele_a_utiliser[
            "%shaut" % str(x + 1)], modele_a_utiliser["%sbas" % str(x + 1)]
    xml_open.write(
        "\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%s' right='%s' up='%s' down='%s'/>\n"
        % (x + 1, pair_000.pair_down(liste_des_coordonnees_v_frames[x]),
           pair_000.pair_down(liste_des_coordonnees_h[x]) - 4,
           pair_000.pair_up(liste_des_coordonnees_v_frames[x] +
                            taille_frame_43[0]) + 4,
           pair_000.pair_up(liste_des_coordonnees_h[x] + taille_frame_43[1]),
           l, r, u, d))

    position_curseur = x + 1

position_curseur = position_curseur + 1
l, r, u, d = modele_a_utiliser[
    "%sgauche" % str(position_curseur)], modele_a_utiliser[
        "%sdroite" % str(position_curseur)], modele_a_utiliser[
            "%shaut" %
            str(position_curseur)], modele_a_utiliser["%sbas" %
                                                      str(position_curseur)]
Example #3
0
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")

l,r,u,d = dico_model_indexB["1gauche"],dico_model_indexB["1droite"],dico_model_indexB["1haut"],dico_model_indexB["1bas"]
xml_open.write("\t\t\t<button name='1' x0='%s' y0='%s' x1='%s' y1='%s' left='%d' right='%d' up='%d' down='%d'/>\n"
				%(
				180 -2,
				176 -2 ,
				536 +2,
				464 +2,
				l,r,u,d)
				)
l,r,u,d = dico_model_indexB["2gauche"],dico_model_indexB["2droite"],dico_model_indexB["2haut"],dico_model_indexB["2bas"]
xml_open.write("\t\t\t<button name='2' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
				% (
				int(pair_000.pair_down(offset_gap/1.422)) -2,
				528 -2,
				int(pair_000.pair_up((offset_gap + width_element_menu)/1.422)) +2,
				560 +2,
				l,r,u,d)
				)
								

xml_open.write(fichier_spu_fin)
xml_open.close()

####### fichier spumux pour menu 4:3 letterbox #########
######### new_y = (576 + 6*old_y)/8 ###########

xml_file = nom_export[:-4] + "_letterbox.xml"
xml_open = open(xml_file, "w")
Example #4
0
dico_modeles={"1": dico_modele1, "2": dico_modele2, "3": dico_modele3, "4": dico_modele4, "5": dico_modele5, "6": dico_modele6}
modele_a_utiliser = dico_modeles[str(range_vignettes_out - range_vignettes_in)]

##### pour les menus 16:9 widescreen ######

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")

for x in range(0,len(range_vignettes)) :
    l,r,u,d = modele_a_utiliser["%sgauche" % str(x+1)],modele_a_utiliser["%sdroite" % str(x+1)],modele_a_utiliser["%shaut" % str(x+1)],modele_a_utiliser["%sbas" % str(x+1)]
    xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%s' right='%s' up='%s' down='%s'/>\n"
                    % (
                    x+1,
                    pair_000.pair_down(liste_des_coordonnees_v_frames[x]),
                    pair_000.pair_down(liste_des_coordonnees_h[x]) - 4,
                    pair_000.pair_up(liste_des_coordonnees_v_frames[x] + taille_frame_43[0]) + 4,
                    pair_000.pair_up(liste_des_coordonnees_h[x] + taille_frame_43[1]),
                    l,r,u,d)
                    )
                    
    position_curseur = x + 1
    
position_curseur = position_curseur + 1
l,r,u,d = modele_a_utiliser["%sgauche" % str(position_curseur)],modele_a_utiliser["%sdroite" % str(position_curseur)],modele_a_utiliser["%shaut" % str(position_curseur)],modele_a_utiliser["%sbas" % str(position_curseur)]
xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%s' right='%s' up='%s' down='%s'/>\n"
                % (
                position_curseur,
                pair_000.pair_down(offset_gap/1.422),
                528,
Example #5
0
dico_modeles={"1": dico_modele1, "2": dico_modele2, "3": dico_modele3, "4": dico_modele4, "5": dico_modele5, "6": dico_modele6}
modele_a_utiliser = dico_modeles[str(range_vignettes_out - range_vignettes_in)]

##### pour les menus 16:9 widescreen ######

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")

for x in range(0,len(range_vignettes)) :
    l,r,u,d = modele_a_utiliser["%sgauche" % str(x+1)],modele_a_utiliser["%sdroite" % str(x+1)],modele_a_utiliser["%shaut" % str(x+1)],modele_a_utiliser["%sbas" % str(x+1)]
    xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%s' right='%s' up='%s' down='%s'/>\n"
                    % (
                    x+1,
                    pair_000.pair_down(liste_des_coordonnees_v_frames[x]),
                    pair_000.pair_down(liste_des_coordonnees_h[x]) - 4,
                    pair_000.pair_up(liste_des_coordonnees_v_frames[x] + taille_frame_43[0]) + 4,
                    pair_000.pair_up(liste_des_coordonnees_h[x] + taille_frame_43[1]),
                    l,r,u,d)
                    )
                    
    position_curseur = x + 1
    
position_curseur = position_curseur + 1
l,r,u,d = modele_a_utiliser["%sgauche" % str(position_curseur)],modele_a_utiliser["%sdroite" % str(position_curseur)],modele_a_utiliser["%shaut" % str(position_curseur)],modele_a_utiliser["%sbas" % str(position_curseur)]
xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%s' right='%s' up='%s' down='%s'/>\n"
                % (
                position_curseur,
                pair_000.pair_down(offset_gap/1.422),
                528,
Example #6
0
 if partie == 1:
     nombre_de_liens = les_pages_de_l_index + 2
     l,r,u,d = dico_model_indexN1["1gauche"],dico_model_indexN["1droite"],dico_model_indexN["1haut"],dico_model_indexN["1bas"]
     xml_open.write("\t\t\t<button name='1' x0='%s' y0='%s' x1='%s' y1='%s' left='%d' right='%d' up='%d' down='%d'/>\n" 
                    %(
                    180 -2,
                    176 -2,
                    536 +2,
                    464 +2,
                    l,r,u,d)
                    )
                    
     l,r,u,d = dico_model_indexB["2gauche"],dico_model_indexB["2droite"],dico_model_indexB["2haut"],dico_model_indexB["2bas"]
     xml_open.write("\t\t\t<button name='2' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
                     % (
                     int(pair_000.pair_down(offset_gap/1.422)) - 2,
                     528 - 2,
                     int(pair_000.pair_up((offset_gap + dic_coords_spu["coords_layer_bonus"][0])/1.422)) + 2,
                     560 + 2,
                     l,r,u,d)
                     )
                                           
     for x in range(1, les_pages_de_l_index + 1 ) :
         l,r,u,d = dico_model_indexN1["%dgauche" %(x+2)],dico_model_indexN["%ddroite" %(x+2)],dico_model_indexN["%dhaut" %(x+2)],dico_model_indexN["%dbas"  %(x+2)]
         if r > nombre_de_liens :
             r = 2
         else :
             pass
         if d > nombre_de_liens :
             d = 2
         else :
Example #7
0
pdb.file_png_save2(fond2_L, layer_flat2_L, nom_export_sel_L, "", 0, 0, 0, 0, 0, 0, 0, 0, 0)


####### fichier spumux pour menu 16:9 widescreen #########

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")
for x in range(0,4) :
    l,r,u,d = dico_model_indexB["%dgauche" %(x+1)],dico_model_indexB["%ddroite" %(x+1)],dico_model_indexB["%dhaut" %(x+1)],dico_model_indexB["%dbas" %(x+1)]
    print 'widescreen',l,r,u,d
    xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
                    % (
                    x+1, 
                    int(pair_000.pair_down(coordonnees_v_spu[x]/1.422)) -2,
                    coordonnees_h_spu[x] - 2,
                    int(pair_000.pair_down((coordonnees_v_spu[x] + taille_frame[0]) / 1.422)) +2,
                    coordonnees_h_spu[x] + taille_frame[1] +2,
                    l,r,u,d)
                    )
l,r,u,d = dico_model_indexB["5gauche"],dico_model_indexB["5droite"],dico_model_indexB["5haut"],dico_model_indexB["5bas"]
xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
                % (
                4, 
                int(pair_000.pair_down(offset_gap/1.422)) -2, 
                528 -2, 
                int(pair_000.pair_up((offset_gap + width_element_menu)/1.422)) +2,
                560 +2,
                l,r,u,d)
                )
Example #8
0
layer_flat2_L = pdb.gimp_image_merge_visible_layers(fond2_L, 2)
pdb.gimp_image_convert_indexed(fond2_L, 0, 0, 4, 0, 0, "4 couleurs")
pdb.file_png_save2(fond2_L, layer_flat2_L, nom_export_sel_L, "", 0, 0, 0, 0, 0, 0, 0, 0, 0)

####### fichier spumux pour menu 16:9 widescreen #########

xml_file = nom_export[:-3] + "xml"
xml_open = open(xml_file, "w")
xml_open.write(fichier_spu_debut)
xml_open.write(nom_export_hi + "'\n\t\t\tselect='" + nom_export_sel + "'>\n")
for x in range(0,2) :
    l,r,u,d = dico_model_indexB["%dgauche" %(x+1)],dico_model_indexB["%ddroite" %(x+1)],dico_model_indexB["%dhaut" %(x+1)],dico_model_indexB["%dbas" %(x+1)]
    xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
                    % (
                    x+1,
                    int(pair_000.pair_down(coordonnees_v[x]/1.422)) -2,
                    coordonnees_h - 2,
                    int(pair_000.pair_down((coordonnees_v[x] + taille_frame[0])/1.422)) +2,
                    coordonnees_h + taille_frame[1] +2,
                    l,r,u,d)
                    )
l,r,u,d = dico_model_indexB["3gauche"],dico_model_indexB["3droite"],dico_model_indexB["3haut"],dico_model_indexB["3bas"]
xml_open.write("\t\t\t<button name='%d' x0='%d' y0='%d' x1='%d' y1='%d' left='%d' right='%d' up='%d' down='%d'/>\n"
                % (
                3,              
                int(pair_000.pair_down(offset_gap/1.422)) -2,
                528 -2,
                int(pair_000.pair_up((offset_gap + width_element_menu)/1.422)) +2,
                560 +2,
                l,r,u,d)
                )