Beispiel #1
0
        private TreeNodeContent ConvertToNode(StoreTreeView store)
        {
            var node = new TreeNodeContent(Constants.DataProvider.NodeType.ProductCatalogGroup, store.ProductCatalogGroupId)
            {
                Name      = store.Name,
                ItemGuid  = store.Guid,
                SortOrder = store.ProductCatalogGroupId
            };

            return(node);
        }
Beispiel #2
0
        void OnInspectorUpdate()
        {
            if (EditorApplication.isPlaying && _tree == null)
            {
                if (Player.Instance != null && Player.Instance.Zone != null)
                {
                    _tree = new StoreTreeView(this, _state);
                    _tree.Reload();
                    _tree.RestoreSelection();
                }
            }

            if (!EditorApplication.isPlaying && _tree != null)
            {
                _tree = null;
            }

            Repaint();
        }