Commit 65c05bde authored by pichoro's avatar pichoro

Changed symbol font to work on unused keyboard characters instead of letters.

Changed level line to allow text.
Changed level line and type line to have Matrix as italic form to allow squared brackets instead of round brackets.
parent 2a942840
...@@ -4,24 +4,24 @@ mse version: 0.3.1 ...@@ -4,24 +4,24 @@ mse version: 0.3.1
image font size: 16 image font size: 16
horizontal space: 2 horizontal space: 2
symbol: symbol:
code: c code: %
image: continuous.png image: continuous.png
symbol: symbol:
code: t code: !
image: counter.png image: counter.png
symbol: symbol:
code: e code: +
image: equipment.png image: equipment.png
symbol: symbol:
code: f code: &
image: field.png image: field.png
symbol: symbol:
code: q code: $
image: quickplay.png image: quickplay.png
symbol: symbol:
code: r code: #
image: ritual.png image: ritual.png
symbol: symbol:
code: s code: *
image: star.png image: star.png
image font size: 25 image font size: 14
\ No newline at end of file \ No newline at end of file
...@@ -58,7 +58,7 @@ card style: ...@@ -58,7 +58,7 @@ card style:
z index: 2 z index: 2
font: font:
name: MatrixBoldSmallCaps name: MatrixBoldSmallCaps
size: 26 size: 24
color: color:
script: if is_nmonster() then rgb(255,255,255) script: if is_nmonster() then rgb(255,255,255)
else rgb(0,0,0) else rgb(0,0,0)
...@@ -87,11 +87,16 @@ card style: ...@@ -87,11 +87,16 @@ card style:
width: 285 width: 285
z index: 2 z index: 2
alignment: middle right alignment: middle right
always symbol: true font:
name: MatrixBoldSmallCaps
italic name: Matrix
scale down to: 12
size: 12
color: rgb(0,0,0)
symbol font: symbol font:
name: yugioh-standard-levels name: yugioh-standard-levels
size: 12
alignment: middle center alignment: middle center
size: 8
############################# Image ############################# Image
image: image:
...@@ -112,6 +117,7 @@ card style: ...@@ -112,6 +117,7 @@ card style:
z index: 2 z index: 2
font: font:
name: MatrixBoldSmallCaps name: MatrixBoldSmallCaps
italic name: Matrix
size: 12 size: 12
color: rgb(0,0,0) color: rgb(0,0,0)
visible: script: if is_nmonster() then false else true visible: script: if is_nmonster() then false else true
......
...@@ -7,7 +7,7 @@ icon: card-back.png ...@@ -7,7 +7,7 @@ icon: card-back.png
# General functions # General functions
init script: init script:
# level codes # level codes
level_filter := to_lower + sort_rule(order: "[ctefqrs]") level_sort := sort_rule(order: "%!+&$#*")
# the rule text filter # the rule text filter
# - adds continuous symbols # - adds continuous symbols
# - adds counter symbols # - adds counter symbols
...@@ -21,15 +21,23 @@ init script: ...@@ -21,15 +21,23 @@ init script:
# step 1 : remove all automatic tags # step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") + tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") + tag_remove_rule(tag: "<i-auto>") +
# step 2 : symbols # step 2 : fill in atom fields
replace_rule(
match: "cn|ct|eq|fd|qp|ri|lv",
replace: {"<sym-auto>&</sym-auto>"} ) +
# step 3 : fill in atom fields
tag_contents_rule( tag_contents_rule(
tag: "<atom-cardname>", tag: "<atom-cardname>",
contents: { if card.name=="" then "CARDNAME" else card.name } contents: { if card.name=="" then "CARDNAME" else card.name }
) ) +
# step 3a : explict non symbols
replace_rule(
match: "\\][%!+&$#*]+\\[",
replace: {"<nosym>" +level_sort() + "</nosym>"} ) +
# step 3b : add symbols
replace_rule(
match: "[%!+&$#*]+",
replace: {"<sym-auto>" + level_sort() + "</sym-auto>"} ) +
# step 3c : add explict symbols
replace_rule(
match: "\\[[%!+&$#*]+\\]",
replace: {"<sym>" + level_sort() + "</sym>"} );
# the flavor text filter # the flavor text filter
flavor_text_filter := flavor_text_filter :=
...@@ -165,8 +173,8 @@ card field: ...@@ -165,8 +173,8 @@ card field:
card field: card field:
type: text type: text
name: level name: level
description: Level, s = star, c = continuous, t = counter, e = equipment, f = field, q = quickplay, r = ritual description: Level, * = star, % = continuous, ! = counter, + = equipment, & = field, $ = quickplay, # = ritual
script: level_filter(value) script: text_filter(value)
############################# Image ############################# Image
card field: card field:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment