haganbmj / MagicSetEditor2

Magic Set Editor is a program for designing trading cards
Other
17 stars 7 forks source link

Add Align/Margin tags to card formatting menus #17

Open haganbmj opened 2 years ago

haganbmj commented 2 years ago

https://github.com/twanvl/MagicSetEditor2/commit/2b7bd252e4404dd7c7e8a13439f005c4333e2519 Added the ability to use some additional tags to handle element positioning, but didn't add a menu option to access them. On top of that trying to type a tag is intentionally escaped, so it doesn't seem like you can key in any of those tags without manually editing the set file.

The Italic/Bold tags are similar, but can apply to partial selections of a text line. Align/margin should probably operate more similarly to the Reminder Text menu where it knows you're still in an aligned line, or be a state on the line? Don't exactly know how those work.

Here's references to the menu options themselves. https://github.com/twanvl/MagicSetEditor2/search?q=ID_FORMAT_ITALIC

And then there's this is_in_tag function that probably determines how to keep bold/italic state when continuing to type that might be relevant.