private int DrawChild(DPOW.Reader.Animation anim, int y, Graphics g)
        {
            for (int i = 0; i < anim.Childs.Length; i++)
            {
                mListedAnimations.Add(anim.getChild(i));
                DrawLine(anim.getChild(i), y, g);
                y += 20;
                y  = DrawChild(anim.getChild(i), y, g);
            }

            return(y);
        }
        private int DrawChilds(DPOW.Reader.Animation anim, int y, int offset, Graphics g)
        {
            offset += 10;
            for (int i = 0; i < anim.Childs.Length; i++)
            {
                g.DrawString(anim.getChild(i).Name, Font, Brushes.Black, offset, y + 4 - scrVerticalBar.Value);
                y += 20;
                y  = DrawChilds(anim.getChild(i), y, offset, g);
            }

            return(y);
        }
Exemple #3
0
        private void addnode(DPOW.Reader.Animation newanim, TreeNodeCollection parent)
        {
            TreeNode newnode = parent.Add(newanim.Name);

            for (int i = 0; i < newanim.Childs.Length; i++)
            {
                addnode(newanim.getChild(i), newnode.Nodes);
            }
        }
Exemple #4
0
        private void addVariablesOnList(DPOW.Reader.Animation obj)
        {
            for (int i = 0; i < obj.Events.Length; i++)
            {
                if (!lstVariables.Items.ContainsKey(obj.getVariable(i).Name))
                {
                    lstVariables.Items.Add(obj.getVariable(i).Name, obj.getVariable(i).Name, 0).Checked = obj.getVariable(i).Enabled;
                }
            }

            for (int j = 0; j < obj.Childs.Length; j++)
            {
                addVariablesOnList(obj.getChild(j));
            }
        }