mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Automated color for futureshift type symbols.
Added automatic default choice for futureshift type symbols. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@672 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -77,6 +77,41 @@ init script:
|
|||||||
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
|
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
|
||||||
else "white"
|
else "white"
|
||||||
}
|
}
|
||||||
|
typesymbol_color:= { if contains(card.card_color, match:"artifact") then "black"
|
||||||
|
else if card.card_color == "multicolor" then "white"
|
||||||
|
else if card.card_color == "white" then "black"
|
||||||
|
else if contains(card.card_color, match:"land") then (
|
||||||
|
if contains(card.card_color, match:"green") then "white"
|
||||||
|
else if contains(card.card_color, match:"red") then "white"
|
||||||
|
else if contains(card.card_color, match:"black") then "white"
|
||||||
|
else if contains(card.card_color, match:"blue") then "white"
|
||||||
|
else "black"
|
||||||
|
) else if card.card_color == "colorless" then "black"
|
||||||
|
else "white"
|
||||||
|
}
|
||||||
|
|
||||||
|
typesymbol_type:= { if contains(card.type, match:"Tribal") then "multitype"
|
||||||
|
else if contains(card.type, match:"Sorcery") then "sorcery"
|
||||||
|
else if contains(card.type, match:"Instant") then "instant"
|
||||||
|
else if contains(card.type, match:"Planeswalker") then "multitype"
|
||||||
|
else if contains(card.type, match:"Creature") and
|
||||||
|
not contains(card.type, match:"Land") and
|
||||||
|
not contains(card.type, match:"Artifact") and
|
||||||
|
not contains(card.type, match:"Enchantment") then "creature"
|
||||||
|
else if contains(card.type, match:"Artifact") and
|
||||||
|
not contains(card.type, match:"Land") and
|
||||||
|
not contains(card.type, match:"Creature") and
|
||||||
|
not contains(card.type, match:"Enchantment") then "artifact"
|
||||||
|
else if contains(card.type, match:"Land") and
|
||||||
|
not contains(card.type, match:"Creature") and
|
||||||
|
not contains(card.type, match:"Artifact") and
|
||||||
|
not contains(card.type, match:"Enchantment") then "land"
|
||||||
|
else if contains(card.type, match:"Enchantment") and
|
||||||
|
not contains(card.type, match:"Land") and
|
||||||
|
not contains(card.type, match:"Artifact") and
|
||||||
|
not contains(card.type, match:"Creature") then "enchantment"
|
||||||
|
else "multitype"
|
||||||
|
}
|
||||||
|
|
||||||
card_shape := { "shifted" }
|
card_shape := { "shifted" }
|
||||||
|
|
||||||
@@ -345,24 +380,14 @@ extra card field:
|
|||||||
extra card field:
|
extra card field:
|
||||||
type: choice
|
type: choice
|
||||||
name: type symbol
|
name: type symbol
|
||||||
choice:
|
default: typesymbol_type()
|
||||||
name: white
|
choice: artifact
|
||||||
choice: artifact
|
choice: creature
|
||||||
choice: creature
|
choice: enchantment
|
||||||
choice: enchantment
|
choice: instant
|
||||||
choice: instant
|
choice: land
|
||||||
choice: land
|
choice: multitype
|
||||||
choice: multitype
|
choice: sorcery
|
||||||
choice: sorcery
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
choice: artifact
|
|
||||||
choice: creature
|
|
||||||
choice: enchantment
|
|
||||||
choice: instant
|
|
||||||
choice: land
|
|
||||||
choice: multitype
|
|
||||||
choice: sorcery
|
|
||||||
extra card field:
|
extra card field:
|
||||||
type: choice
|
type: choice
|
||||||
name: paintbrush
|
name: paintbrush
|
||||||
@@ -370,7 +395,6 @@ extra card field:
|
|||||||
editable: false
|
editable: false
|
||||||
choice: black
|
choice: black
|
||||||
choice: white
|
choice: white
|
||||||
|
|
||||||
extra card style:
|
extra card style:
|
||||||
pt box:
|
pt box:
|
||||||
right: 357
|
right: 357
|
||||||
@@ -390,20 +414,13 @@ extra card style:
|
|||||||
z index: 2
|
z index: 2
|
||||||
render style: image
|
render style: image
|
||||||
choice images:
|
choice images:
|
||||||
white artifact: /magic-future-common.mse-include/artifact_white.png
|
artifact: { "/magic-future-common.mse-include/artifact_" + typesymbol_color(value) + ".png" }
|
||||||
black artifact: /magic-future-common.mse-include/artifact_black.png
|
creature: { "/magic-future-common.mse-include/creature_" + typesymbol_color(value) + ".png" }
|
||||||
white creature: /magic-future-common.mse-include/creature_white.png
|
enchantment: { "/magic-future-common.mse-include/enchantment_" + typesymbol_color(value) + ".png" }
|
||||||
black creature: /magic-future-common.mse-include/creature_black.png
|
instant: { "/magic-future-common.mse-include/instant_" + typesymbol_color(value) + ".png" }
|
||||||
white enchantment: /magic-future-common.mse-include/enchantment_white.png
|
land: { "/magic-future-common.mse-include/land_" + typesymbol_color(value) + ".png" }
|
||||||
black enchantment: /magic-future-common.mse-include/enchantment_black.png
|
multitype: { "/magic-future-common.mse-include/multitype_" + typesymbol_color(value) + ".png" }
|
||||||
white instant: /magic-future-common.mse-include/instant_white.png
|
sorcery: { "/magic-future-common.mse-include/sorcery_" + typesymbol_color(value) + ".png" }
|
||||||
black instant: /magic-future-common.mse-include/instant_black.png
|
|
||||||
white land: /magic-future-common.mse-include/land_white.png
|
|
||||||
black land: /magic-future-common.mse-include/land_black.png
|
|
||||||
white multitype: /magic-future-common.mse-include/multitype_white.png
|
|
||||||
black multitype: /magic-future-common.mse-include/multitype_black.png
|
|
||||||
white sorcery: /magic-future-common.mse-include/sorcery_white.png
|
|
||||||
black sorcery: /magic-future-common.mse-include/sorcery_black.png
|
|
||||||
paintbrush:
|
paintbrush:
|
||||||
right: { ( if card.pt != "" then 281 else 341 ) - card_style.illustrator.content_width }
|
right: { ( if card.pt != "" then 281 else 341 ) - card_style.illustrator.content_width }
|
||||||
top : 479
|
top : 479
|
||||||
|
|||||||
@@ -108,42 +108,41 @@ init script:
|
|||||||
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
|
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
|
||||||
else "white"
|
else "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
typesymbol_color:= { if contains(card.card_color, match:"artifact") then "black"
|
typesymbol_color:= { if contains(card.card_color, match:"artifact") then "black"
|
||||||
else if card.card_color == "multicolor" then "black"
|
else if card.card_color == "multicolor" then "white"
|
||||||
else if card.card_color == "white" then "black"
|
else if card.card_color == "white" then "black"
|
||||||
else if card.card_color == "land" then (
|
else if contains(card.card_color, match:"land") then (
|
||||||
if contains(card.card_color, match:"black") or
|
if contains(card.card_color, match:"green") then "white"
|
||||||
contains(card.card_color, match:"blue") or
|
else if contains(card.card_color, match:"red") then "white"
|
||||||
contains(card.card_color, match:"red") or
|
else if contains(card.card_color, match:"black") then "white"
|
||||||
contains(card.card_color, match:"green") then "white"
|
else if contains(card.card_color, match:"blue") then "white"
|
||||||
else "black"
|
else "black"
|
||||||
) else "white"
|
) else if card.card_color == "colorless" then "black"
|
||||||
|
else "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
#Use of "Enchant" rather than "Enchantment" below is intentional, to allow functionality for users who wish to use "Enchant Creature" and the like.
|
typesymbol_type:= { if contains(card.type, match:"Tribal") then "multitype"
|
||||||
typesymbol_type:= { if contains(card.type, match:"Instant") then "instant"
|
|
||||||
else if contains(card.type, match:"Sorcery") then "sorcery"
|
else if contains(card.type, match:"Sorcery") then "sorcery"
|
||||||
else if contains(card.type, match:"Tribal") then "multitype"
|
else if contains(card.type, match:"Instant") then "instant"
|
||||||
else if contains(card.type, match:"Planeswalker") then "multitype"
|
else if contains(card.type, match:"Planeswalker") then "multitype"
|
||||||
else if contains(card.type, match:"Creature") and
|
else if contains(card.type, match:"Creature") and
|
||||||
not contains(card.type, match:"Land") and
|
not contains(card.type, match:"Land") and
|
||||||
not contains(card.type, match:"Artifact") and
|
not contains(card.type, match:"Artifact") and
|
||||||
not contains(card.type, match:"Enchant") then "creature"
|
not contains(card.type, match:"Enchantment") then "creature"
|
||||||
else if contains(card.type, match:"Artifact") and
|
else if contains(card.type, match:"Artifact") and
|
||||||
not contains(card.type, match:"Land") and
|
not contains(card.type, match:"Land") and
|
||||||
not contains(card.type, match:"Creature") and
|
not contains(card.type, match:"Creature") and
|
||||||
not contains(card.type, match:"Enchant") then "artifact"
|
not contains(card.type, match:"Enchantment") then "artifact"
|
||||||
else if contains(card.type, match:"Land") and
|
else if contains(card.type, match:"Land") and
|
||||||
not contains(card.type, match:"Creature") and
|
not contains(card.type, match:"Creature") and
|
||||||
not contains(card.type, match:"Artifact") and
|
not contains(card.type, match:"Artifact") and
|
||||||
not contains(card.type, match:"Enchant") then "land"
|
not contains(card.type, match:"Enchantment") then "land"
|
||||||
else if contains(card.type, match:"Enchant") and
|
else if contains(card.type, match:"Enchantment") and
|
||||||
not contains(card.type, match:"Land") and
|
not contains(card.type, match:"Land") and
|
||||||
not contains(card.type, match:"Artifact") and
|
not contains(card.type, match:"Artifact") and
|
||||||
not contains(card.type, match:"Creature") then "enchantment"
|
not contains(card.type, match:"Creature") then "enchantment"
|
||||||
else "multitype"
|
else "multitype"
|
||||||
}
|
}
|
||||||
|
|
||||||
card_shape := { "shifted" }
|
card_shape := { "shifted" }
|
||||||
|
|
||||||
@@ -489,24 +488,14 @@ extra card field:
|
|||||||
extra card field:
|
extra card field:
|
||||||
type: choice
|
type: choice
|
||||||
name: type symbol
|
name: type symbol
|
||||||
choice:
|
default: typesymbol_type(value)
|
||||||
name: white
|
choice: artifact
|
||||||
choice: artifact
|
choice: creature
|
||||||
choice: creature
|
choice: enchantment
|
||||||
choice: enchantment
|
choice: instant
|
||||||
choice: instant
|
choice: land
|
||||||
choice: land
|
choice: multitype
|
||||||
choice: multitype
|
choice: sorcery
|
||||||
choice: sorcery
|
|
||||||
choice:
|
|
||||||
name: black
|
|
||||||
choice: artifact
|
|
||||||
choice: creature
|
|
||||||
choice: enchantment
|
|
||||||
choice: instant
|
|
||||||
choice: land
|
|
||||||
choice: multitype
|
|
||||||
choice: sorcery
|
|
||||||
extra card field:
|
extra card field:
|
||||||
type: choice
|
type: choice
|
||||||
name: paintbrush
|
name: paintbrush
|
||||||
@@ -514,7 +503,6 @@ extra card field:
|
|||||||
editable: false
|
editable: false
|
||||||
choice: black
|
choice: black
|
||||||
choice: white
|
choice: white
|
||||||
|
|
||||||
extra card style:
|
extra card style:
|
||||||
textbox:
|
textbox:
|
||||||
left: 23
|
left: 23
|
||||||
@@ -551,20 +539,13 @@ extra card style:
|
|||||||
z index: 4
|
z index: 4
|
||||||
render style: image
|
render style: image
|
||||||
choice images:
|
choice images:
|
||||||
white artifact: /magic-future-common.mse-include/artifact_white.png
|
artifact: { "/magic-future-common.mse-include/artifact_" + typesymbol_color(value) + ".png" }
|
||||||
black artifact: /magic-future-common.mse-include/artifact_black.png
|
creature: { "/magic-future-common.mse-include/creature_" + typesymbol_color(value) + ".png" }
|
||||||
white creature: /magic-future-common.mse-include/creature_white.png
|
enchantment: { "/magic-future-common.mse-include/enchantment_" + typesymbol_color(value) + ".png" }
|
||||||
black creature: /magic-future-common.mse-include/creature_black.png
|
instant: { "/magic-future-common.mse-include/instant_" + typesymbol_color(value) + ".png" }
|
||||||
white enchantment: /magic-future-common.mse-include/enchantment_white.png
|
land: { "/magic-future-common.mse-include/land_" + typesymbol_color(value) + ".png" }
|
||||||
black enchantment: /magic-future-common.mse-include/enchantment_black.png
|
multitype: { "/magic-future-common.mse-include/multitype_" + typesymbol_color(value) + ".png" }
|
||||||
white instant: /magic-future-common.mse-include/instant_white.png
|
sorcery: { "/magic-future-common.mse-include/sorcery_" + typesymbol_color(value) + ".png" }
|
||||||
black instant: /magic-future-common.mse-include/instant_black.png
|
|
||||||
white land: /magic-future-common.mse-include/land_white.png
|
|
||||||
black land: /magic-future-common.mse-include/land_black.png
|
|
||||||
white multitype: /magic-future-common.mse-include/multitype_white.png
|
|
||||||
black multitype: /magic-future-common.mse-include/multitype_black.png
|
|
||||||
white sorcery: /magic-future-common.mse-include/sorcery_white.png
|
|
||||||
black sorcery: /magic-future-common.mse-include/sorcery_black.png
|
|
||||||
paintbrush
|
paintbrush
|
||||||
right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width }
|
right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width }
|
||||||
top : 476
|
top : 476
|
||||||
|
|||||||
Reference in New Issue
Block a user