Added "text length (lines)" statistics dimension

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1256 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-12-27 19:40:00 +00:00
parent e423b6956f
commit f191090852
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -546,3 +546,4 @@ primary_card_color := {
}
word_count := break_text@(match:"[^[:space:]]+") + length
line_count := split_text@(match:"\n+",include_empty:false) + length
+7
View File
@@ -78,6 +78,13 @@ statistics dimension:
bin size: 5
icon: stats/text_length.png
statistics dimension:
name: text length (lines)
position hint: 101
script: line_count(to_text(card.rule_text))
numeric: true
icon: stats/text_length.png
statistics dimension:
name: race
position hint: 32