Exemplo n.º 1
0
        /// <summary>
        /// Called only when the animation changes
        /// </summary>
        public virtual void UpdateEditor(NW4RAnimType type)
        {
            if (type != NW4RAnimType.SRT)
            {
                UpdateSRT0FocusControls(null);
            }
            if (type != NW4RAnimType.PAT)
            {
                UpdatePAT0FocusControls(null);
            }

            switch (type)
            {
            case NW4RAnimType.CHR:
                break;

            case NW4RAnimType.SRT:
                UpdateSRT0FocusControls(SelectedSRT0);
                break;

            case NW4RAnimType.SHP:
                if (SHP0Editor != null)
                {
                    SHP0Editor.AnimationChanged();
                }
                break;

            case NW4RAnimType.PAT:
                if (PAT0Editor != null)
                {
                    PAT0Editor.UpdateBoxes();
                }
                UpdatePAT0FocusControls(SelectedPAT0);
                break;

            case NW4RAnimType.VIS:
                if (VIS0Editor != null)
                {
                    VIS0Editor.AnimationChanged();
                }
                break;

            case NW4RAnimType.SCN:
                if (SCN0Editor != null)
                {
                    SCN0Editor.tabControl1_Selected(null, new TabControlEventArgs(null, SCN0Editor._tabIndex, TabControlAction.Selected));
                }
                break;

            case NW4RAnimType.CLR:
                if (CLR0Editor != null)
                {
                    CLR0Editor.AnimationChanged();
                }
                break;
            }
        }