mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
mostly backwards compatibility with old pack system, uses boost tribool
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1311 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+6
-2
@@ -187,9 +187,13 @@ IMPLEMENT_REFLECTION(PackType) {
|
||||
REFLECT(items);
|
||||
REFLECT_IF_READING {
|
||||
if (select == SELECT_AUTO) {
|
||||
if (filter) select = SELECT_NO_REPLACE;
|
||||
if (filter) select = SELECT_NO_REPLACE;
|
||||
else if (!items.empty()) select = SELECT_ALL;
|
||||
}
|
||||
if (indeterminate(selectable)) {
|
||||
if (filter) selectable = false;
|
||||
else if (!items.empty()) selectable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +206,7 @@ IMPLEMENT_REFLECTION(PackItem) {
|
||||
|
||||
PackType::PackType()
|
||||
: enabled(true)
|
||||
, selectable(true)
|
||||
, selectable(indeterminate)
|
||||
, summary(true)
|
||||
, select(SELECT_AUTO)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user