swsheets icon indicating copy to clipboard operation
swsheets copied to clipboard

Display dice representations in talent descriptions

Open duffn opened this issue 6 years ago • 3 comments

Description

I had a request in Discord to display dice images (or some other dice representation) in the talent descriptions inputs, triggered by some special text, ala markdown.

Example

Talent descriptions can often contain wording like in the Smuggler/Scoundrel Plausible Deniability talent.

Remove 1 "Setback die" from all Coercion and Deception checks.

In the rule books, "Setback die" is displayed with an image of the black setback die. So, in talent descriptions, if you type something like

Remove 1 :setback: from all Coercion and Deception checks.

then show a die image in the description when saved.

Screen Shot 2019-12-26 at 3 12 01 PM

duffn avatar Dec 26 '19 22:12 duffn

Great idea. It would be cool to use this in most "short text" inputs - force power descriptions & upgrades as well as the new adjustments column you made.

If you'd like, I'd be happy to finish out the dice images based on the die collection I started with https://github.com/swsheets/swsheets/blob/master/assets/die_ability.afdesign and https://github.com/swsheets/swsheets/blob/master/assets/die_proficiency.afdesign , especially since I'm assuming you probably don't have Affinity Designer installed

sparkertime avatar Dec 26 '19 22:12 sparkertime

Finishing out the die images would be great! And I just had to look up what Affinity Designer is, so that's correct that I don't have it. 😄

duffn avatar Dec 26 '19 22:12 duffn

Done! Just pushed a branch, sp_add_all_dice with both svg and png images for each dice. Rendering the SVGs would probably look a little better on most devices but feel free to use the PNGs if that turns out to be a pain.

Good luck!

sparkertime avatar Dec 26 '19 23:12 sparkertime