|
Post by akulen on Apr 30, 2018 15:18:41 GMT
Hello,
I started toying with the templates to create custom tokens, in particular to be able to have the art go over the name bar. Of course, this isn't really practical when the art doesn't have a transparent background, so when it is the case i add the name bar background directly into the art. However, I would prefer if the actual name text was added on mse (for font purposes and uniformity). I also want the name bar to be under the art when it has transparent background.
My problem is that it is not possible to have a template that allows for both options, because the z index field isn't scriptable. There are workarounds, but they are not pretty, such as creating two templates with two lines of differences, or having two name text fields, and toggling the visible one.
Did I miss something ?
Thanks, Akulen
|
|
|
Post by cajun on Apr 30, 2018 15:29:52 GMT
akulen are you trying to get the art to wrap around the name bar or completely cover it.
|
|
|
Post by akulen on Apr 30, 2018 15:50:30 GMT
Hmm, nvm, I was missing something in my case. That's what I've got for now:  In this case, I edited the image in gimp to remove the area in the background that was over the name bar, and I'm using an altered version of the M15 clear token template where the name bar is split from the card frame, to be able to give it a lower z index than the bottom box. So finally I don't need to be able to script the z index, but it would be nice if it was possible.
|
|
Mahx Michael
1/1 Squirrel
Currently Absent
Posts: 97
Favorite Card: Divine Visitation
Color Alignment: White, Blue, Green
|
Post by Mahx Michael on Apr 30, 2018 20:54:09 GMT
If you just want as straight answer, there is no way to directly script the z index. Z index only allows a number value and nothing else. (Trust me, I've tried.) If you want to be able switch between different z indexes, you'll have to make multiple instances of the "same" field, and give them different z index. Then swich wich one is visible using a script. But as cajun kinda pointed out, why would you need to script the z index anyways?
|
|
|
Post by cajun on Apr 30, 2018 21:56:31 GMT
i was trying to figure out what they were after cause there's a few ways to do that without needing to script z index but I wasn't clear on what they were trying to do.
|
|