public void Handle_BrowserSelectionChanged(AssetBrowserDirectory newItem) { mCurrentDirectory = newItem; if (newItem == null) { return; } mCurrentDirectory = newItem; UpdateItems(true); }
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; } }
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; } }
private void OnFilesLoaded() { mRootDiretory = new AssetBrowserDirectory(this, FileManager.Instance.FileListing.RootEntry, null); mBrowser.Dispatcher.Invoke(() => OnPropertyChanged("AssetBrowserRoot")); }