Dependencies on stylesheet are marked, and updated when the stylesheet changes

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1087 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-07 20:50:19 +00:00
parent ee9060077b
commit 44f6acade7
10 changed files with 34 additions and 6 deletions
+5
View File
@@ -88,6 +88,11 @@ StyleP StyleSheet::styleFor(const FieldP& field) {
}
void mark_dependency_value(const StyleSheet& stylesheet, const Dependency& dep) {
stylesheet.game->dependent_scripts_stylesheet.add(dep);
}
IMPLEMENT_REFLECTION(StyleSheet) {
// < 0.3.0 didn't use card_ prefix
REFLECT_ALIAS(300, "width", "card width");