Comments (2)
Good point, they update their icons every couple of days. Even better would be if you could load icons from arbitrary URLs.
I've been experimenting with a different approach of generating the spell cards. The code is available in the web-components
branch, and there's a (possibly slightly outdated) online preview.
In this new approach, the icons are not placed via a CSS class and a PNG background image, but instead via a src
property of a custom tag. This loads a SVG icon directly from a URL and dynamically inserts it into the HTML. Currently, all icon paths are prefixed with ./icons/
in the generator, so you won't be able to load external icons, but you could try opening this test page and experiment with the icon URL.
Ultimatively, I want to use this new approach of loading icons, but am not sure how to make existing data files backward compatible yet enable external icon URLs at the same time.
from rpg-cards.
The preview definitely allows more icons than the currently live version. I
also like the formatting in the Contents section a lot more, so that's
excellent. This definitely serves my purposes, so thank you very much for
that!
I don't have any suggestions for the backwards compatibility, besides the
obvious: allow the importing of data from either format and call that
sufficient.
On Mon, May 4, 2015 at 4:19 PM, Robert Autenrieth [email protected]
wrote:
Good point, they update their icons every couple of days. Even better
would be if you could load icons from arbitrary URLs.I've been experimenting with a different approach of generating the spell
cards. The code is available in the web-components branch, and there's a
(possibly slightly outdated) online preview
http://crobi.github.io/rpg-cards/generator-next/generate.html.In this new approach, the icons are not placed via a CSS class and a PNG
background image, but instead via a src property of a custom tag. This
loads a SVG icon directly from a URL and dynamically inserts it into the
HTML. Currently, all icon paths are prefixed with ./icons/ in the
generator, so you won't be able to load external icons, but you could try
opening this test page
http://crobi.github.io/rpg-cards/generator-next/components-test.html
and experiment with the icon URL.Ultimatively, I want to use this new approach of loading icons, but am not
sure how to make existing data files backward compatible yet enable
external icon URLs at the same time.—
Reply to this email directly or view it on GitHub
#33 (comment).
from rpg-cards.
Related Issues (20)
- Icons with the same name are silently overwritten when updated from game-icons.net
- icons.css missing from /generator/css/ HOT 4
- 5.0 x 7.5 HOT 1
- ❤ New mantained fork - custom print sizes and new features
- Generator not working HOT 3
- Formating of generator HOT 1
- More Text Space HOT 3
- background images not appearing when printing
- [Feature request] Add game-icons badges as card icons HOT 1
- Printed single cards with Poker card size do not fill up page HOT 3
- Card Font Size does not work HOT 1
- generating output at letter size produces A4 size page. HOT 1
- Generated page does not save correctly HOT 3
- feature wish: handle back side design as front side design is handled now HOT 1
- Incorrect printing template BUG HOT 5
- Landscape printout wrongly rotated and cut off HOT 1
- Problem when generating cards for printing - missing css/class-icons.css HOT 5
- No support for HTML tables HOT 1
- New version prints on US Letter incorrectly. Older version works fine. HOT 2
- Icon Size on local installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpg-cards.