mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@290 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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
|
||||
image font size: 14
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user