private void llClear_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { AnimationFrameBlock ab2 = null; if (tv.SelectedNode.Tag is AnimationFrameBlock) { ab2 = (AnimationFrameBlock)tv.SelectedNode.Tag; } else { ab2 = (AnimationFrameBlock)tv.SelectedNode.Parent.Tag; } ab2.ClearFrames(); AnimResourceConst arc = (AnimResourceConst)tAnimResourceConst.Tag; arc.Refresh(); }
private void llAdd_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { AnimationFrameBlock ab2 = null; if (tv.SelectedNode.Tag is AnimationFrameBlock) { ab2 = (AnimationFrameBlock)tv.SelectedNode.Tag; } else { ab2 = (AnimationFrameBlock)tv.SelectedNode.Parent.Tag; } if (ab2.AxisCount != 3) { return; } ab2.AddFrame((short)(ab2.GetDuration() + 1), 0, 0, 0, false); AnimResourceConst arc = (AnimResourceConst)tAnimResourceConst.Tag; arc.Refresh(); }
private void ambc_Changed(object sender, System.EventArgs e) { AnimResourceConst arc = (AnimResourceConst)tMesh.Tag; arc.Parent.Changed = true; }