private void EditButton_Click(object sender, EventArgs e) { var popup = new VarAnimSelect(AnimateSimDescriptor.GetAnimTable(Scope, Operand.Source), Operand.AnimationID); popup.ShowDialog(); if (popup.DialogResult == DialogResult.OK) { Operand.AnimationID = (ushort)popup.SelectedAnim; } Master.SignalOperandUpdate(); }
public void OperandUpdated() { var op = Operand; if (op.AnimationID == 0) { ObjectLabel.Text = "Stop Animation"; } else { ObjectLabel.Text = AnimateSimDescriptor.GetAnimationName(Scope, op.Source, op.AnimationID); } }