Ejemplo n.º 1
0
        public void CreateEntry()
        {
            int value = 0; Top:
            foreach (CLR0MaterialEntryNode t in Children)
                if ((int)t._target == value) { value++; goto Top; }
            if (value >= 11)
                return;

            CLR0MaterialEntryNode entry = new CLR0MaterialEntryNode();
            entry._target = (EntryTarget)value;
            entry._name = entry._target.ToString();
            entry._numEntries = -1;
            entry.NumEntries = ((CLR0Node)Parent)._numFrames;
            AddChild(entry);
        }
Ejemplo n.º 2
0
 public CLR0MaterialNode CreateEntry()
 {
     CLR0MaterialNode node = new CLR0MaterialNode();
     CLR0MaterialEntryNode entry = new CLR0MaterialEntryNode();
     entry._target = EntryTarget.Color0;
     entry._name = entry._target.ToString();
     entry._numEntries = -1;
     entry.NumEntries = _numFrames;
     entry.Constant = true;
     entry.SolidColor = new ARGBPixel();
     node.Name = this.FindName(null);
     this.AddChild(node);
     node.AddChild(entry);
     return node;
 }
Ejemplo n.º 3
0
        private void lstTarget_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (_mat == null)
            {
                if (_mainWindow.KeyframePanel != null)
                {
                    _mainWindow.KeyframePanel.chkEnabled.Checked = false;
                    _mainWindow.KeyframePanel.chkConstant.Checked = false;
                }
                return;
            }

            _entry = _mat.FindChild(lstTarget.SelectedItem as string, false) as CLR0MaterialEntryNode;
            _mainWindow.KeyframePanel.chkEnabled.Checked = _entry != null;
            _mainWindow.KeyframePanel.chkConstant.Checked = _entry != null ? _entry.Constant : false;
            _mainWindow.KeyframePanel.TargetSequence = _entry;
        }