mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Added some REFLECT_ macros, so the reflection code doesn't have to mess with the internals of reflection.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@218 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -38,7 +38,7 @@ IMPLEMENT_REFLECTION(ChoiceField) {
|
||||
REFLECT_N("default", default_script);
|
||||
REFLECT(initial);
|
||||
REFLECT(default_name);
|
||||
if (tag.reading()) {
|
||||
REFLECT_IF_READING {
|
||||
choices->initIds();
|
||||
}
|
||||
}
|
||||
@@ -220,7 +220,7 @@ IMPLEMENT_REFLECTION_ENUM(ChoiceRenderStyle) {
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(ChoiceStyle) {
|
||||
tag.addAlias(300, _("card list colors"), _("colors card list"));
|
||||
REFLECT_ALIAS(300, "card list colors", "colors card list");
|
||||
REFLECT_BASE(Style);
|
||||
REFLECT(popup_style);
|
||||
REFLECT(render_style);
|
||||
@@ -230,7 +230,6 @@ IMPLEMENT_REFLECTION(ChoiceStyle) {
|
||||
REFLECT(colors_card_list);
|
||||
REFLECT(font);
|
||||
REFLECT(choice_images);
|
||||
// if (tag.reading() && choice_colors.empty())
|
||||
REFLECT(choice_colors);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user