mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
combined_editor function, and improved dependency handling (removing duplicates), viewer refreshes on events from script manager
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@147 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+3
-3
@@ -135,18 +135,18 @@ ScriptValueP make_iterator(const Set& set) {
|
||||
void mark_dependency_member(Set* value, const String& name, const Dependency& dep) {
|
||||
// is it the card list?
|
||||
if (name == _("cards")) {
|
||||
value->game->dependent_scripts_cards.push_back(dep);
|
||||
value->game->dependent_scripts_cards.add(dep);
|
||||
return;
|
||||
}
|
||||
// is it the keywords?
|
||||
if (name == _("keywords")) {
|
||||
value->game->dependent_scripts_keywords.push_back(dep);
|
||||
value->game->dependent_scripts_keywords.add(dep);
|
||||
return;
|
||||
}
|
||||
// is it in the set data?
|
||||
IndexMap<FieldP,ValueP>::const_iterator it = value->data.find(name);
|
||||
if (it != value->data.end()) {
|
||||
(*it)->fieldP->dependent_scripts.push_back(dep);
|
||||
(*it)->fieldP->dependent_scripts.add(dep);
|
||||
}
|
||||
}
|
||||
void mark_dependency_member(const SetP& value, const String& name, const Dependency& dep) {
|
||||
|
||||
Reference in New Issue
Block a user