Aedif / TokenVariants

GNU General Public License v3.0
17 stars 12 forks source link

[Feature Requests] Have "Image Names Contain Dimensions" be case-insensitive and work with percentages (i.e. "_ScaleXXX_") #129

Closed morepurplemorebetter closed 10 months ago

morepurplemorebetter commented 10 months ago

The "Image Names Contain Dimensions" setting is amazing, thank you for making something I didn't know I dearly needed!

It would be nice if the "scaleX" part of the name wasn't case-sensitive and scale could be expressed as a percentage. If you do that, this module would be instantly compatible with the naming convention used by Forgotten Adventures, whose free tokens are used by the D&D 5e system SRD monsters.

Aedif commented 10 months ago

I'd need exact details about the format used by FA. What does the percentage mean in this case? Does it map 1:1 with token scale in Foundry? If percentage is bellow 100, how is it represented? With leading zeroes or no?

morepurplemorebetter commented 10 months ago

Some example filenames:

There don't seem to be any tokens with scale below 100%, as they have white margins to make the token smaller.

The biggest scale seems to be 300%

 

Does it map 1:1 with token scale in Foundry?

Mostly yes, "Scale233" is intended for setting the token scale to "2.3". But unfortunately Foundry doesn't do more than a single decimal, so it is fully 1:1.

Aedif commented 10 months ago

https://github.com/Aedif/TokenVariants/releases/tag/4.52.0

morepurplemorebetter commented 10 months ago

Awesome!