cardmaker icon indicating copy to clipboard operation
cardmaker copied to clipboard

Custom functions

Open Blkx-Darkreaper opened this issue 7 months ago • 1 comments

Would be helpful if Cardmaker supported the creation of custom functions in the defines file

For example I've created some custom icons in the defines iconProwess1 <spc=2><bgi=@[prowess];-12;0;35;35>1<spc=3> iconProwess2 <spc=2><bgi=@[prowess];-12;0;35;35>2<spc=3>

Would be helpful if the number between the tags could be passed in so only one icon needs to be added Then it could simply be called by include @[iconProwess=n] where n is the value that's included in the tag

iconProwess <spc=2><bgi=@[prowess];-12;0;35;35>{1}<spc=3> Maybe something like this?

Blkx-Darkreaper avatar Sep 06 '25 16:09 Blkx-Darkreaper

I think something very close to this is already supported via reference parameters: https://github.com/nhmkdev/cardmaker/wiki/user-references-parameters

I'll keep the ticket open just in case you have any further questions.

nhmkdev avatar Sep 06 '25 21:09 nhmkdev