Exemplo n.º 1
0
 static void CreateTreeView()
 {
     m_treeViewControl = TreeViewInspector.AddTreeView();
     m_treeViewControl.DisplayInInspector = false;
     m_treeViewControl.DisplayOnGame      = false;
     m_treeViewControl.DisplayOnScene     = false;
     Example.PopulateExampleData(m_treeViewControl);
 }
Exemplo n.º 2
0
        public static void CreateTreeView()
        {
            _treeViewControl = TreeViewInspector.AddTreeView();
            _treeViewControl.DisplayInInspector = false;
            _treeViewControl.DisplayOnScene     = false;
            _treeViewControl.DisplayOnGame      = false;

            SkillEditorManager.InitTree(_treeViewControl);
        }
Exemplo n.º 3
0
    static void InitSkillTree()
    {
        skillTree = TreeViewInspector.AddTreeView();
        skillTree.DisplayInInspector = false;
        skillTree.DisplayOnGame      = false;
        skillTree.DisplayOnScene     = false;

        curItem        = skillTree.RootItem;
        curItem.Header = "所有技能";
        ItemData itemData = new ItemData();

        itemData.type       = ItemType.Root;
        curItem.DataContext = itemData;
        AddEvents(curItem);

        AddTreeItem();
    }
Exemplo n.º 4
0
    static void CreateTreeView()
    {
        m_treeViewControl = TreeViewInspector.AddTreeView();
        m_treeViewControl.DisplayInInspector = false;
        m_treeViewControl.DisplayOnGame      = false;
        m_treeViewControl.DisplayOnScene     = false;
        m_treeViewControl.X = 600;
        m_treeViewControl.Y = 500;

        _root        = m_treeViewControl.RootItem;
        _root.Header = "所有技能";
        SkillBase data1 = new SkillBase();

        data1.type        = ItemType.None;
        _root.DataContext = data1;
        _curItem          = _root;
        AddEvents(_root);

        CreateSkillItem();
    }