Added dummy CardEditor, implemented Stylesheet loading

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@50 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-26 22:46:28 +00:00
parent c8e8dd0220
commit 1459cd6d76
23 changed files with 252 additions and 42 deletions
+10 -6
View File
@@ -29,13 +29,17 @@ Set::Set(const StyleSheetP& stylesheet)
String Set::typeName() const { return _("set"); }
IMPLEMENT_REFLECTION(Set) {
tag.addAlias(300, _("style"), _("stylesheet")); // < 0.3.0 used style instead of stylesheet
REFLECT(game);
if (data.empty() && game) {
data.init(game->set_fields);
}
REFLECT_N("set_info", data);
WITH_DYNAMIC_ARG(game_for_new_cards, game.get()) {
REFLECT(cards);
if (game) {
if (tag.reading()) {
data.init(game->set_fields);
}
WITH_DYNAMIC_ARG(game_for_reading, game.get()) {
REFLECT(stylesheet);
REFLECT_N("set_info", data);
REFLECT(cards);
}
}
REFLECT(apprentice_code);
}