/// <summary> /// This will be called when a Formular is changed in the registry, to make all affected nodes comply with potential re-configuration /// </summary> /// <param name="sender">Usually Context</param> /// <param name="e">Contains the new Formular</param> protected virtual void FormularRemotelyChanged(MessageFormularRegistry sender, MessageFormular formular) { if (FFormularSelection.IsAnyInvalid()) { return; // before and during first frame input pins might not be valid yet } if (formular.IsDynamic) { return; } if (FFormularSelection[0] == formular.Name) { formular = formular.Clone() as MessageFormular; // keep a copy if (CustomizeFormular) { formular.Require(RequireEnum.NoneBut, Formular); // never automatically add anything. e.g never add pins without user consent } else { formular.Require(RequireEnum.All); // always add all. } Formular = formular; } }
/// <summary> /// This will be called when a Formular is changed in the registry, to make all affected nodes comply with potential re-configuration /// </summary> /// <param name="sender">Usually Context</param> /// <param name="e">Contains the new Formular</param> protected virtual void FormularRemotelyChanged(MessageFormularRegistry sender, MessageFormular formular) { if (FFormularSelection.IsAnyInvalid()) { return; // before and during first frame input pins might not be valid yet } if (formular.IsDynamic) { return; } if (FFormularSelection[0] == formular.Name) { formular = RetrieveAdoptedFormular(formular.Name); if (!CustomizeFormular) { formular.Require(RequireEnum.All); // always add all. } Formular = formular; } }
/// <summary> /// This will be called when a Formular is changed in the registry, to make all affected nodes comply with potential re-configuration /// </summary> /// <param name="sender">Usually Context</param> /// <param name="e">Contains the new Formular</param> protected virtual void FormularRemotelyChanged(MessageFormularRegistry sender, MessageFormular formular) { if (FFormularSelection.IsAnyInvalid()) return; // before and during first frame input pins might not be valid yet if (formular.IsDynamic) return; if (FFormularSelection[0] == formular.Name) { formular = formular.Clone() as MessageFormular; // keep a copy if (CustomizeFormular) formular.Require(RequireEnum.NoneBut, Formular); // never automatically add anything. e.g never add pins without user consent else formular.Require(RequireEnum.All); // always add all. Formular = formular; } }