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
|
||||
|
||||
image font size: 46
|
||||
horizontal space: 1.2
|
||||
horizontal space: 1.5
|
||||
symbol:
|
||||
code: Æ
|
||||
image: ae.png
|
||||
@@ -15,9 +15,36 @@ symbol:
|
||||
symbol:
|
||||
code: ,
|
||||
image: comma.png
|
||||
symbol:
|
||||
code: .
|
||||
image: period.png
|
||||
symbol:
|
||||
code: -
|
||||
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:
|
||||
code: A
|
||||
image: a.png
|
||||
@@ -42,6 +69,30 @@ symbol:
|
||||
symbol:
|
||||
code: d
|
||||
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:
|
||||
code: E
|
||||
image: e.png
|
||||
@@ -66,6 +117,30 @@ symbol:
|
||||
symbol:
|
||||
code: h
|
||||
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:
|
||||
code: I
|
||||
image: i.png
|
||||
@@ -102,6 +177,30 @@ symbol:
|
||||
symbol:
|
||||
code: n
|
||||
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:
|
||||
code: O
|
||||
image: o.png
|
||||
@@ -138,6 +237,30 @@ symbol:
|
||||
symbol:
|
||||
code: t
|
||||
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:
|
||||
code: U
|
||||
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
|
||||
###################C######### Name line
|
||||
super type:
|
||||
left:
|
||||
{ if card_style.super_type.content_width > 269 then 50
|
||||
else card_style.super_type.content_width * -0.5 + 184.5 }
|
||||
left: {max(50, 183.5 - 10*length(remove_tags(card.super_type)))}
|
||||
top: 25
|
||||
width:
|
||||
{ if card_style.super_type.content_width > 269 then 275
|
||||
else card_style.super_type.content_width + 6 }
|
||||
width: {min(275, 6+20*length(remove_tags(card.super_type)))}
|
||||
height: 28
|
||||
alignment: bottom center justify-all
|
||||
alignment: bottom center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 4
|
||||
@@ -153,15 +149,11 @@ card style:
|
||||
alignment: bottom center
|
||||
always symbol: true
|
||||
name:
|
||||
left:
|
||||
{ if card_style.name.content_width > 269 then 50
|
||||
else card_style.name.content_width * -0.5 + 184.5 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 46
|
||||
width:
|
||||
{ if card_style.name.content_width > 269 then 275
|
||||
else card_style.name.content_width + 6 }
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 20
|
||||
alignment: bottom center justify-all
|
||||
alignment: bottom center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 4
|
||||
|
||||
@@ -124,7 +124,19 @@ init script:
|
||||
)
|
||||
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 style:
|
||||
symbol:
|
||||
@@ -135,6 +147,10 @@ set info style:
|
||||
fill color: rgb(255,255,255)
|
||||
border color: rgb(0,0,0)
|
||||
############################################################## 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:
|
||||
type: boolean
|
||||
name: grey hybrid typeline
|
||||
@@ -248,22 +264,18 @@ card style:
|
||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||
###################C######### Name line
|
||||
name:
|
||||
left:
|
||||
{ if card_style.name.content_width > 269 then 50
|
||||
else card_style.name.content_width * -0.5 + 184.5 }
|
||||
top: 23
|
||||
width:
|
||||
{ if card_style.name.content_width > 269 then 275
|
||||
else card_style.name.content_width + 6 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 25
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 28
|
||||
alignment: bottom center justify-all
|
||||
alignment: middle center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 3
|
||||
symbol font:
|
||||
name: magic-embossedletters
|
||||
size: 22
|
||||
alignment: bottom center
|
||||
size: {name_font_size()}
|
||||
alignment: bottom center justify-all
|
||||
always symbol: true
|
||||
############################# Image
|
||||
image:
|
||||
@@ -450,22 +462,15 @@ extra card style:
|
||||
render style: image
|
||||
image: { card_ptbox() }
|
||||
name box:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width:
|
||||
{ if card_style.name.content_width > 275 then 275
|
||||
else card_style.name.content_width + 3}
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 35
|
||||
z index: 2
|
||||
visible: { card.name != "" }
|
||||
render style: image
|
||||
image: /magic-new-token.mse-style/name-mid.png
|
||||
name box left:
|
||||
right:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
right: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width: 15
|
||||
height: 35
|
||||
@@ -473,9 +478,7 @@ extra card style:
|
||||
render style: image
|
||||
image: /magic-new-token.mse-style/name-left.png
|
||||
name box right:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 325
|
||||
else card_style.name.content_width * 0.5 + 187.5 }
|
||||
left: {min(325, 189.5 + 10*length(card.name))}
|
||||
top: 26
|
||||
width: 14
|
||||
height: 35
|
||||
|
||||
@@ -56,7 +56,19 @@ init script:
|
||||
else if styling.frame_opacity > 100 then 1
|
||||
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 style:
|
||||
symbol:
|
||||
@@ -79,6 +91,10 @@ styling field:
|
||||
styling field:
|
||||
type: text
|
||||
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:
|
||||
type: boolean
|
||||
name: use guild mana symbols
|
||||
@@ -176,22 +192,18 @@ card style:
|
||||
visible: {styling.border_visible}
|
||||
###################C######### Name line
|
||||
name:
|
||||
left:
|
||||
{ if card_style.name.content_width > 269 then 50
|
||||
else card_style.name.content_width * -0.5 + 184.5 }
|
||||
top: 23
|
||||
width:
|
||||
{ if card_style.name.content_width > 269 then 275
|
||||
else card_style.name.content_width + 6 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 25
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 28
|
||||
alignment: bottom center justify-all
|
||||
alignment: middle center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 3
|
||||
symbol font:
|
||||
name: magic-embossedletters
|
||||
size: 22
|
||||
alignment: bottom center
|
||||
size: {name_font_size()}
|
||||
alignment: bottom center justify-all
|
||||
always symbol: true
|
||||
############################# Image
|
||||
image:
|
||||
@@ -402,22 +414,15 @@ extra card style:
|
||||
render style: image
|
||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||
name box:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width:
|
||||
{ if card_style.name.content_width > 275 then 275
|
||||
else card_style.name.content_width + 3}
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 35
|
||||
z index: 2
|
||||
visible: { card.name != "" }
|
||||
render style: image
|
||||
image: name-mid.png
|
||||
name box left:
|
||||
right:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
right: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width: 15
|
||||
height: 35
|
||||
@@ -425,9 +430,7 @@ extra card style:
|
||||
render style: image
|
||||
image: name-left.png
|
||||
name box right:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 325
|
||||
else card_style.name.content_width * 0.5 + 187.5 }
|
||||
left: {min(325, 189.5 + 10*length(card.name))}
|
||||
top: 26
|
||||
width: 14
|
||||
height: 35
|
||||
|
||||
@@ -66,6 +66,18 @@ init script:
|
||||
paintbrush_color := { if font_white() then "white" else "black" }
|
||||
|
||||
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 style:
|
||||
@@ -77,6 +89,10 @@ set info style:
|
||||
fill color: rgb(255,255,255)
|
||||
border color: rgb(0,0,0)
|
||||
############################################################## 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:
|
||||
type: boolean
|
||||
name: grey hybrid typeline
|
||||
@@ -174,22 +190,18 @@ card style:
|
||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||
###################C######### Name line
|
||||
name:
|
||||
left:
|
||||
{ if card_style.name.content_width > 269 then 50
|
||||
else card_style.name.content_width * -0.5 + 184.5 }
|
||||
top: 23
|
||||
width:
|
||||
{ if card_style.name.content_width > 269 then 275
|
||||
else card_style.name.content_width + 6 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 25
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 28
|
||||
alignment: bottom center justify-all
|
||||
alignment: middle center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 2
|
||||
symbol font:
|
||||
name: magic-embossedletters
|
||||
size: 22
|
||||
alignment: bottom center
|
||||
size: {name_font_size()}
|
||||
alignment: bottom center justify-all
|
||||
always symbol: true
|
||||
############################# Image
|
||||
image:
|
||||
@@ -397,22 +409,15 @@ extra card style:
|
||||
render style: image
|
||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||
name box:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width:
|
||||
{ if card_style.name.content_width > 275 then 275
|
||||
else card_style.name.content_width + 3}
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 35
|
||||
z index: 1
|
||||
visible: { card.name != "" }
|
||||
render style: image
|
||||
image: name-mid.png
|
||||
name box left:
|
||||
right:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
right: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width: 15
|
||||
height: 35
|
||||
@@ -420,9 +425,7 @@ extra card style:
|
||||
render style: image
|
||||
image: name-left.png
|
||||
name box right:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 325
|
||||
else card_style.name.content_width * 0.5 + 187.5 }
|
||||
left: {min(325, 189.5 + 10*length(card.name))}
|
||||
top: 26
|
||||
width: 14
|
||||
height: 35
|
||||
|
||||
@@ -66,6 +66,18 @@ init script:
|
||||
paintbrush_color := { if font_white() then "white" else "black" }
|
||||
|
||||
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 style:
|
||||
@@ -77,6 +89,10 @@ set info style:
|
||||
fill color: rgb(255,255,255)
|
||||
border color: rgb(0,0,0)
|
||||
############################################################## 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:
|
||||
type: boolean
|
||||
name: grey hybrid typeline
|
||||
@@ -174,22 +190,18 @@ card style:
|
||||
image: { color_background(type:"card" + text_shape(), base_hybrid:card_hybrid) }
|
||||
###################C######### Name line
|
||||
name:
|
||||
left:
|
||||
{ if card_style.name.content_width > 269 then 50
|
||||
else card_style.name.content_width * -0.5 + 184.5 }
|
||||
top: 23
|
||||
width:
|
||||
{ if card_style.name.content_width > 269 then 275
|
||||
else card_style.name.content_width + 6 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 25
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 28
|
||||
alignment: bottom center justify-all
|
||||
alignment: middle center
|
||||
padding bottom: -2
|
||||
padding top: 2
|
||||
z index: 2
|
||||
symbol font:
|
||||
name: magic-embossedletters
|
||||
size: 22
|
||||
alignment: bottom center
|
||||
size: {name_font_size()}
|
||||
alignment: bottom center justify-all
|
||||
always symbol: true
|
||||
############################# Image
|
||||
image:
|
||||
@@ -397,22 +409,15 @@ extra card style:
|
||||
render style: image
|
||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||
name box:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
left: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width:
|
||||
{ if card_style.name.content_width > 275 then 275
|
||||
else card_style.name.content_width + 3}
|
||||
width: {min(275, 6+20*length(card.name))}
|
||||
height: 35
|
||||
z index: 1
|
||||
visible: { card.name != "" }
|
||||
render style: image
|
||||
image: name-mid.png
|
||||
name box left:
|
||||
right:
|
||||
{ if card_style.name.content_width > 275 then 50
|
||||
else card_style.name.content_width * -0.5 + 185.5 }
|
||||
right: {max(50, 183.5 - 10*length(card.name))}
|
||||
top: 26
|
||||
width: 15
|
||||
height: 35
|
||||
@@ -420,9 +425,7 @@ extra card style:
|
||||
render style: image
|
||||
image: name-left.png
|
||||
name box right:
|
||||
left:
|
||||
{ if card_style.name.content_width > 275 then 325
|
||||
else card_style.name.content_width * 0.5 + 187.5 }
|
||||
left: {min(325, 189.5 + 10*length(card.name))}
|
||||
top: 26
|
||||
width: 14
|
||||
height: 35
|
||||
|
||||