Esempio n. 1
0
        private void ComboSelect_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (IgnoreSet)
            {
                return;
            }
            OpUtils.SetOperandProperty(Operand, Property, ((ComboNameValuePair)ComboSelect.SelectedItem).Value);

            Master.SignalOperandUpdate();
        }
Esempio n. 2
0
        private void ValueEntry_ValueChanged(object sender, EventArgs e)
        {
            if (IgnoreSet)
            {
                return;
            }
            OpUtils.SetOperandProperty(Operand, Property, ValueEntry.Value);

            Master.SignalOperandUpdate();
        }
Esempio n. 3
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            var popup = new VarSoundSelect(Scope.Object.Resource.MainIff, Operand.EventID);

            popup.ShowDialog();
            if (popup.DialogResult == DialogResult.OK)
            {
                Operand.EventID = (ushort)popup.SelectedFWAV;
            }
            Master.SignalOperandUpdate();
        }
Esempio n. 4
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            var popup = new VarObjectSelect();

            popup.ShowDialog();
            if (popup.DialogResult == DialogResult.OK)
            {
                OpUtils.SetOperandProperty(Operand, GUIDProperty, popup.GUIDResult);
            }
            Master.SignalOperandUpdate();
        }
Esempio n. 5
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();
        }
Esempio n. 6
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            var popup = new VarScopeSelect(Scope, Convert.ToByte(OpUtils.GetOperandProperty(Operand, SourceProperty)), Convert.ToInt16(OpUtils.GetOperandProperty(Operand, DataProperty)));

            popup.ShowDialog();
            if (popup.DialogResult == DialogResult.OK)
            {
                OpUtils.SetOperandProperty(Operand, SourceProperty, popup.SelectedSource);
                OpUtils.SetOperandProperty(Operand, DataProperty, popup.SelectedData);
            }
            Master.SignalOperandUpdate();
        }
Esempio n. 7
0
        private void Check_CheckedChanged(object sender, EventArgs e)
        {
            if (IgnoreSet)
            {
                return;
            }
            var check = (CheckBox)sender;
            var flag  = CheckToFlag[check];

            OpUtils.SetOperandProperty(Operand, flag.Property, check.Checked);

            Master.SignalOperandUpdate();
        }