symbol font updates
Fix #22 Fix white_text/v_mana_loc errors on sister games
This commit is contained in:
@@ -223,7 +223,7 @@ symbol:
|
|||||||
###################################################################################### Loyalty Symbols
|
###################################################################################### Loyalty Symbols
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltyup_w.png
|
image: empty_loyaltyup_w.png
|
||||||
code: ([+][XYZ1-9])
|
code: ([+][XYZ1-9][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
@@ -239,7 +239,7 @@ symbol:
|
|||||||
enabled: {white_text()}
|
enabled: {white_text()}
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltydown_w.png
|
image: empty_loyaltydown_w.png
|
||||||
code: ([-][XYZ1-9])
|
code: ([-][XYZ1-9][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
@@ -255,7 +255,7 @@ symbol:
|
|||||||
enabled: {white_text()}
|
enabled: {white_text()}
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltynaught_w.png
|
image: empty_loyaltynaught_w.png
|
||||||
code: [+=]([0-9XYZ])
|
code: [+=]([0-9XYZ][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
@@ -271,7 +271,7 @@ symbol:
|
|||||||
enabled: {white_text()}
|
enabled: {white_text()}
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltyup.png
|
image: empty_loyaltyup.png
|
||||||
code: ([+][XYZ1-9])
|
code: ([+][XYZ1-9][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
@@ -286,7 +286,7 @@ symbol:
|
|||||||
image font size: 100
|
image font size: 100
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltydown.png
|
image: empty_loyaltydown.png
|
||||||
code: ([-][XYZ1-9])
|
code: ([-][XYZ1-9][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
@@ -301,7 +301,7 @@ symbol:
|
|||||||
image font size: 100
|
image font size: 100
|
||||||
symbol:
|
symbol:
|
||||||
image: empty_loyaltynaught.png
|
image: empty_loyaltynaught.png
|
||||||
code: [+=]([0-9XYZ])
|
code: [+=]([0-9XYZ][0-9]?)
|
||||||
regex: yes
|
regex: yes
|
||||||
draw text: 1
|
draw text: 1
|
||||||
text margin left: -.10
|
text margin left: -.10
|
||||||
|
|||||||
@@ -270,6 +270,7 @@ init script:
|
|||||||
}
|
}
|
||||||
card_shape := { "plane card" }
|
card_shape := { "plane card" }
|
||||||
is_nom := {card.supertype == "Phenomenon"}
|
is_nom := {card.supertype == "Phenomenon"}
|
||||||
|
|
||||||
ancestral_mana := {"false"}
|
ancestral_mana := {"false"}
|
||||||
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
||||||
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
||||||
@@ -278,7 +279,7 @@ init script:
|
|||||||
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
||||||
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
||||||
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
||||||
|
white_text := {false}
|
||||||
############################################################## Set fields
|
############################################################## Set fields
|
||||||
set field:
|
set field:
|
||||||
type: info
|
type: info
|
||||||
|
|||||||
@@ -258,6 +258,17 @@ init script:
|
|||||||
# Common errors on cards; can be replaced by style
|
# Common errors on cards; can be replaced by style
|
||||||
has_error := { contains(card.rule_text, match:"<error-spelling") or contains(card.name, match:"[[.quotation-mark.]]") or to_lower(card.name) == card.name or card.copyright == "" or card.subtype == "" or card.illustrator == "" or contains(card.rule_text, match:"^[\n]") or contains(card.rule_text, match:"[[A-Z,a-z,0-9 ]*[\n]]") }
|
has_error := { contains(card.rule_text, match:"<error-spelling") or contains(card.name, match:"[[.quotation-mark.]]") or to_lower(card.name) == card.name or card.copyright == "" or card.subtype == "" or card.illustrator == "" or contains(card.rule_text, match:"^[\n]") or contains(card.rule_text, match:"[[A-Z,a-z,0-9 ]*[\n]]") }
|
||||||
|
|
||||||
|
# Mana font scripts
|
||||||
|
ancestral_mana := {false}
|
||||||
|
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
||||||
|
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
||||||
|
use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")}
|
||||||
|
use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()}
|
||||||
|
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
||||||
|
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
||||||
|
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
||||||
|
white_text := {false}
|
||||||
|
|
||||||
############################################################## Set fields
|
############################################################## Set fields
|
||||||
set field:
|
set field:
|
||||||
type: info
|
type: info
|
||||||
@@ -322,6 +333,32 @@ set field:
|
|||||||
type: boolean
|
type: boolean
|
||||||
name: mark errors
|
name: mark errors
|
||||||
description: Marks errors on cards, for example wording and spelling errors, non unique card names, etc.
|
description: Marks errors on cards, for example wording and spelling errors, non unique card names, etc.
|
||||||
|
set field:
|
||||||
|
type: text
|
||||||
|
name: custom mana symbol name
|
||||||
|
description: Use mana symbols from magic-mainframe-extras.mse-include. Input NAME.png here, check help below for file instructions.
|
||||||
|
set field:
|
||||||
|
type: multiple choice
|
||||||
|
name: mana symbol options
|
||||||
|
choice: enable in casting costs
|
||||||
|
choice: enable in text boxes
|
||||||
|
choice: colored mana symbols
|
||||||
|
choice: hybrid with colors
|
||||||
|
set field:
|
||||||
|
type: choice
|
||||||
|
name: mana symbol help
|
||||||
|
choice: Click here for mana symbol help!
|
||||||
|
choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage
|
||||||
|
choice: Large is for only mana costs, small for only text, create both if you use both
|
||||||
|
choice: Additionally, you can create a "future" folder for M15 Future mana costs
|
||||||
|
choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows
|
||||||
|
choice: For the name option above, set the address of the image, minus mainframe-extras and large/small/future
|
||||||
|
choice: Ex: magic-mainframe-extras/cajun/large/hazard.png would use cajun/hazard.png
|
||||||
|
choice: Standard size is 160x160 for small, 200x200 for small hybrid and future, 165x178 for large, 205x218 for large hybrid
|
||||||
|
choice: If your symbol mixes with colors (such as Phyrexian mana): Save NAME_w.png, NAME_u.png, etc to those folders too.
|
||||||
|
choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.]
|
||||||
|
choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look.
|
||||||
|
choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols).
|
||||||
############################# Default style
|
############################# Default style
|
||||||
default set style:
|
default set style:
|
||||||
title:
|
title:
|
||||||
|
|||||||
@@ -470,3 +470,14 @@ primary_card_color := {
|
|||||||
}
|
}
|
||||||
|
|
||||||
word_count := break_text@(match:"[^[:space:]]+") + length
|
word_count := break_text@(match:"[^[:space:]]+") + length
|
||||||
|
|
||||||
|
# Mana font scripts
|
||||||
|
ancestral_mana := {false}
|
||||||
|
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
||||||
|
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
||||||
|
use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")}
|
||||||
|
use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()}
|
||||||
|
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
||||||
|
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
||||||
|
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
||||||
|
white_text := {false}
|
||||||
|
|||||||
@@ -80,6 +80,33 @@ set field:
|
|||||||
choice: no
|
choice: no
|
||||||
description: Use gradients on multicolor cards by default, you can always change it be clicking on the card border.
|
description: Use gradients on multicolor cards by default, you can always change it be clicking on the card border.
|
||||||
initial: no
|
initial: no
|
||||||
|
set field:
|
||||||
|
type: text
|
||||||
|
name: custom mana symbol name
|
||||||
|
description: Use mana symbols from magic-mainframe-extras.mse-include. Input NAME.png here, check help below for file instructions.
|
||||||
|
set field:
|
||||||
|
type: multiple choice
|
||||||
|
name: mana symbol options
|
||||||
|
choice: enable in casting costs
|
||||||
|
choice: enable in text boxes
|
||||||
|
choice: colored mana symbols
|
||||||
|
choice: hybrid with colors
|
||||||
|
set field:
|
||||||
|
type: choice
|
||||||
|
name: mana symbol help
|
||||||
|
choice: Click here for mana symbol help!
|
||||||
|
choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage
|
||||||
|
choice: Large is for only mana costs, small for only text, create both if you use both
|
||||||
|
choice: Additionally, you can create a "future" folder for M15 Future mana costs
|
||||||
|
choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows
|
||||||
|
choice: For the name option above, set the address of the image, minus mainframe-extras and large/small/future
|
||||||
|
choice: Ex: magic-mainframe-extras/cajun/large/hazard.png would use cajun/hazard.png
|
||||||
|
choice: Standard size is 160x160 for small, 200x200 for small hybrid and future, 165x178 for large, 205x218 for large hybrid
|
||||||
|
choice: If your symbol mixes with colors (such as Phyrexian mana): Save NAME_w.png, NAME_u.png, etc to those folders too.
|
||||||
|
choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.]
|
||||||
|
choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look.
|
||||||
|
choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols).
|
||||||
|
|
||||||
############################# Default style
|
############################# Default style
|
||||||
default set style:
|
default set style:
|
||||||
title:
|
title:
|
||||||
|
|||||||
@@ -203,6 +203,17 @@ init script:
|
|||||||
word_count := break_text@(match:"[^[:space:]]+") + length
|
word_count := break_text@(match:"[^[:space:]]+") + length
|
||||||
line_count := split_text@(match:"\n+",include_empty:false) + length
|
line_count := split_text@(match:"\n+",include_empty:false) + length
|
||||||
|
|
||||||
|
# Mana font scripts
|
||||||
|
ancestral_mana := {false}
|
||||||
|
use_v_mana := {contains(set.custom_mana_symbol_name, match:".png")}
|
||||||
|
use_large_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"casting")}
|
||||||
|
use_small_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"text")}
|
||||||
|
use_color_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"colored") and not use_hybrid_v_mana()}
|
||||||
|
use_hybrid_v_mana := { use_v_mana() and contains(set.mana_symbol_options, match:"hybrid")}
|
||||||
|
v_mana_name := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"(.+/|\\.png)", replace:"")}
|
||||||
|
v_mana_loc := {if not use_v_mana() then "" else replace(set.custom_mana_symbol_name, match:"{v_mana_name()}\\.png", replace:"")}
|
||||||
|
white_text := {false}
|
||||||
|
|
||||||
############################################################## Set fields
|
############################################################## Set fields
|
||||||
set field:
|
set field:
|
||||||
type: info
|
type: info
|
||||||
@@ -259,6 +270,33 @@ set field:
|
|||||||
name: automatic card numbers
|
name: automatic card numbers
|
||||||
initial: no
|
initial: no
|
||||||
description: Should card numbers be shown on the cards?
|
description: Should card numbers be shown on the cards?
|
||||||
|
set field:
|
||||||
|
type: text
|
||||||
|
name: custom mana symbol name
|
||||||
|
description: Use mana symbols from magic-mainframe-extras.mse-include. Input NAME.png here, check help below for file instructions.
|
||||||
|
set field:
|
||||||
|
type: multiple choice
|
||||||
|
name: mana symbol options
|
||||||
|
choice: enable in casting costs
|
||||||
|
choice: enable in text boxes
|
||||||
|
choice: colored mana symbols
|
||||||
|
choice: hybrid with colors
|
||||||
|
set field:
|
||||||
|
type: choice
|
||||||
|
name: mana symbol help
|
||||||
|
choice: Click here for mana symbol help!
|
||||||
|
choice: In your mainframe-extrasfolder, create folders named "large" and/or "small" depending on your usage
|
||||||
|
choice: Large is for only mana costs, small for only text, create both if you use both
|
||||||
|
choice: Additionally, you can create a "future" folder for M15 Future mana costs
|
||||||
|
choice: Save NAME.png to the relevant folders. Remember that large symbols have dropshadows
|
||||||
|
choice: For the name option above, set the address of the image, minus mainframe-extras and large/small/future
|
||||||
|
choice: Ex: magic-mainframe-extras/cajun/large/hazard.png would use cajun/hazard.png
|
||||||
|
choice: Standard size is 160x160 for small, 200x200 for small hybrid and future, 165x178 for large, 205x218 for large hybrid
|
||||||
|
choice: If your symbol mixes with colors (such as Phyrexian mana): Save NAME_w.png, NAME_u.png, etc to those folders too.
|
||||||
|
choice: If your symbol hybrids with colors (like 2/W): [Note, doesn't work on M15 Future mana costs.]
|
||||||
|
choice: Save NAME_h.png to those folders too. See mana_bb.png and similar for how this image should look.
|
||||||
|
choice: Your mana symbol will now be keyed to V (and V/W, V/U, etc. for colored/hybrid symbols).
|
||||||
|
|
||||||
############################# Default style
|
############################# Default style
|
||||||
default set style:
|
default set style:
|
||||||
title:
|
title:
|
||||||
|
|||||||
Reference in New Issue
Block a user