mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Support for 2d bar graphs;
separator_after for keywords; Slightly more advanced english_plural/singular; Windows uninstaller will remove app data git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@348 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -147,6 +147,8 @@ void StatsPanel::onCategorySelect() {
|
||||
if (categories->hasSelection()) {
|
||||
StatsCategory& cat = categories->getSelection();
|
||||
GraphDataPre d;
|
||||
cat.find_dimensions(set->game->statistics_dimensions);
|
||||
// create axes
|
||||
FOR_EACH(dim, cat.dimensions) {
|
||||
d.axes.push_back(new_intrusive4<GraphAxis>(
|
||||
dim->name,
|
||||
@@ -156,6 +158,7 @@ void StatsPanel::onCategorySelect() {
|
||||
)
|
||||
);
|
||||
}
|
||||
// find values
|
||||
FOR_EACH(card, set->cards) {
|
||||
Context& ctx = set->getContext(card);
|
||||
GraphElementP e(new GraphElement);
|
||||
@@ -173,6 +176,7 @@ void StatsPanel::onCategorySelect() {
|
||||
d.elements.push_back(e);
|
||||
}
|
||||
}
|
||||
// TODO graph->setLayout(cat.type)
|
||||
graph->setData(d);
|
||||
filterCards();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user