Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svg mana icons support #4203

Merged
merged 11 commits into from
Nov 27, 2017
Merged

Conversation

JayDi85
Copy link
Member

@JayDi85 JayDi85 commented Nov 26, 2017

First part of svg support (look at issue #4196 for more info).

shot_171126_191652

What was done:

  • added new svg library (loading and image manipulation);
  • added new renders for mana icons in tables, cards, texts/hints;
  • added png generation for html texts;
  • added text symbols draw on images missing;
  • fix some errors and misleading images path;
  • refactor constants and remove duplicate values;

What's need to do for second part:

  • add svg symbols downloading from scryfall;
  • add svg support for set's icons;
  • add svg set's icons downloading from scryfall;
  • fix bugs and test app symbols downloading from scratch (from launcher install to full download).

You can download basic mana symbols here: svg_symbols.zip (extract archive to Mage.Client\plugins\images\symbols\).

 - delete duplicate consts;
 - correct paths and it uses;
 - fix loading icons from user defined dir;
 - Added new images and symbols downloading;
 - Fixed user defined images path (now work for all images: cards, symbols, temp downloading);
 - Fixed not working cancel button at download window (it close window, but tasks is working, download and didn't save);
 - Fixed temp files trash all around images folder (on cancel button);
 - Fixed not saving new downloaded cards on cancel button (zip file didn't close on cancel);
@JayDi85
Copy link
Member Author

JayDi85 commented Nov 27, 2017

Test version with svg symbols support is done. You can download basic mana symbols here: svg_symbols.zip (extract archive to Mage.Client\plugins\images\symbols\ and restart app) -- there are not all the files, but enough to test.

Also you can download:

@JayDi85 JayDi85 merged commit d962c39 into magefree:master Nov 27, 2017
@spjspj
Copy link
Contributor

spjspj commented Nov 27, 2017

^^ The mana cost is missing the shadow. Mana symbols in the rules text are flat like that but not in the casting cost

@JayDi85
Copy link
Member Author

JayDi85 commented Nov 27, 2017

@spjspj I'll look on shadow option for draw method later

@JayDi85 JayDi85 deleted the svg-mana-icons-support branch May 10, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants