Jump to content
Yemachu

Yemachu's Laboratory

Recommended Posts

This thread is used for testing tags and styling them, among other things. With the eventual goal of integrating the card maker in this site, instead of putting it in a sandbox. Some stuff might thus look out of place.

 

 

Edited by Yemachu

Share this post


Link to post
Share on other sites

Hi Yemachu!

Share this post


Link to post
Share on other sites

Expirement: Text replacement macros

The card maker provides a number of customizable fields. Some users might want to use the value they assigned to one of those fields in another one. For example when referring to the card's name in its effect. This can be done by simply copying the value, but it is easy for the values to get out of sync.

This experiment showcases string substitution which should solve the above issue in a slightly more elegant way. The substitution is performed by looking for piece of text enclosed by square brackets. In this case an at-sign followed by the name of the fiekd to include. In this example this means: [@name] or [@type]. The syntax is not yet finalized though. (if no text fields show up, I probably made a mistake somewhere in the code).

 

Edited by Yemachu

Share this post


Link to post
Share on other sites
Experiment: Styling text

In order to generate "silver" and "gold" colored text, the card maker renders the same text twice (with a different offset each time). It does the job to a certain extend, but it is very limited in what it can do.

In this experiment I have tried to render text with a gradient overlay and inner text shadow. The result is maybe a bit over the top, but it should give an impression of what is possible. It needs some fine-tuning before it gets incorporated in the card maker.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...