Пример #1
0
        public void Handle_BrowserSelectionChanged(AssetBrowserDirectory newItem)
        {
            mCurrentDirectory = newItem;

            if (newItem == null)
            {
                return;
            }

            mCurrentDirectory = newItem;
            UpdateItems(true);
        }
Пример #2
0
        public AssetBrowserFile(AssetBrowserViewModel viewModel, FileEntry entry, AssetBrowserDirectory parent)
        {
            mEntry    = entry;
            mModel    = viewModel;
            mFullPath = Name;
            var cur = parent;

            while (cur != null && cur.Parent != null)
            {
                mFullPath = cur.Name + "\\" + mFullPath;
                cur       = cur.Parent;
            }
        }
Пример #3
0
        public AssetBrowserViewModel(Dialogs.AssetBrowser browser)
        {
            mBrowser        = browser;
            browser.Loaded += OnInitialized;
            FileManager.Instance.LoadComplete += OnFilesLoaded;
            mRootDiretory = new AssetBrowserDirectory(this, new DirectoryEntry {
                Name = ""
            }, null);
            EditorWindowController.Instance.AssetBrowserModel = this;

            if (ThumbnailCache.ThumnailAdded == null)
            {
                ThumbnailCache.ThumnailAdded += UpdateThumbnail;
            }
        }
Пример #4
0
 private void OnFilesLoaded()
 {
     mRootDiretory = new AssetBrowserDirectory(this, FileManager.Instance.FileListing.RootEntry, null);
     mBrowser.Dispatcher.Invoke(() =>
                                OnPropertyChanged("AssetBrowserRoot"));
 }