Added 'insert symbol' menu for SymbolFonts;

Added scriptable 'enabled' to symbols in symbol font, used instead of scripted filenames. This means changing the tap symbol style now works;
Added localisation for games, stylesheets and symbolfonts;
Warnings from Reader are now shown onIdle;

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@198 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-02-07 22:31:21 +00:00
parent b93e5b2ae3
commit 73a2f61e68
36 changed files with 606 additions and 101 deletions
+35 -3
View File
@@ -305,6 +305,38 @@ game:
# Set info
# descriptions/help text
#stylesheet:
# magic-new:
#
stylesheet:
magic-new:
symbol font:
magic-mana-small:
menu item T: &Tap symbol T
menu item W: &White mana W
menu item U: Bl&ue mana U
menu item B: &Black mana B
menu item R: &Red mana R
menu item G: &Green mana G
menu item S: &Snow mana S
menu item X: Variable mana &X X
menu item Y: Variable mana &Y Y
menu item Z: Variable mana &Z Z
menu item colorless: &Colorless mana...
menu item half: &Half mana
menu item |W: &White |W
menu item |U: Bl&ue |U
menu item |B: &Black |B
menu item |R: &Red |R
menu item |G: &Green |G
menu item |S: &Snow |S
menu item 1/2: &Colorless 1/2
menu item hybrid: H&ybrid mana (two color)
menu item W/U: White/Blue mana W/U
menu item U/B: Blue/Black mana U/B
menu item B/R: Black/Ref mana B/R
menu item R/G: Red/Green mana R/G
menu item G/W: Green/White mana G/W
menu item W/B: White/Black mana W/B
menu item U/R: Blue/Red mana U/R
menu item B/G: Black/Green mana B/G
menu item R/W: Red/White mana R/W
menu item G/U: Green/blue mana G/U
@@ -1,4 +1,4 @@
mse version: 0.2.7
mse version: 0.3.0
# Symbol font in the 'popup' style, used for casting costs on modern cards
image font size: 135
@@ -7,7 +7,15 @@ symbol:
image: mana_circle.png
symbol:
code: T
image: script: mana_t()
image: mana_t_older.png
enabled: { mana_t() == "older" }
symbol:
code: T
image: mana_t_old.png
enabled: { mana_t() == "old" }
symbol:
code: T
image: mana_t.png
symbol:
code: W/U
image: mana_wu.png
@@ -1,12 +1,12 @@
mse version: 0.2.7
mse version: 0.3.0
# Symbol font in the normal, flat, style, used for text boxes and on old style cards
# Note:
# Define small_mana_t:="mana_t(_old)?.png" in the init script of the style
# Define mana_t := {"new|old|older"} in the init script of the style
#
# So for example:
#
#init script:
# small_mana_t := "mana_t.png"
# mana_t := {"new"}
image font size: 135
horizontal space: 2
@@ -14,7 +14,15 @@ symbol:
image: mana_circle.png
symbol:
code: T
image: { mana_t() }
image: mana_t_older.png
enabled: { mana_t() == "older" }
symbol:
code: T
image: mana_t_old.png
enabled: { mana_t() == "old" }
symbol:
code: T
image: mana_t.png
symbol:
code: W/U
image: mana_wu.png
@@ -102,4 +110,50 @@ text font:
text margin left: 3
text margin right: 2
text margin top: -1
text margin bottom: -1
text margin bottom: -1
##############################################################
# Insert-symbol menu
insert symbol menu:
item: T
item:
type: line
item: X
item: Y
item: Z
item:
type: custom
name: colorless
item:
type: line
item: W
item: U
item: B
item: R
item: G
item: S
item:
type: line
item:
name: half
item: 1/2
item: |W
item: |U
item: |B
item: |R
item: |G
item: |S
item:
name: hybrid
item: W/U
item: U/B
item: B/R
item: R/G
item: G/W
item:
type: line
item: W/B
item: U/R
item: B/G
item: R/W
item: G/U
+1 -1
View File
@@ -22,7 +22,7 @@ init script:
land_template := { "acard.jpg" }
# Use the normal tap symbol
mana_t := { "mana_t.png" }
mana_t := { "new" }
# Does the card have a color that requires a white font for copyright/artist?
white_font_colors := filter_rule(match:"^(hybrid )?black|^land")
+3 -3
View File
@@ -26,9 +26,9 @@ init script:
# Use the normal tap symbol
mana_t := {
if styling.tap_symbol == "old" then "mana_t_old.png"
else if styling.tap_symbol == "diagonal T" then "mana_t_older.png"
else "mana_t.png"
if styling.tap_symbol == "old" then "old"
else if styling.tap_symbol == "diagonal T" then "older"
else "new"
}
# Does the card have a color that requires a white font for copyright/artist?
+2 -2
View File
@@ -23,8 +23,8 @@ init script:
# Horizontal 5 color blends are not supported
card_hybrid_5b := card_hybrid_5
# Use the normal tap symbol
mana_t := { "mana_t_old.png" }
# Use the old tap symbol
mana_t := { "old" }
# Does the card have a color that requires a black font for copyright/artist?
black_font_colors := filter_rule(match:"^(hybrid 2 color)?white")
+2 -2
View File
@@ -23,8 +23,8 @@ init script:
# Horizontal 5 color blends are not supported
card_hybrid_5b := card_hybrid_5
# Use the normal tap symbol
mana_t := { "mana_t_old.png" }
# Use the old tap symbol
mana_t := { "old" }
# Does the card have a color that requires a black font for copyright/artist?
black_font_colors := filter_rule(match:"^(hybrid 2 color)?white")
+1 -1
View File
@@ -25,7 +25,7 @@ init script:
pt_template := { input + "pt.jpg" }
# Use the normal tap symbol
small_mana_t := "mana_t.png"
mana_t := { "new" }
# Does the card have a color that requires a white font for copyright/artist?
white_font_colors := filter_rule(match:"^(hybrid 2 color)?black|^land")
+2 -2
View File
@@ -9,8 +9,8 @@ icon: card-sample.png
############################################################## Extra scripts
init script:
# Use the normal tap symbol
small_mana_t := "mana_t.png"
# Use the old tap symbol
mana_t := { "old" }
############################################################## Set info fields
info style: