mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Changed the way the FilteredCardList on the stats panel selects cards:
used to: by running scripts on cards and comparing to string value of selected group now: by keeping a list of group_ids for all cards, and comparing indices Added 'bin size' attribute for making a histogram of numeric axes. Added 'Text length' statistic. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1071 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -521,6 +521,8 @@ init script:
|
||||
else if artifact then "artifact"
|
||||
else input
|
||||
}
|
||||
|
||||
word_count := break_text@(match:"[^[:space:]]+") + length
|
||||
|
||||
# TODO : somewhere else?
|
||||
#card to conversion:
|
||||
@@ -1301,6 +1303,14 @@ statistics dimension:
|
||||
script: stylesheet.short_name
|
||||
icon: stats/stylesheet.png
|
||||
|
||||
statistics dimension:
|
||||
name: text length (words)
|
||||
position hint: 100
|
||||
script: word_count(to_text(card.rule_text))
|
||||
numeric: true
|
||||
bin size: 5
|
||||
icon: stats/text_length.png
|
||||
|
||||
statistics dimension:
|
||||
name: race
|
||||
position hint: 32
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 599 B After Width: | Height: | Size: 590 B |
Binary file not shown.
|
After Width: | Height: | Size: 118 B |
Reference in New Issue
Block a user