Added sorting of words "A", "An", and "The".

Fixed transparency on update arrow.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@820 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2008-01-12 18:07:34 +00:00
parent 6281a26f81
commit 3ad16e949f
4 changed files with 32 additions and 3 deletions
+8 -2
View File
@@ -1,4 +1,5 @@
mse version: 0.3.6
mse version: 0.3.6
short name: Magic
full name: Magic the Gathering
installer group: magic/game files
@@ -187,6 +188,11 @@ init script:
(if contains(card.shape, match:"split") then "S" else " ") + # split cards come after normal ones
":"
}
# Process the name for sorting rules (specifically, remove "The", "A", and "And" at the beginning, and make lowercase)
sort_name :=
replace_rule (match: "^(The|An?) ", replace: "") +
to_lower
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
is_null_cost := { input == "" or input == "0" }
basic_land_sort := {
@@ -241,7 +247,7 @@ init script:
position (
of: card
in: set
order_by: { rarity_sort() + sort_index() + card.name }
order_by: { rarity_sort() + sort_index() + sort_name(card.name) }
filter: set_filter()
) + 1
}