Add skin-dependant framing for reboot2020 template
Some characters have skins different enough that they need to be framed differently (bowser jr, bayonetta, etc). Now the character "corrections" used by the template to frame the characters correctly can be set independently for each skin.master
parent
edd220a521
commit
34cdfc8606
|
@ -1,84 +1,89 @@
|
||||||
{% set charcorr = {
|
{% set charcorr = {
|
||||||
"banjo & kazooie": (30, -18),
|
"banjo & kazooie": { "default": (30, -18) },
|
||||||
"bayonetta": (-28, -16),
|
"bayonetta": { "default": (-28, -16) },
|
||||||
"bowser": (10, -30),
|
"bowser": { "default": (10, -30) },
|
||||||
"bowser jr": (40, -16),
|
"bowser jr": {
|
||||||
"byleth": (-15, -5),
|
"default": (40, -10),
|
||||||
"captain falcon": (13, 0),
|
"00": (40, -10),
|
||||||
"charizard": (23, -22),
|
"03": (40, -10),
|
||||||
"chrom": (2, -12),
|
"04": (40, -16),
|
||||||
"cloud": (20, -10),
|
},
|
||||||
"corrin": (-37, -7),
|
"byleth": { "default": (-15, -5) },
|
||||||
"daisy": (35, -10),
|
"captain falcon": { "default": (13, 0) },
|
||||||
"dark pit": (0, -18),
|
"charizard": { "default": (23, -22) },
|
||||||
"dark samus": (-10, -5),
|
"chrom": { "default": (2, -12) },
|
||||||
"diddy kong": (15, -10),
|
"cloud": { "default": (20, -10) },
|
||||||
"donkey kong": (19, -6),
|
"corrin": { "default": (-37, -7) },
|
||||||
"dr mario": (40, -6),
|
"daisy": { "default": (35, -10) },
|
||||||
"duck hunt": (30, -38),
|
"dark pit": { "default": (0, -18) },
|
||||||
"falco": (28, -7),
|
"dark samus": { "default": (-10, -5) },
|
||||||
"fox": (30, -10),
|
"diddy kong": { "default": (15, -10) },
|
||||||
"ganondorf": (-30, -6),
|
"donkey kong": { "default": (19, -6) },
|
||||||
"greninja": (26, -20),
|
"dr mario": { "default": (40, -6) },
|
||||||
"hero": (25, -8),
|
"duck hunt": { "default": (30, -38) },
|
||||||
"ice climbers": (12, -15),
|
"falco": { "default": (28, -7) },
|
||||||
"ike": (17, -7),
|
"fox": { "default": (30, -10) },
|
||||||
"incineroar": (20, -10),
|
"ganondorf": { "default": (-30, -6) },
|
||||||
"inkling": (20,-10),
|
"greninja": { "default": (26, -20) },
|
||||||
"isabelle": (40, -20),
|
"hero": { "default": (25, -8) },
|
||||||
"ivysaur": (20, -33),
|
"ice climbers": { "default": (12, -15) },
|
||||||
"jigglypuff": (30, -15),
|
"ike": { "default": (17, -7) },
|
||||||
"joker": (0, -18),
|
"incineroar": { "default": (20, -10) },
|
||||||
"ken": (20, -10),
|
"inkling": { "default": (20,-10) },
|
||||||
"king dedede": (20, -10),
|
"isabelle": { "default": (40, -20) },
|
||||||
"king k rool": (20, -7),
|
"ivysaur": { "default": (20, -33) },
|
||||||
"kirby": (30, -17),
|
"jigglypuff": { "default": (30, -15) },
|
||||||
"link": (-10, -20),
|
"joker": { "default": (0, -18) },
|
||||||
"little mac": (20, -5),
|
"ken": { "default": (20, -10) },
|
||||||
"lucario": (30, -13),
|
"king dedede": { "default": (20, -10) },
|
||||||
"lucas": (26, -15),
|
"king k rool": { "default": (20, -7) },
|
||||||
"lucina": (-23, -8),
|
"kirby": { "default": (30, -17) },
|
||||||
"luigi": (35, -7),
|
"link": { "default": (-10, -20) },
|
||||||
"mario": (30, -20),
|
"little mac": { "default": (20, -5) },
|
||||||
"marth": (-30, -13),
|
"lucario": { "default": (30, -13) },
|
||||||
"mega man": (30, -10),
|
"lucas": { "default": (26, -15) },
|
||||||
"meta knight": (10, -38),
|
"lucina": { "default": (-23, -8) },
|
||||||
"mewtwo": (10, -16),
|
"luigi": { "default": (35, -7) },
|
||||||
"min min": (10, -23),
|
"mario": { "default": (30, -20) },
|
||||||
"mr game and watch": (26, -13),
|
"marth": { "default": (-30, -13) },
|
||||||
"ness": (38, -10),
|
"mega man": { "default": (30, -10) },
|
||||||
"olimar": (20, -27),
|
"meta knight": { "default": (10, -38) },
|
||||||
"pacman": (34, -13),
|
"mewtwo": { "default": (10, -16) },
|
||||||
"palutena": (-20, -20),
|
"min min": { "default": (10, -23) },
|
||||||
"peach": (8, -16),
|
"mr game and watch": { "default": (26, -13) },
|
||||||
"pichu": (33, -25),
|
"ness": { "default": (38, -10) },
|
||||||
"pikachu": (30, -19),
|
"olimar": { "default": (20, -27) },
|
||||||
"piranha plant": (15, -5),
|
"pacman": { "default": (34, -13) },
|
||||||
"pit": (0, -17),
|
"palutena": { "default": (-20, -20) },
|
||||||
"pokemon trainer": (25, -5),
|
"peach": { "default": (8, -16) },
|
||||||
"richter": (20, -20),
|
"pichu": { "default": (33, -25) },
|
||||||
"ridley": (20, -20),
|
"pikachu": { "default": (30, -19) },
|
||||||
"rob": (15, -4),
|
"piranha plant": { "default": (15, -5) },
|
||||||
"robin": (0, -18),
|
"pit": { "default": (0, -17) },
|
||||||
"rosalina and luma": (10, -10),
|
"pokemon trainer": { "default": (25, -5) },
|
||||||
"roy": (15, -17),
|
"richter": { "default": (20, -20) },
|
||||||
"ryu": (10, -4),
|
"ridley": { "default": (20, -20) },
|
||||||
"samus": (30, -18),
|
"rob": { "default": (15, -4) },
|
||||||
"sheik": (0, -13),
|
"robin": { "default": (0, -18) },
|
||||||
"shulk": (18, -20),
|
"rosalina and luma": { "default": (10, -10) },
|
||||||
"simon": (-20, -11),
|
"roy": { "default": (15, -17) },
|
||||||
"snake": (0, -3),
|
"ryu": { "default": (10, -4) },
|
||||||
"sonic": (20, -6),
|
"samus": { "default": (30, -18) },
|
||||||
"squirtle": (33, -2),
|
"sheik": { "default": (0, -13) },
|
||||||
"terry": (0, -8),
|
"shulk": { "default": (18, -20) },
|
||||||
"toon link": (20, -27),
|
"simon": { "default": (-20, -11) },
|
||||||
"villager": (28, -18),
|
"snake": { "default": (0, -3) },
|
||||||
"wario": (10, -5),
|
"sonic": { "default": (20, -6) },
|
||||||
"wii fit trainer": (20, -5),
|
"squirtle": { "default": (33, -2) },
|
||||||
"wolf": (23, -7),
|
"terry": { "default": (0, -8) },
|
||||||
"yoshi": (28, -3),
|
"toon link": { "default": (20, -27) },
|
||||||
"young link": (24, -10),
|
"villager": { "default": (28, -18) },
|
||||||
"zelda": (-20,-7),
|
"wario": { "default": (22, -5) },
|
||||||
"zero suit samus": (-13, -11),
|
"wii fit trainer": { "default": (20, -5) },
|
||||||
|
"wolf": { "default": (23, -7) },
|
||||||
|
"yoshi": { "default": (28, -3) },
|
||||||
|
"young link": { "default": (24, -10) },
|
||||||
|
"zelda": { "default": (-20,-7) },
|
||||||
|
"zero suit samus": { "default": (-13, -11) },
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
|
|
|
@ -813,8 +813,8 @@
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
xlink:href="{{dir_res_ssbu}}/{{p.get_mains()[0][0]|e}}/chara_3_{{p.get_mains()[0][0]|e}}_{{p.get_mains()[0][1]}}.png"
|
xlink:href="{{dir_res_ssbu}}/{{p.get_mains()[0][0]|e}}/chara_3_{{p.get_mains()[0][0]|e}}_{{p.get_mains()[0][1]}}.png"
|
||||||
x="{{ (1/(0.07 if loop.index == 1 else 0.0615)) * ( 51.0 + charcorr.charcorr[p.get_mains()[0][0]][0] ) }}"
|
x="{{ (1/(0.07 if loop.index == 1 else 0.0615)) * ( 51.0 + charcorr.charcorr[ p.get_mains()[0][0] ].get( p.get_mains()[0][1], charcorr.charcorr[ p.get_mains()[0][0] ]["default"] )[0] ) }}"
|
||||||
y="{{ (1/(0.07 if loop.index == 1 else 0.0615)) * ( (114 if loop.index==1 else 124) + charcorr.charcorr[p.get_mains()[0][0]][1] ) }}"
|
y="{{ (1/(0.07 if loop.index == 1 else 0.0615)) * ( (114 if loop.index==1 else 124) + charcorr.charcorr[p.get_mains()[0][0]].get( p.get_mains()[0][1], charcorr.charcorr[ p.get_mains()[0][0] ]["default"] )[1] ) }}"
|
||||||
transform="scale({{0.07 if loop.index == 1 else 0.0615}})"
|
transform="scale({{0.07 if loop.index == 1 else 0.0615}})"
|
||||||
style="display:inline;image-rendering:optimizeQuality"
|
style="display:inline;image-rendering:optimizeQuality"
|
||||||
id="player{{loop.index}}_img"
|
id="player{{loop.index}}_img"
|
||||||
|
@ -823,8 +823,8 @@
|
||||||
<g
|
<g
|
||||||
transform="scale({{0.07 if loop.index == 1 else 0.0615}})
|
transform="scale({{0.07 if loop.index == 1 else 0.0615}})
|
||||||
translate(
|
translate(
|
||||||
{{ "{:.5f}".format((1/(0.07 if loop.index == 1 else 0.0615))*( 51 + charcorr.charcorr[p.get_mains()[0][0]][0] )) }},
|
{{ "{:.5f}".format((1/(0.07 if loop.index == 1 else 0.0615))*( 51 + charcorr.charcorr[p.get_mains()[0][0]].get( p.get_mains()[0][1], charcorr.charcorr[ p.get_mains()[0][0] ]["default"] )[0] )) }},
|
||||||
{{ "{:.5f}".format((1/(0.07 if loop.index == 1 else 0.0615))*( (114 if loop.index==1 else 124) + charcorr.charcorr[p.get_mains()[0][0]][1] )) }}
|
{{ "{:.5f}".format((1/(0.07 if loop.index == 1 else 0.0615))*( (114 if loop.index==1 else 124) + charcorr.charcorr[p.get_mains()[0][0]].get( p.get_mains()[0][1], charcorr.charcorr[ p.get_mains()[0][0] ]["default"] )[1] )) }}
|
||||||
)"
|
)"
|
||||||
>
|
>
|
||||||
{% include "rebootlyon2020/covid/{}.svg.j2".format(covid.masks_filenames[p.get_mains()[0][0]][p.get_mains()[0][1]]) ignore missing %}
|
{% include "rebootlyon2020/covid/{}.svg.j2".format(covid.masks_filenames[p.get_mains()[0][0]][p.get_mains()[0][1]]) ignore missing %}
|
||||||
|
|
Loading…
Reference in New Issue