示例#1
0
        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();
        }
示例#2
0
        public void OperandUpdated()
        {
            var op = Operand;

            if (op.AnimationID == 0)
            {
                ObjectLabel.Text = "Stop Animation";
            }
            else
            {
                ObjectLabel.Text = AnimateSimDescriptor.GetAnimationName(Scope, op.Source, op.AnimationID);
            }
        }