/// <summary> /// Overridden function to perform the relevant operation /// </summary> /// <param name="name"></param> /// <param name="iShapeIndex"></param> /// <param name="iShapeCount"></param> public override void PerformRelevantOperation(string name, int iShapeIndex, int iShapeCount) { base.PerformRelevantOperation(name, iShapeIndex, iShapeCount); if (name == "Edit Effect" && iShapeIndex == 0) { if (Editor != null) { ParticleEditorArgs arg = new ParticleEditorArgs(this, ParticleEditorArgs.Action.Edit); Editor(this, arg); if (!arg.Success) { EditorManager.ShowMessageBox("Error loading the particle template into editor:\n" + arg.ErrorString, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } return; } }
/// <summary> /// Overridden function to perform the relevant operation /// </summary> /// <param name="name"></param> /// <param name="iShapeIndex"></param> /// <param name="iShapeCount"></param> public override void PerformRelevantOperation(string name, int iShapeIndex, int iShapeCount) { base.PerformRelevantOperation(name, iShapeIndex, iShapeCount); if (name=="Edit Effect" && iShapeIndex==0) { if (Editor!=null) { ParticleEditorArgs arg = new ParticleEditorArgs(this,ParticleEditorArgs.Action.Edit); Editor(this,arg); if (!arg.Success) EditorManager.ShowMessageBox("Error loading the particle template into editor:\n" + arg.ErrorString, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } return; } }