git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1095 0fc631ac-6414-0410-93d0-97cfa31319b6
|
After Width: | Height: | Size: 154 B |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -40,6 +40,18 @@ styling field:
|
|||||||
choice: normal
|
choice: normal
|
||||||
choice: silver
|
choice: silver
|
||||||
choice: gold
|
choice: gold
|
||||||
|
styling field:
|
||||||
|
type: boolean
|
||||||
|
name: corner stamp
|
||||||
|
description: Should there be a foil stamp in the lower right corner?
|
||||||
|
initial: yes
|
||||||
|
styling field:
|
||||||
|
type: choice
|
||||||
|
name: rules alignment
|
||||||
|
description: Should the rules text be justified? WARNING: Justification is not perfect.
|
||||||
|
initial: not justified
|
||||||
|
choice: not justified
|
||||||
|
choice: justified
|
||||||
styling style:
|
styling style:
|
||||||
foil image:
|
foil image:
|
||||||
render style: text
|
render style: text
|
||||||
@@ -120,7 +132,7 @@ card style:
|
|||||||
left: 40
|
left: 40
|
||||||
top : 74
|
top : 74
|
||||||
height: 28
|
height: 28
|
||||||
width: 280
|
width: {if is_nmonster() then 275 else 280 }
|
||||||
z index: 2
|
z index: 2
|
||||||
alignment: middle right
|
alignment: middle right
|
||||||
font:
|
font:
|
||||||
@@ -142,9 +154,9 @@ card style:
|
|||||||
z index: 1
|
z index: 1
|
||||||
############################# Card type
|
############################# Card type
|
||||||
monster type:
|
monster type:
|
||||||
left: 35
|
left: 39
|
||||||
top : 401
|
top : 401
|
||||||
width: 193
|
width: { card_style.monster_type.content_width + 6 }
|
||||||
height: 14
|
height: 14
|
||||||
alignment: middle left
|
alignment: middle left
|
||||||
z index: 2
|
z index: 2
|
||||||
@@ -160,7 +172,7 @@ card style:
|
|||||||
visible: script: if is_nmonster() then false else true
|
visible: script: if is_nmonster() then false else true
|
||||||
############################# Edition and Card ID
|
############################# Edition and Card ID
|
||||||
number:
|
number:
|
||||||
left: 200
|
left: 203
|
||||||
top : 380
|
top : 380
|
||||||
width: 115
|
width: 115
|
||||||
height: 15
|
height: 15
|
||||||
@@ -171,7 +183,7 @@ card style:
|
|||||||
size: 8
|
size: 8
|
||||||
color: rgb(0,0,0)
|
color: rgb(0,0,0)
|
||||||
edition:
|
edition:
|
||||||
left: 44
|
left: 43
|
||||||
top: 380
|
top: 380
|
||||||
width: 115
|
width: 115
|
||||||
height: 15
|
height: 15
|
||||||
@@ -182,7 +194,7 @@ card style:
|
|||||||
color: rgb(0,0,0)
|
color: rgb(0,0,0)
|
||||||
############################# Text box
|
############################# Text box
|
||||||
rule text:
|
rule text:
|
||||||
left: 34
|
left: 35
|
||||||
top :
|
top :
|
||||||
script: if is_nmonster() then 397 else 412
|
script: if is_nmonster() then 397 else 412
|
||||||
width: 289
|
width: 289
|
||||||
@@ -197,7 +209,7 @@ card style:
|
|||||||
name: yugioh-text-replacements
|
name: yugioh-text-replacements
|
||||||
alignment: middle center
|
alignment: middle center
|
||||||
size: 3.5
|
size: 3.5
|
||||||
alignment: top left
|
alignment: { if styling.rules_alignment=="justified" then "top left justify" else "top left" }
|
||||||
z index: 3
|
z index: 3
|
||||||
padding left: 1
|
padding left: 1
|
||||||
padding top: 2
|
padding top: 2
|
||||||
@@ -210,7 +222,7 @@ card style:
|
|||||||
line height line max: 1.1
|
line height line max: 1.1
|
||||||
############################# Attack/Defense
|
############################# Attack/Defense
|
||||||
attack:
|
attack:
|
||||||
left: 202
|
left: 204
|
||||||
top: 475
|
top: 475
|
||||||
width: 48
|
width: 48
|
||||||
height: 18
|
height: 18
|
||||||
@@ -228,7 +240,7 @@ card style:
|
|||||||
visible: script: if is_nmonster() then false else true
|
visible: script: if is_nmonster() then false else true
|
||||||
defense:
|
defense:
|
||||||
z index: 4
|
z index: 4
|
||||||
left: 276
|
left: 278
|
||||||
top: 475
|
top: 475
|
||||||
width: 48
|
width: 48
|
||||||
height: 18
|
height: 18
|
||||||
@@ -258,13 +270,111 @@ card style:
|
|||||||
size: 7
|
size: 7
|
||||||
color: rgb(0,0,0)
|
color: rgb(0,0,0)
|
||||||
copyright:
|
copyright:
|
||||||
left: 180
|
left: { if styling.corner_stamp=="no" then 202 else 180 }
|
||||||
top : 495
|
top : 495
|
||||||
width: 145
|
width: 145
|
||||||
height: 18
|
height: 18
|
||||||
z index: 2
|
z index: 4
|
||||||
alignment: middle right
|
alignment: middle right
|
||||||
font:
|
font:
|
||||||
name: Palatino Linotype
|
name: Palatino Linotype
|
||||||
size: 7
|
size: 7
|
||||||
color: rgb(0,0,0)
|
color: rgb(0,0,0)
|
||||||
|
############################################extra card field:
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: bar
|
||||||
|
choice: bar
|
||||||
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: leftbracket
|
||||||
|
choice: lbracket
|
||||||
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: rightbracket
|
||||||
|
choice: rbracket
|
||||||
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: text
|
||||||
|
name: atkoverlay
|
||||||
|
default: "ATK/"
|
||||||
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: text
|
||||||
|
name: defoverlay
|
||||||
|
default: "DEF/"
|
||||||
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: corner foil
|
||||||
|
choice: 1st
|
||||||
|
choice: 2nd
|
||||||
|
editable: true
|
||||||
|
extra card style:
|
||||||
|
bar:
|
||||||
|
left: 37
|
||||||
|
top : 474
|
||||||
|
height: 1
|
||||||
|
width: 288
|
||||||
|
z index: 4
|
||||||
|
render style: image list
|
||||||
|
choice images:
|
||||||
|
bar: bar.png
|
||||||
|
visible: script: if is_nmonster() then false else true
|
||||||
|
leftbracket:
|
||||||
|
left: { if is_nmonster() then (309 - card_style.level.content_width) else 35 }
|
||||||
|
top : { if is_nmonster() then 79 else 400 }
|
||||||
|
height: { if is_nmonster() then 17 else 14 }
|
||||||
|
width: { if is_nmonster() then 5 else 4 }
|
||||||
|
z index: 2
|
||||||
|
render style: image list
|
||||||
|
choice images:
|
||||||
|
lbracket: /yugioh-standard-levels.mse-symbol-font/leftbracket.png
|
||||||
|
rightbracket:
|
||||||
|
left: { if is_nmonster() then 315 else (card_style.monster_type.content_width + 40) }
|
||||||
|
top : { if is_nmonster() then 79 else 400 }
|
||||||
|
height: { if is_nmonster() then 17 else 14 }
|
||||||
|
width: { if is_nmonster() then 5 else 4 }
|
||||||
|
z index: 4
|
||||||
|
render style: image list
|
||||||
|
choice images:
|
||||||
|
rbracket: /yugioh-standard-levels.mse-symbol-font/rightbracket.png
|
||||||
|
atkoverlay:
|
||||||
|
left: 170
|
||||||
|
top: 475
|
||||||
|
width: 48
|
||||||
|
height: 18
|
||||||
|
z index: 1
|
||||||
|
alignment: right middle
|
||||||
|
font:
|
||||||
|
name: MatrixBoldSmallCaps
|
||||||
|
italic name: Matrix-Bold
|
||||||
|
size: 12
|
||||||
|
color: rgb(0,0,0)
|
||||||
|
visible: script: if is_nmonster() then false else true
|
||||||
|
defoverlay:
|
||||||
|
left: 244
|
||||||
|
top: 475
|
||||||
|
width: 48
|
||||||
|
height: 18
|
||||||
|
z index: 1
|
||||||
|
alignment: right middle
|
||||||
|
font:
|
||||||
|
name: MatrixBoldSmallCaps
|
||||||
|
italic name: Matrix-Bold
|
||||||
|
size: 12
|
||||||
|
color: rgb(0,0,0)
|
||||||
|
visible: script: if is_nmonster() then false else true
|
||||||
|
corner foil:
|
||||||
|
left: 332
|
||||||
|
top : 492
|
||||||
|
height: 20
|
||||||
|
width: 20
|
||||||
|
z index: 3
|
||||||
|
render style: image list
|
||||||
|
choice images:
|
||||||
|
1st: cornerfirst.png
|
||||||
|
2nd: cornerunlimited.png
|
||||||
|
visible: script: if styling.corner_stamp=="no" then false else true
|
||||||
|
|||||||
@@ -69,34 +69,37 @@ init script:
|
|||||||
# step 2 : surround by <i> tags
|
# step 2 : surround by <i> tags
|
||||||
{ "<i-flavor>" + input + "</i-flavor>" };
|
{ "<i-flavor>" + input + "</i-flavor>" };
|
||||||
|
|
||||||
|
type_over_list := replace_rule(match:" ?-$", replace:"")
|
||||||
|
|
||||||
|
monster_type_filter :=
|
||||||
|
tag_remove_rule(tag: "<word-list-") +
|
||||||
|
type_over_list +
|
||||||
|
{ "<word-list-monster>{input}</word-list-monster>" }
|
||||||
|
|
||||||
|
space_to_wltags := replace_rule(match:"( +|<soft> </soft>)",
|
||||||
|
replace:{"</word-list-{list_type}>{_1}<word-list-{list_type}>"})
|
||||||
|
|
||||||
|
card_class_filter :=
|
||||||
|
tag_remove_rule(tag: "<word-list-") +
|
||||||
|
type_over_list +
|
||||||
|
{ "<word-list-card>{input}</word-list-card>" }
|
||||||
|
|
||||||
# Determine type of card
|
# Determine type of card
|
||||||
card_type := {
|
card_type := {
|
||||||
if card.type2 == "Effect<sym>]</sym>" then "effect monster"
|
if card.attribute == "spell" then "spell card"
|
||||||
else if card.type2 == "Fusion<sym>]</sym>" then "fusion monster"
|
else if contains(card.level, match:"Spell Card") then "spell card"
|
||||||
else if card.type2 == "Fusion / Effect<sym>]</sym>" then "fusion monster"
|
else if card.attribute == "trap" then "trap card"
|
||||||
else if card.type2 == "Fusion/Effect<sym>]</sym>" then "fusion monster"
|
else if contains(card.level, match:"Trap Card") then "trap card"
|
||||||
else if card.type2 == "Ritual<sym>]</sym>" then "ritual monster"
|
else if card.type1 == "<word-list-monster>Divine-Beast</word-list-monster>" then "obelisk"
|
||||||
else if card.type2 == "Ritual / Effect<sym>]</sym>" then "ritual monster"
|
else if card.type1 == "<word-list-monster>Legendary Dragon</word-list-monster>" then "legendary dragons"
|
||||||
else if card.type2 == "Ritual/Effect<sym>]</sym>" then "ritual monster"
|
else if contains(card.type2, match:"Fusion") then "fusion monster"
|
||||||
else if card.type1 == "<sym>[</sym>Legendary Dragon" then "legendary dragon"
|
else if contains(card.type2, match:"Ritual") then "ritual monster"
|
||||||
else if card.type1 == "<sym>[</sym>Divine-Beast" then "obelisk"
|
else if contains(card.type2, match:"Synchro") then "synchro monster"
|
||||||
else if card.attribute == "spell" then "spell card"
|
else if contains(card.type2, match:"Effect") then "effect monster"
|
||||||
else if card.level == "<sym>[</sym>Spell Card<sym>]</sym>" then "spell card"
|
else if contains(card.type2, match:"Spirit") then "effect monster"
|
||||||
else if card.level == "<sym>[</sym>Spell Card%<sym>]</sym>" then "spell card"
|
else if contains(card.type2, match:"Toon") then "effect monster"
|
||||||
else if card.level == "<sym>[</sym>Spell Card!<sym>]</sym>" then "spell card"
|
else if contains(card.type2, match:"Union") then "effect monster"
|
||||||
else if card.level == "<sym>[</sym>Spell Card+<sym>]</sym>" then "spell card"
|
else "normal monster"
|
||||||
else if card.level == "<sym>[</sym>Spell Card&<sym>]</sym>" then "spell card"
|
|
||||||
else if card.level == "<sym>[</sym>Spell Card$<sym>]</sym>" then "spell card"
|
|
||||||
else if card.level == "<sym>[</sym>Spell Card#<sym>]</sym>" then "spell card"
|
|
||||||
else if card.attribute == "trap" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card%<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card!<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card+<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card&<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card$<sym>]</sym>" then "trap card"
|
|
||||||
else if card.level == "<sym>[</sym>Trap Card#<sym>]</sym>" then "trap card"
|
|
||||||
else "normal monster"
|
|
||||||
}
|
}
|
||||||
# Default 'attribute' of card
|
# Default 'attribute' of card
|
||||||
attribute := {
|
attribute := {
|
||||||
@@ -107,6 +110,10 @@ init script:
|
|||||||
|
|
||||||
############### Type of card
|
############### Type of card
|
||||||
|
|
||||||
|
nm_ext_querry := {
|
||||||
|
if set.gods_have_effects == "no" then is_normal_monster_extended(value)
|
||||||
|
else is_normal_monster(value)
|
||||||
|
}
|
||||||
is_nmonster := {
|
is_nmonster := {
|
||||||
card.card_type == "spell card" or
|
card.card_type == "spell card" or
|
||||||
card.card_type == "trap card"
|
card.card_type == "trap card"
|
||||||
@@ -123,13 +130,16 @@ init script:
|
|||||||
card.card_type == "ra" or
|
card.card_type == "ra" or
|
||||||
card.card_type == "legendary dragons"
|
card.card_type == "legendary dragons"
|
||||||
}
|
}
|
||||||
is_normal_monster := {
|
is_normal_monster_extended := {
|
||||||
card.card_type == "normal monster" or
|
card.card_type == "normal monster" or
|
||||||
card.card_type == "obelisk" or
|
card.card_type == "obelisk" or
|
||||||
card.card_type == "slifer" or
|
card.card_type == "slifer" or
|
||||||
card.card_type == "ra" or
|
card.card_type == "ra" or
|
||||||
card.card_type == "legendary dragons"
|
card.card_type == "legendary dragons"
|
||||||
}
|
}
|
||||||
|
is_normal_monster := {
|
||||||
|
card.card_type == "normal monster"
|
||||||
|
}
|
||||||
is_spell_card := {
|
is_spell_card := {
|
||||||
card.card_type == "spell card" or
|
card.card_type == "spell card" or
|
||||||
card.attribute == "spell" or
|
card.attribute == "spell" or
|
||||||
@@ -197,6 +207,11 @@ set field:
|
|||||||
type: text
|
type: text
|
||||||
name: copyright
|
name: copyright
|
||||||
description: Copyright information. This will not appear on the card.
|
description: Copyright information. This will not appear on the card.
|
||||||
|
set field:
|
||||||
|
type: boolean
|
||||||
|
name: gods have effects
|
||||||
|
description: Should god cards have effects?
|
||||||
|
initial: yes
|
||||||
############################# Default style
|
############################# Default style
|
||||||
default set style:
|
default set style:
|
||||||
title:
|
title:
|
||||||
@@ -281,14 +296,19 @@ card field:
|
|||||||
card field:
|
card field:
|
||||||
type: text
|
type: text
|
||||||
name: type1
|
name: type1
|
||||||
script: a_and_d_filter(value)
|
script: monster_type_filter(value)
|
||||||
default: "<sym>[</sym>"
|
default: " "
|
||||||
|
editable: false
|
||||||
|
card field:
|
||||||
|
type: text
|
||||||
|
name: separator
|
||||||
|
script: if nm_ext_querry(value) then " " else " / "
|
||||||
|
show statistics: false
|
||||||
editable: false
|
editable: false
|
||||||
card field:
|
card field:
|
||||||
type: text
|
type: text
|
||||||
name: type2
|
name: type2
|
||||||
script: a_and_d_filter(value)
|
script: card_class_filter(value)
|
||||||
default: "<sym>]</sym>"
|
|
||||||
editable: false
|
editable: false
|
||||||
card field:
|
card field:
|
||||||
type: text
|
type: text
|
||||||
@@ -297,10 +317,10 @@ card field:
|
|||||||
# Either just monster, monster / type1
|
# Either just monster, monster / type1
|
||||||
combined_editor(
|
combined_editor(
|
||||||
field1: card.type1,
|
field1: card.type1,
|
||||||
separator: " / ",
|
separator: card.separator,
|
||||||
field2: card.type2,
|
field2: card.type2,
|
||||||
soft_before_empty: true,
|
soft_before_empty: true,
|
||||||
hide_when_empty: true,
|
hide_when_empty: true,
|
||||||
type_over1: " /",
|
type_over1: " /",
|
||||||
type_over2: "/"
|
type_over2: "/"
|
||||||
)
|
)
|
||||||
@@ -336,23 +356,16 @@ card field:
|
|||||||
script: text_filter(value)
|
script: text_filter(value)
|
||||||
editable: false
|
editable: false
|
||||||
show statistics: false
|
show statistics: false
|
||||||
card field:
|
|
||||||
type: text
|
|
||||||
name: flavor
|
|
||||||
script: flavor_text_filter(value)
|
|
||||||
editable: false
|
|
||||||
show statistics: false
|
|
||||||
card field:
|
card field:
|
||||||
type: text
|
type: text
|
||||||
name: rule text
|
name: rule text
|
||||||
multi line: true
|
multi line: true
|
||||||
save value: false
|
save value: true
|
||||||
show statistics: false
|
show statistics: false
|
||||||
script:
|
script:
|
||||||
if is_normal_monster(value) then
|
if nm_ext_querry(value) then flavor_text_filter(value)
|
||||||
combined_editor(field1: card.rules, separator: "<line>\n</>", field2: card.flavor)
|
else text_filter(value)
|
||||||
else
|
default: card.rules
|
||||||
forward_editor(field: card.rules)
|
|
||||||
############################# Attack/Defense
|
############################# Attack/Defense
|
||||||
card field:
|
card field:
|
||||||
type: text
|
type: text
|
||||||
@@ -386,34 +399,37 @@ card field:
|
|||||||
show statistics: false
|
show statistics: false
|
||||||
|
|
||||||
############################################################## Word lists
|
############################################################## Word lists
|
||||||
# Doesn't do anything yet
|
|
||||||
#word list:
|
word list:
|
||||||
# name: type
|
name: monster
|
||||||
# word: Dragon
|
word: Aqua
|
||||||
# word: Spellcaster
|
word: Beast
|
||||||
# word: Zombie
|
word: Beast-Warrior
|
||||||
# word: Warrior
|
word: Dinosaur
|
||||||
# word: Beast-Warrior
|
word: Divine-Beast
|
||||||
# word: Beast
|
word: Dragon
|
||||||
# word: Winged Beast
|
word: Fairy
|
||||||
# word: Fiend
|
word: Fiend
|
||||||
# word: Fiary
|
word: Fish
|
||||||
# word: Insect
|
word: Insect
|
||||||
# word: Dinosaur
|
word: Legendary Dragon
|
||||||
# word: Reptile
|
word: Machine
|
||||||
# word: Fish
|
word: Plant
|
||||||
# word: Sea Serpent
|
word: Pyro
|
||||||
# word: Machine
|
word: Reptile
|
||||||
# word: Thunder
|
word: Rock
|
||||||
# word: Aqua
|
word: Sea Serpent
|
||||||
# word: Pyro
|
word: Spellcaster
|
||||||
# word: Rock
|
word: Thunder
|
||||||
# word: Plant
|
word: Warrior
|
||||||
# word: Divine-Beast
|
word: Winged Beast
|
||||||
# word: Toon
|
word: Zombie
|
||||||
# word: Spirit
|
word list:
|
||||||
# word: Union
|
name: card
|
||||||
# word: Effect
|
word: Effect
|
||||||
# word: Fusion
|
word: Fusion
|
||||||
# word: Ritual
|
word: Ritual
|
||||||
# word: Divine
|
word: Spirit
|
||||||
|
word: Synchro
|
||||||
|
word: Toon
|
||||||
|
word: Union
|
||||||