card filter: alphabetical ordering for keywords (#2987)
This commit is contained in:
parent
d124e6ac22
commit
e6e6932dbb
2 changed files with 16 additions and 16 deletions
|
@ -20,25 +20,25 @@ const char *CardFilter::attrName(Attr a)
|
||||||
{
|
{
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case AttrName:
|
case AttrName:
|
||||||
return "name";
|
return "Name";
|
||||||
case AttrType:
|
case AttrType:
|
||||||
return "type";
|
return "Type";
|
||||||
case AttrColor:
|
case AttrColor:
|
||||||
return "color";
|
return "Color";
|
||||||
case AttrText:
|
case AttrText:
|
||||||
return "text";
|
return "Text";
|
||||||
case AttrSet:
|
case AttrSet:
|
||||||
return "set";
|
return "Set";
|
||||||
case AttrManaCost:
|
case AttrManaCost:
|
||||||
return "mana cost";
|
return "Mana Cost";
|
||||||
case AttrCmc:
|
case AttrCmc:
|
||||||
return "cmc";
|
return "CMC";
|
||||||
case AttrRarity:
|
case AttrRarity:
|
||||||
return "rarity";
|
return "Rarity";
|
||||||
case AttrPow:
|
case AttrPow:
|
||||||
return "power";
|
return "Power";
|
||||||
case AttrTough:
|
case AttrTough:
|
||||||
return "toughness";
|
return "Toughness";
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,16 +16,16 @@ public:
|
||||||
/* if you add an atribute here you also need to
|
/* if you add an atribute here you also need to
|
||||||
* add its string representation in attrName */
|
* add its string representation in attrName */
|
||||||
enum Attr {
|
enum Attr {
|
||||||
AttrName = 0,
|
AttrCmc = 0,
|
||||||
AttrType,
|
|
||||||
AttrColor,
|
AttrColor,
|
||||||
AttrText,
|
|
||||||
AttrSet,
|
|
||||||
AttrManaCost,
|
AttrManaCost,
|
||||||
AttrCmc,
|
AttrName,
|
||||||
AttrRarity,
|
|
||||||
AttrPow,
|
AttrPow,
|
||||||
|
AttrRarity,
|
||||||
|
AttrSet,
|
||||||
|
AttrText,
|
||||||
AttrTough,
|
AttrTough,
|
||||||
|
AttrType,
|
||||||
AttrEnd
|
AttrEnd
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue