Post by sjappo on Jan 31, 2024 14:09:46 GMT
Sounds so simple, but I am stumped. I've been using MSE to make a set of Dungeons and Dragons spell cards. Works like a charm. But I hit a snag.
I've got a field that contains one of 3 images or none. When an image is chosen, the image should get a border and a white background. When no image is chosen, the border and background must disappear. Now, I've succeeded in making the images and border appear and disappear. But I've not succeeded in making a simple white square. I've made the border as follows:
extra card field
type: color
name: BoxPrepared
extra card style:
BoxPrepared:
visible: {if card.Prepared!="none" then true else false}
left: 341
top : 6
width: 28
height: 28
radius: 2
z index: 4
left width: 2
right width: 2
top width: 2
bottom width: 2
But this field does not seem to accept "background color". So I put another field beneath it, one that takes "background color". I found that the info field takes this tag:
extra card field
type: info
name: BoxPrepared2
default:= ""
extra card style:
BoxPrepared2:
visible: {if card.Prepared!="none" then true else false}
background color: rgb(255,255,255)
font:
name: {styling.description_font}
size: 14
scale down to: 9
color: rgb(0,0,0)
left: 342
top : 7
width: 26
height: 26
z index: 2
But this field is filled with the field name as default text. Which I do not want. ANd it does not seem to want to take a default : "" or something like that. I could set the text color to 255,255,255, but there has to be an easier way. So, any tips?
I've got a field that contains one of 3 images or none. When an image is chosen, the image should get a border and a white background. When no image is chosen, the border and background must disappear. Now, I've succeeded in making the images and border appear and disappear. But I've not succeeded in making a simple white square. I've made the border as follows:
extra card field
type: color
name: BoxPrepared
extra card style:
BoxPrepared:
visible: {if card.Prepared!="none" then true else false}
left: 341
top : 6
width: 28
height: 28
radius: 2
z index: 4
left width: 2
right width: 2
top width: 2
bottom width: 2
But this field does not seem to accept "background color". So I put another field beneath it, one that takes "background color". I found that the info field takes this tag:
extra card field
type: info
name: BoxPrepared2
default:= ""
extra card style:
BoxPrepared2:
visible: {if card.Prepared!="none" then true else false}
background color: rgb(255,255,255)
font:
name: {styling.description_font}
size: 14
scale down to: 9
color: rgb(0,0,0)
left: 342
top : 7
width: 26
height: 26
z index: 2
But this field is filled with the field name as default text. Which I do not want. ANd it does not seem to want to take a default : "" or something like that. I could set the text color to 255,255,255, but there has to be an easier way. So, any tips?