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:
@@ -23,6 +23,7 @@ StatsDimension::StatsDimension()
|
||||
: automatic (false)
|
||||
, position_hint(0)
|
||||
, numeric (false)
|
||||
, bin_size (0)
|
||||
, show_empty (false)
|
||||
, split_list (false)
|
||||
{}
|
||||
@@ -72,6 +73,7 @@ IMPLEMENT_REFLECTION_NO_GET_MEMBER(StatsDimension) {
|
||||
REFLECT_N("icon", icon_filename);
|
||||
REFLECT(script);
|
||||
REFLECT(numeric);
|
||||
REFLECT(bin_size);
|
||||
REFLECT(show_empty);
|
||||
REFLECT(split_list);
|
||||
REFLECT(colors);
|
||||
|
||||
@@ -35,6 +35,7 @@ class StatsDimension : public IntrusivePtrBase<StatsDimension> {
|
||||
Bitmap icon; ///< The loaded icon (optional of course)
|
||||
OptionalScript script; ///< Script that determines the value(s)
|
||||
bool numeric; ///< Are the values numeric? If so, they require special sorting
|
||||
double bin_size; ///< Bin adjecent numbers?
|
||||
bool show_empty; ///< Should "" be shown?
|
||||
bool split_list; ///< Split values into multiple ones separated by commas
|
||||
map<String,Color> colors; ///< Colors for the categories
|
||||
|
||||
Reference in New Issue
Block a user