From ee98d5041788afe7fe13eb34259d4ae3a57b732d Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Thu, 3 Dec 2020 09:35:48 +0100 Subject: [PATCH] Add new confismash template --- .../confismash/characters_corrections.j2 | 101 + lokrez/templates/confismash/template.svg.j2 | 2464 +++++++++++++++++ 2 files changed, 2565 insertions(+) create mode 100644 lokrez/templates/confismash/characters_corrections.j2 create mode 100644 lokrez/templates/confismash/template.svg.j2 diff --git a/lokrez/templates/confismash/characters_corrections.j2 b/lokrez/templates/confismash/characters_corrections.j2 new file mode 100644 index 0000000..0fd2fc7 --- /dev/null +++ b/lokrez/templates/confismash/characters_corrections.j2 @@ -0,0 +1,101 @@ +{% set charcorr = { + "banjo & kazooie": { "default": (-10, -8) }, + "bayonetta": { "default": (-68, -6) }, + "bowser": { "default": (-30, -20) }, + "bowser jr": { + "default": (0, 0), + "00": (0, 0), + "03": (0, 0), + "04": (0, -6), + }, + "byleth": { + "default": (-55, 5, 0.85), + "01": (-20,-10, 0.85), + "03": (-20,-10, 0.85), + "05": (-20,-10, 0.85), + "07": (-20,-10, 0.85), + }, + "captain falcon": { "default": (-60, 10) }, + "charizard": { "default": (-17, -12) }, + "chrom": { "default": (-38, -2) }, + "cloud": { "default": (-20, 0) }, + "corrin": { "default": (-77, 3) }, + "daisy": { "default": (-5, 0) }, + "dark pit": { "default": (-40, -8) }, + "dark samus": { "default": (-50, 5) }, + "diddy kong": { "default": (-25, 0) }, + "donkey kong": { "default": (-21, 4) }, + "dr mario": { "default": (0, 4) }, + "duck hunt": { "default": (-10, -28) }, + "falco": { "default": (-12, 3) }, + "fox": { "default": (-10, 0) }, + "ganondorf": { "default": (-70, 4) }, + "greninja": { "default": (-14, -10) }, + "hero": { "default": (-15, 2) }, + "ice climbers": { "default": (-5, -5) }, + "ike": { "default": (-23, 3) }, + "incineroar": { "default": (-20, 0) }, + "inkling": { + "default": (-20, 0), + "01": (-14, -13), + "03": (-14, -13), + "05": (-14, -13), + "07": (-14, -13), + }, + "isabelle": { "default": (0, -10) }, + "ivysaur": { "default": (-20, -23) }, + "jigglypuff": { "default": (-10, -5) }, + "joker": { "default": (-20, -8) }, + "ken": { "default": (-20, 0) }, + "king dedede": { "default": (-20, 0) }, + "king k rool": { "default": (-20, 3) }, + "kirby": { "default": (-10, -7) }, + "link": { "default": (-50, -10) }, + "little mac": { "default": (-20, 5) }, + "lucario": { "default": (-10, -3) }, + "lucas": { "default": (-14, -5) }, + "lucina": { "default": (-63, 2) }, + "luigi": { "default": (-5, 3) }, + "mario": { "default": (-10, -10) }, + "marth": { "default": (-70, -3) }, + "mega man": { "default": (-10, 0) }, + "meta knight": { "default": (-30, -28) }, + "mewtwo": { "default": (-30, -6) }, + "min min": { "default": (-30, -13) }, + "mr game and watch": { "default": (0, -3) }, + "ness": { "default": (-2, 0) }, + "olimar": { "default": (-20, -17) }, + "pacman": { "default": (-6, 2) }, + "palutena": { "default": (-85, -30) }, + "peach": { "default": (-32, -6) }, + "pichu": { "default": (-7, -15) }, + "pikachu": { "default": (30, -19) }, + "piranha plant": { "default": (-25, 5) }, + "pit": { "default": (-40, -7) }, + "pokemon trainer": { "default": (-15, 5) }, + "richter": { "default": (-20, -10) }, + "ridley": { "default": (-25, -27) }, + "rob": { "default": (-25, 6) }, + "robin": { "default": (-40, -8) }, + "rosalina and luma": { "default": (-30, 0) }, + "roy": { "default": (-25, -7) }, + "ryu": { "default": (-30, 6) }, + "samus": { "default": (-10, -8) }, + "sheik": { "default": (-40, -3) }, + "shulk": { "default": (-22, -10) }, + "simon": { "default": (-60, -1) }, + "snake": { "default": (-48, 0) }, + "sonic": { "default": (-20, 4) }, + "squirtle": { "default": (-7, 8) }, + "terry": { "default": (-60, -20, 0.66) }, + "toon link": { "default": (-10, -17) }, + "villager": { "default": (-12, -8) }, + "wario": { "default": (-18, 5) }, + "wii fit trainer": { "default": (-10, 5) }, + "wolf": { "default": (-17, 3) }, + "yoshi": { "default": (0, 9) }, + "young link": { "default": (-16, 0) }, + "zelda": { "default": (-70, 0) }, + "zero suit samus": { "default": (-53, -1) }, +} %} + diff --git a/lokrez/templates/confismash/template.svg.j2 b/lokrez/templates/confismash/template.svg.j2 new file mode 100644 index 0000000..137f6bd --- /dev/null +++ b/lokrez/templates/confismash/template.svg.j2 @@ -0,0 +1,2464 @@ + +{% import "confismash/characters_corrections.j2" as charcorr %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% if players[0].twitterHandle %} + + @{{players[0].twitterHandle|e}} + {% endif %} + + 1 + + {% if players[0].prefix %} + + {{ players[0].prefix|upper|e }} + + + {% endif %} + + {{ players[0].gamerTag|upper|e }} + + + {% if players[0].get_mains()[1] %} + + {% endif %} + {% if players[0].get_mains()[2] %} + + {% endif %} + + + + + + + + + + {% if players[1].twitterHandle %} + + @{{players[1].twitterHandle|e}} + {% endif %} + + 2 + + {% if players[1].prefix %} + + {{ players[1].prefix|upper|e }} + + + {% endif %} + + {{ players[1].gamerTag|upper|e }} + + + {% if players[1].get_mains()[1] %} + + {% endif %} + {% if players[1].get_mains()[2] %} + + {% endif %} + + + + + + + + + twitch.tv/smashlyon + @SmashAtLyon + Graphic design by Pom + @PomSSB + + + + + + + + + + + + ONLINE WEEKLY + + {{tournament.name|upper|e}} + {{tournament.name|upper|e}} + + + + + + + + + + {% if players[2].twitterHandle %} + + @{{players[2].twitterHandle}} + {% endif %} + + 3 + + {% if players[2].prefix %} + + {{ players[2].prefix|upper|e }} + + + {% endif %} + + {{ players[2].gamerTag|upper|e }} + + + {% if players[2].get_mains()[1] %} + + {% endif %} + {% if players[2].get_mains()[2] %} + + {% endif %} + + {{tournament.startAt.strftime('%d/%m/%Y')}} + + + + + + + + {% if players[3].twitterHandle %} + + @{{players[3].twitterHandle|e}} + {%endif%} + + 4 + + {% if players[3].prefix %} + + {{ players[3].prefix|upper|e }} + + + {% endif %} + + {{ players[3].gamerTag|upper|e }} + + + {% if players[3].get_mains()[1] %} + + {% endif %} + {% if players[3].get_mains()[2] %} + + {% endif %} + + + + + + + + + {% if players[4].twitterHandle %} + + @{{players[4].twitterHandle|e}} + {% endif %} + + 5 + + {% if players[4].prefix %} + + {{ players[4].prefix|upper|e }} + + + {% endif %} + {{ players[4].gamerTag|upper|e }} + {% if players[4].get_mains()[1] %} + + {% endif %} + {% if players[4].get_mains()[2] %} + + {% endif %} + + + + + + + + + {% if players[5].twitterHandle %} + + @{{ players[5].twitterHandle }} + {% endif %} + + 5 + + {% if players[5].prefix %} + + {{ players[5].prefix|upper|e }} + + + {% endif %} + + {{ players[5].gamerTag|upper|e }} + + + {% if players[5].get_mains()[1] %} + + {% endif %} + {% if players[5].get_mains()[2] %} + + {% endif %} + + + + + + + + + {% if players[6].twitterHandle %} + + @{{players[6].twitterHandle|e}} + {% endif %} + + 7 + + {% if players[6].prefix %} + + + + {% endif %} + + {{ players[6].gamerTag|upper|e }} + + + {% if players[6].get_mains()[1] %} + + {% endif %} + {% if players[6].get_mains()[2] %} + + {% endif %} + + + + + + + + + {% if players[7].twitterHandle %} + + @{{players[7].twitterHandle|e}} + {% endif %} + + 7 + + {% if players[7].prefix %} + + {{ players[7].prefix|upper|e }} + + + {% endif %} + + {{ players[7].gamerTag|upper|e }} + + + {% if players[7].get_mains()[1] %} + + {% endif %} + {% if players[7].get_mains()[2] %} + + {% endif %} + + +