symbol font updates

Fix #22
Fix white_text/v_mana_loc errors on sister games
This commit is contained in:
cajun
2023-11-19 16:07:45 -06:00
parent 8c617b5936
commit 88dedfd77d
6 changed files with 121 additions and 7 deletions

View File

@@ -258,6 +258,17 @@ init script:
# 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]]") }
# 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 field:
type: info
@@ -322,6 +333,32 @@ set field:
type: boolean
name: mark errors
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 set style:
title: