mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
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:
@@ -546,3 +546,4 @@ primary_card_color := {
|
|||||||
}
|
}
|
||||||
|
|
||||||
word_count := break_text@(match:"[^[:space:]]+") + length
|
word_count := break_text@(match:"[^[:space:]]+") + length
|
||||||
|
line_count := split_text@(match:"\n+",include_empty:false) + length
|
||||||
|
|||||||
@@ -78,6 +78,13 @@ statistics dimension:
|
|||||||
bin size: 5
|
bin size: 5
|
||||||
icon: stats/text_length.png
|
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:
|
statistics dimension:
|
||||||
name: race
|
name: race
|
||||||
position hint: 32
|
position hint: 32
|
||||||
|
|||||||
Reference in New Issue
Block a user