fix 8ED tokens name formula (#38)
* change resize formula to be character-based * add embossed letters for accent, grave, circumflex, and overdots (à, á, â, ä) for aeiou. --------- Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
BIN
data/magic-embossedletters.mse-symbol-font/aaccent.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/aarrow.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/adots.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/agrave.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/eaccent.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/earrow.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/edots.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/egrave.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/iaccent.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/iarrow.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/idots.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/igrave.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/oaccent.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/oarrow.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/odots.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/ograve.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/period.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
@@ -2,7 +2,7 @@
|
|||||||
version: 2009-03-25
|
version: 2009-03-25
|
||||||
|
|
||||||
image font size: 46
|
image font size: 46
|
||||||
horizontal space: 1.2
|
horizontal space: 1.5
|
||||||
symbol:
|
symbol:
|
||||||
code: Æ
|
code: Æ
|
||||||
image: ae.png
|
image: ae.png
|
||||||
@@ -15,9 +15,36 @@ symbol:
|
|||||||
symbol:
|
symbol:
|
||||||
code: ,
|
code: ,
|
||||||
image: comma.png
|
image: comma.png
|
||||||
|
symbol:
|
||||||
|
code: .
|
||||||
|
image: period.png
|
||||||
symbol:
|
symbol:
|
||||||
code: -
|
code: -
|
||||||
image: dash.png
|
image: dash.png
|
||||||
|
symbol:
|
||||||
|
code: Â
|
||||||
|
image: aarrow.png
|
||||||
|
symbol:
|
||||||
|
code: â
|
||||||
|
image: aarrow.png
|
||||||
|
symbol:
|
||||||
|
code: Ä
|
||||||
|
image: adots.png
|
||||||
|
symbol:
|
||||||
|
code: ä
|
||||||
|
image: adots.png
|
||||||
|
symbol:
|
||||||
|
code: À
|
||||||
|
image: agrave.png
|
||||||
|
symbol:
|
||||||
|
code: à
|
||||||
|
image: agrave.png
|
||||||
|
symbol:
|
||||||
|
code: Á
|
||||||
|
image: aaccent.png
|
||||||
|
symbol:
|
||||||
|
code: á
|
||||||
|
image: aaccent.png
|
||||||
symbol:
|
symbol:
|
||||||
code: A
|
code: A
|
||||||
image: a.png
|
image: a.png
|
||||||
@@ -42,6 +69,30 @@ symbol:
|
|||||||
symbol:
|
symbol:
|
||||||
code: d
|
code: d
|
||||||
image: d.png
|
image: d.png
|
||||||
|
symbol:
|
||||||
|
code: Ê
|
||||||
|
image: earrow.png
|
||||||
|
symbol:
|
||||||
|
code: ê
|
||||||
|
image: earrow.png
|
||||||
|
symbol:
|
||||||
|
code: Ë
|
||||||
|
image: edots.png
|
||||||
|
symbol:
|
||||||
|
code: ë
|
||||||
|
image: edots.png
|
||||||
|
symbol:
|
||||||
|
code: È
|
||||||
|
image: egrave.png
|
||||||
|
symbol:
|
||||||
|
code: è
|
||||||
|
image: egrave.png
|
||||||
|
symbol:
|
||||||
|
code: É
|
||||||
|
image: eaccent.png
|
||||||
|
symbol:
|
||||||
|
code: é
|
||||||
|
image: eaccent.png
|
||||||
symbol:
|
symbol:
|
||||||
code: E
|
code: E
|
||||||
image: e.png
|
image: e.png
|
||||||
@@ -66,6 +117,30 @@ symbol:
|
|||||||
symbol:
|
symbol:
|
||||||
code: h
|
code: h
|
||||||
image: h.png
|
image: h.png
|
||||||
|
symbol:
|
||||||
|
code: Î
|
||||||
|
image: iarrow.png
|
||||||
|
symbol:
|
||||||
|
code: î
|
||||||
|
image: iarrow.png
|
||||||
|
symbol:
|
||||||
|
code: Ï
|
||||||
|
image: idots.png
|
||||||
|
symbol:
|
||||||
|
code: ï
|
||||||
|
image: idots.png
|
||||||
|
symbol:
|
||||||
|
code: Ì
|
||||||
|
image: igrave.png
|
||||||
|
symbol:
|
||||||
|
code: ì
|
||||||
|
image: igrave.png
|
||||||
|
symbol:
|
||||||
|
code: Í
|
||||||
|
image: iaccent.png
|
||||||
|
symbol:
|
||||||
|
code: í
|
||||||
|
image: iaccent.png
|
||||||
symbol:
|
symbol:
|
||||||
code: I
|
code: I
|
||||||
image: i.png
|
image: i.png
|
||||||
@@ -102,6 +177,30 @@ symbol:
|
|||||||
symbol:
|
symbol:
|
||||||
code: n
|
code: n
|
||||||
image: n.png
|
image: n.png
|
||||||
|
symbol:
|
||||||
|
code: Ô
|
||||||
|
image: oarrow.png
|
||||||
|
symbol:
|
||||||
|
code: ô
|
||||||
|
image: oarrow.png
|
||||||
|
symbol:
|
||||||
|
code: Ö
|
||||||
|
image: odots.png
|
||||||
|
symbol:
|
||||||
|
code: ö
|
||||||
|
image: odots.png
|
||||||
|
symbol:
|
||||||
|
code: Ò
|
||||||
|
image: ograve.png
|
||||||
|
symbol:
|
||||||
|
code: ò
|
||||||
|
image: ograve.png
|
||||||
|
symbol:
|
||||||
|
code: Ó
|
||||||
|
image: oaccent.png
|
||||||
|
symbol:
|
||||||
|
code: ó
|
||||||
|
image: oaccent.png
|
||||||
symbol:
|
symbol:
|
||||||
code: O
|
code: O
|
||||||
image: o.png
|
image: o.png
|
||||||
@@ -138,6 +237,30 @@ symbol:
|
|||||||
symbol:
|
symbol:
|
||||||
code: t
|
code: t
|
||||||
image: t.png
|
image: t.png
|
||||||
|
symbol:
|
||||||
|
code: Û
|
||||||
|
image: uarrow.png
|
||||||
|
symbol:
|
||||||
|
code: û
|
||||||
|
image: uarrow.png
|
||||||
|
symbol:
|
||||||
|
code: Ü
|
||||||
|
image: udots.png
|
||||||
|
symbol:
|
||||||
|
code: ü
|
||||||
|
image: udots.png
|
||||||
|
symbol:
|
||||||
|
code: Ù
|
||||||
|
image: ugrave.png
|
||||||
|
symbol:
|
||||||
|
code: ù
|
||||||
|
image: ugrave.png
|
||||||
|
symbol:
|
||||||
|
code: Ú
|
||||||
|
image: uaccent.png
|
||||||
|
symbol:
|
||||||
|
code: ú
|
||||||
|
image: uaccent.png
|
||||||
symbol:
|
symbol:
|
||||||
code: U
|
code: U
|
||||||
image: u.png
|
image: u.png
|
||||||
|
|||||||
BIN
data/magic-embossedletters.mse-symbol-font/uaccent.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/uarrow.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/udots.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
data/magic-embossedletters.mse-symbol-font/ugrave.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
@@ -135,15 +135,11 @@ card style:
|
|||||||
z index: 6
|
z index: 6
|
||||||
###################C######### Name line
|
###################C######### Name line
|
||||||
super type:
|
super type:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(remove_tags(card.super_type)))}
|
||||||
{ if card_style.super_type.content_width > 269 then 50
|
|
||||||
else card_style.super_type.content_width * -0.5 + 184.5 }
|
|
||||||
top: 25
|
top: 25
|
||||||
width:
|
width: {min(275, 6+20*length(remove_tags(card.super_type)))}
|
||||||
{ if card_style.super_type.content_width > 269 then 275
|
|
||||||
else card_style.super_type.content_width + 6 }
|
|
||||||
height: 28
|
height: 28
|
||||||
alignment: bottom center justify-all
|
alignment: bottom center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 4
|
z index: 4
|
||||||
@@ -153,15 +149,11 @@ card style:
|
|||||||
alignment: bottom center
|
alignment: bottom center
|
||||||
always symbol: true
|
always symbol: true
|
||||||
name:
|
name:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 184.5 }
|
|
||||||
top: 46
|
top: 46
|
||||||
width:
|
width: {min(275, 6+20*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 275
|
|
||||||
else card_style.name.content_width + 6 }
|
|
||||||
height: 20
|
height: 20
|
||||||
alignment: bottom center justify-all
|
alignment: bottom center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 4
|
z index: 4
|
||||||
|
|||||||
@@ -124,7 +124,19 @@ init script:
|
|||||||
)
|
)
|
||||||
else base
|
else base
|
||||||
}
|
}
|
||||||
|
name_font_size := {
|
||||||
|
nl := length(card.name)-14
|
||||||
|
gv := to_number(styling.name_font_size)
|
||||||
|
if gv != 0
|
||||||
|
then gv
|
||||||
|
else if nl < 0
|
||||||
|
then 21
|
||||||
|
else if nl < 9
|
||||||
|
then 21 - nl
|
||||||
|
else
|
||||||
|
13
|
||||||
|
}
|
||||||
|
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
symbol:
|
symbol:
|
||||||
@@ -135,6 +147,10 @@ set info style:
|
|||||||
fill color: rgb(255,255,255)
|
fill color: rgb(255,255,255)
|
||||||
border color: rgb(0,0,0)
|
border color: rgb(0,0,0)
|
||||||
############################################################## Extra style
|
############################################################## Extra style
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: name font size
|
||||||
|
description: Override the font size for the token's name. Default is 21.
|
||||||
styling field:
|
styling field:
|
||||||
type: boolean
|
type: boolean
|
||||||
name: grey hybrid typeline
|
name: grey hybrid typeline
|
||||||
@@ -248,22 +264,18 @@ card style:
|
|||||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||||
###################C######### Name line
|
###################C######### Name line
|
||||||
name:
|
name:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 50
|
top: 25
|
||||||
else card_style.name.content_width * -0.5 + 184.5 }
|
width: {min(275, 6+20*length(card.name))}
|
||||||
top: 23
|
|
||||||
width:
|
|
||||||
{ if card_style.name.content_width > 269 then 275
|
|
||||||
else card_style.name.content_width + 6 }
|
|
||||||
height: 28
|
height: 28
|
||||||
alignment: bottom center justify-all
|
alignment: middle center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 3
|
z index: 3
|
||||||
symbol font:
|
symbol font:
|
||||||
name: magic-embossedletters
|
name: magic-embossedletters
|
||||||
size: 22
|
size: {name_font_size()}
|
||||||
alignment: bottom center
|
alignment: bottom center justify-all
|
||||||
always symbol: true
|
always symbol: true
|
||||||
############################# Image
|
############################# Image
|
||||||
image:
|
image:
|
||||||
@@ -450,22 +462,15 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: { card_ptbox() }
|
image: { card_ptbox() }
|
||||||
name box:
|
name box:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width:
|
width: {min(275, 6+20*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 275
|
|
||||||
else card_style.name.content_width + 3}
|
|
||||||
height: 35
|
height: 35
|
||||||
z index: 2
|
z index: 2
|
||||||
visible: { card.name != "" }
|
|
||||||
render style: image
|
render style: image
|
||||||
image: /magic-new-token.mse-style/name-mid.png
|
image: /magic-new-token.mse-style/name-mid.png
|
||||||
name box left:
|
name box left:
|
||||||
right:
|
right: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 15
|
width: 15
|
||||||
height: 35
|
height: 35
|
||||||
@@ -473,9 +478,7 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: /magic-new-token.mse-style/name-left.png
|
image: /magic-new-token.mse-style/name-left.png
|
||||||
name box right:
|
name box right:
|
||||||
left:
|
left: {min(325, 189.5 + 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 325
|
|
||||||
else card_style.name.content_width * 0.5 + 187.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 14
|
width: 14
|
||||||
height: 35
|
height: 35
|
||||||
|
|||||||
@@ -56,7 +56,19 @@ init script:
|
|||||||
else if styling.frame_opacity > 100 then 1
|
else if styling.frame_opacity > 100 then 1
|
||||||
else styling.frame_opacity / 100
|
else styling.frame_opacity / 100
|
||||||
}
|
}
|
||||||
|
name_font_size := {
|
||||||
|
nl := length(card.name)-14
|
||||||
|
gv := to_number(styling.name_font_size)
|
||||||
|
if gv != 0
|
||||||
|
then gv
|
||||||
|
else if nl < 0
|
||||||
|
then 21
|
||||||
|
else if nl < 9
|
||||||
|
then 21 - nl
|
||||||
|
else
|
||||||
|
13
|
||||||
|
}
|
||||||
|
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
symbol:
|
symbol:
|
||||||
@@ -79,6 +91,10 @@ styling field:
|
|||||||
styling field:
|
styling field:
|
||||||
type: text
|
type: text
|
||||||
name: height
|
name: height
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: name font size
|
||||||
|
description: Override the font size for the token's name. Default is 21.
|
||||||
styling field:
|
styling field:
|
||||||
type: boolean
|
type: boolean
|
||||||
name: use guild mana symbols
|
name: use guild mana symbols
|
||||||
@@ -176,22 +192,18 @@ card style:
|
|||||||
visible: {styling.border_visible}
|
visible: {styling.border_visible}
|
||||||
###################C######### Name line
|
###################C######### Name line
|
||||||
name:
|
name:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 50
|
top: 25
|
||||||
else card_style.name.content_width * -0.5 + 184.5 }
|
width: {min(275, 6+20*length(card.name))}
|
||||||
top: 23
|
|
||||||
width:
|
|
||||||
{ if card_style.name.content_width > 269 then 275
|
|
||||||
else card_style.name.content_width + 6 }
|
|
||||||
height: 28
|
height: 28
|
||||||
alignment: bottom center justify-all
|
alignment: middle center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 3
|
z index: 3
|
||||||
symbol font:
|
symbol font:
|
||||||
name: magic-embossedletters
|
name: magic-embossedletters
|
||||||
size: 22
|
size: {name_font_size()}
|
||||||
alignment: bottom center
|
alignment: bottom center justify-all
|
||||||
always symbol: true
|
always symbol: true
|
||||||
############################# Image
|
############################# Image
|
||||||
image:
|
image:
|
||||||
@@ -402,22 +414,15 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||||
name box:
|
name box:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width:
|
width: {min(275, 6+20*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 275
|
|
||||||
else card_style.name.content_width + 3}
|
|
||||||
height: 35
|
height: 35
|
||||||
z index: 2
|
z index: 2
|
||||||
visible: { card.name != "" }
|
|
||||||
render style: image
|
render style: image
|
||||||
image: name-mid.png
|
image: name-mid.png
|
||||||
name box left:
|
name box left:
|
||||||
right:
|
right: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 15
|
width: 15
|
||||||
height: 35
|
height: 35
|
||||||
@@ -425,9 +430,7 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: name-left.png
|
image: name-left.png
|
||||||
name box right:
|
name box right:
|
||||||
left:
|
left: {min(325, 189.5 + 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 325
|
|
||||||
else card_style.name.content_width * 0.5 + 187.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 14
|
width: 14
|
||||||
height: 35
|
height: 35
|
||||||
|
|||||||
@@ -66,6 +66,18 @@ init script:
|
|||||||
paintbrush_color := { if font_white() then "white" else "black" }
|
paintbrush_color := { if font_white() then "white" else "black" }
|
||||||
|
|
||||||
card_shape := { "token" }
|
card_shape := { "token" }
|
||||||
|
name_font_size := {
|
||||||
|
nl := length(card.name)-14
|
||||||
|
gv := to_number(styling.name_font_size)
|
||||||
|
if gv != 0
|
||||||
|
then gv
|
||||||
|
else if nl < 0
|
||||||
|
then 21
|
||||||
|
else if nl < 9
|
||||||
|
then 21 - nl
|
||||||
|
else
|
||||||
|
13
|
||||||
|
}
|
||||||
|
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
@@ -77,6 +89,10 @@ set info style:
|
|||||||
fill color: rgb(255,255,255)
|
fill color: rgb(255,255,255)
|
||||||
border color: rgb(0,0,0)
|
border color: rgb(0,0,0)
|
||||||
############################################################## Extra style
|
############################################################## Extra style
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: name font size
|
||||||
|
description: Override the font size for the token's name. Default is 21.
|
||||||
styling field:
|
styling field:
|
||||||
type: boolean
|
type: boolean
|
||||||
name: grey hybrid typeline
|
name: grey hybrid typeline
|
||||||
@@ -174,22 +190,18 @@ card style:
|
|||||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||||
###################C######### Name line
|
###################C######### Name line
|
||||||
name:
|
name:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 50
|
top: 25
|
||||||
else card_style.name.content_width * -0.5 + 184.5 }
|
width: {min(275, 6+20*length(card.name))}
|
||||||
top: 23
|
|
||||||
width:
|
|
||||||
{ if card_style.name.content_width > 269 then 275
|
|
||||||
else card_style.name.content_width + 6 }
|
|
||||||
height: 28
|
height: 28
|
||||||
alignment: bottom center justify-all
|
alignment: middle center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 2
|
z index: 2
|
||||||
symbol font:
|
symbol font:
|
||||||
name: magic-embossedletters
|
name: magic-embossedletters
|
||||||
size: 22
|
size: {name_font_size()}
|
||||||
alignment: bottom center
|
alignment: bottom center justify-all
|
||||||
always symbol: true
|
always symbol: true
|
||||||
############################# Image
|
############################# Image
|
||||||
image:
|
image:
|
||||||
@@ -397,22 +409,15 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||||
name box:
|
name box:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width:
|
width: {min(275, 6+20*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 275
|
|
||||||
else card_style.name.content_width + 3}
|
|
||||||
height: 35
|
height: 35
|
||||||
z index: 1
|
z index: 1
|
||||||
visible: { card.name != "" }
|
|
||||||
render style: image
|
render style: image
|
||||||
image: name-mid.png
|
image: name-mid.png
|
||||||
name box left:
|
name box left:
|
||||||
right:
|
right: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 15
|
width: 15
|
||||||
height: 35
|
height: 35
|
||||||
@@ -420,9 +425,7 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: name-left.png
|
image: name-left.png
|
||||||
name box right:
|
name box right:
|
||||||
left:
|
left: {min(325, 189.5 + 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 325
|
|
||||||
else card_style.name.content_width * 0.5 + 187.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 14
|
width: 14
|
||||||
height: 35
|
height: 35
|
||||||
|
|||||||
@@ -66,6 +66,18 @@ init script:
|
|||||||
paintbrush_color := { if font_white() then "white" else "black" }
|
paintbrush_color := { if font_white() then "white" else "black" }
|
||||||
|
|
||||||
card_shape := { "token" }
|
card_shape := { "token" }
|
||||||
|
name_font_size := {
|
||||||
|
nl := length(card.name)-14
|
||||||
|
gv := to_number(styling.name_font_size)
|
||||||
|
if gv != 0
|
||||||
|
then gv
|
||||||
|
else if nl < 0
|
||||||
|
then 21
|
||||||
|
else if nl < 9
|
||||||
|
then 21 - nl
|
||||||
|
else
|
||||||
|
13
|
||||||
|
}
|
||||||
|
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
@@ -77,6 +89,10 @@ set info style:
|
|||||||
fill color: rgb(255,255,255)
|
fill color: rgb(255,255,255)
|
||||||
border color: rgb(0,0,0)
|
border color: rgb(0,0,0)
|
||||||
############################################################## Extra style
|
############################################################## Extra style
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: name font size
|
||||||
|
description: Override the font size for the token's name. Default is 21.
|
||||||
styling field:
|
styling field:
|
||||||
type: boolean
|
type: boolean
|
||||||
name: grey hybrid typeline
|
name: grey hybrid typeline
|
||||||
@@ -174,22 +190,18 @@ card style:
|
|||||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||||
###################C######### Name line
|
###################C######### Name line
|
||||||
name:
|
name:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 269 then 50
|
top: 25
|
||||||
else card_style.name.content_width * -0.5 + 184.5 }
|
width: {min(275, 6+20*length(card.name))}
|
||||||
top: 23
|
|
||||||
width:
|
|
||||||
{ if card_style.name.content_width > 269 then 275
|
|
||||||
else card_style.name.content_width + 6 }
|
|
||||||
height: 28
|
height: 28
|
||||||
alignment: bottom center justify-all
|
alignment: middle center
|
||||||
padding bottom: -2
|
padding bottom: -2
|
||||||
padding top: 2
|
padding top: 2
|
||||||
z index: 2
|
z index: 2
|
||||||
symbol font:
|
symbol font:
|
||||||
name: magic-embossedletters
|
name: magic-embossedletters
|
||||||
size: 22
|
size: {name_font_size()}
|
||||||
alignment: bottom center
|
alignment: bottom center justify-all
|
||||||
always symbol: true
|
always symbol: true
|
||||||
############################# Image
|
############################# Image
|
||||||
image:
|
image:
|
||||||
@@ -397,22 +409,15 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||||
name box:
|
name box:
|
||||||
left:
|
left: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width:
|
width: {min(275, 6+20*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 275
|
|
||||||
else card_style.name.content_width + 3}
|
|
||||||
height: 35
|
height: 35
|
||||||
z index: 1
|
z index: 1
|
||||||
visible: { card.name != "" }
|
|
||||||
render style: image
|
render style: image
|
||||||
image: name-mid.png
|
image: name-mid.png
|
||||||
name box left:
|
name box left:
|
||||||
right:
|
right: {max(50, 183.5 - 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 50
|
|
||||||
else card_style.name.content_width * -0.5 + 185.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 15
|
width: 15
|
||||||
height: 35
|
height: 35
|
||||||
@@ -420,9 +425,7 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: name-left.png
|
image: name-left.png
|
||||||
name box right:
|
name box right:
|
||||||
left:
|
left: {min(325, 189.5 + 10*length(card.name))}
|
||||||
{ if card_style.name.content_width > 275 then 325
|
|
||||||
else card_style.name.content_width * 0.5 + 187.5 }
|
|
||||||
top: 26
|
top: 26
|
||||||
width: 14
|
width: 14
|
||||||
height: 35
|
height: 35
|
||||||
|
|||||||