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
image font size: 16
horizontal space: 2
symbol:
code: c
code: %
image: continuous.png
symbol:
code: t
code: !
image: counter.png
symbol:
code: e
code: +
image: equipment.png
symbol:
code: f
code: &
image: field.png
symbol:
code: q
code: $
image: quickplay.png
symbol:
code: r
code: #
image: ritual.png
symbol:
code: s
code: *
image: star.png
image font size: 25
\ No newline at end of file
image font size: 14
\ No newline at end of file
......@@ -58,7 +58,7 @@ card style:
z index: 2
font:
name: MatrixBoldSmallCaps
size: 26
size: 24
color:
script: if is_nmonster() then rgb(255,255,255)
else rgb(0,0,0)
......@@ -87,11 +87,16 @@ card style:
width: 285
z index: 2
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:
name: yugioh-standard-levels
size: 12
alignment: middle center
size: 8
############################# Image
image:
......@@ -112,6 +117,7 @@ card style:
z index: 2
font:
name: MatrixBoldSmallCaps
italic name: Matrix
size: 12
color: rgb(0,0,0)
visible: script: if is_nmonster() then false else true
......
......@@ -7,7 +7,7 @@ icon: card-back.png
# General functions
init script:
# level codes
level_filter := to_lower + sort_rule(order: "[ctefqrs]")
level_sort := sort_rule(order: "%!+&$#*")
# the rule text filter
# - adds continuous symbols
# - adds counter symbols
......@@ -21,15 +21,23 @@ init script:
# step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") +
# step 2 : symbols
replace_rule(
match: "cn|ct|eq|fd|qp|ri|lv",
replace: {"<sym-auto>&</sym-auto>"} ) +
# step 3 : fill in atom fields
# step 2 : fill in atom fields
tag_contents_rule(
tag: "<atom-cardname>",
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
flavor_text_filter :=
......@@ -165,8 +173,8 @@ card field:
card field:
type: text
name: level
description: Level, s = star, c = continuous, t = counter, e = equipment, f = field, q = quickplay, r = ritual
script: level_filter(value)
description: Level, * = star, % = continuous, ! = counter, + = equipment, & = field, $ = quickplay, # = ritual
script: text_filter(value)
############################# Image
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