How to maintain the user flairs(Until the bot is completed):
Adding sets
- 1: Go to https://magic.wizards.com/en/products/card-set-archive and download the new set icon
- 2: Resize the image to 40px x 30px
- 3: Add the image to the flairsheet and keep note of it's x and y coordinates
- 4: Edit the css stylesheet with the new set, maintain abc order
- 5: Edit the userflairs to include the new set css and three letter code
- 6: Bask in the glory
Full rebuild(for when the old spritesheet runs out of space)
- 1: Go to https://magic.wizards.com/en/products/card-set-archive
- 2: Use the image downloader extension and filter by size 80x80: https://chrome.google.com/webstore/detail/image-downloader/cnpniohnfphhjihaiiggeabnkjhpaldj?hl=en-US
- 3: Resize the images to half size with a batch editor
- 4: Generate the spritesheet and css: https://draeton.github.io/stitches/ and upload it to the stylesheet page as spritesheet2.png
- 5: Format the css to match the current flair section with regex replacements and overwrite it
- 6: Edit/update the Wiki page of set abbreviations
- 7: Use the python script I wrote to update the flairs on the flair page
- 8: Edit the userflair template page to include newly added sets
- 9: Bask in the glory.