Esempio n. 1
0
 public void SetAssetPaths(IEnumerable <string> assets, IEnumerable <string> dependencies)
 {
     DebugLog.Log("VCCommitWindow:SetAssetPaths");
     ProfilerUtilities.BeginSample("CommitWindow::SetAssetPaths");
     assetPaths          = assets.Select(s => new ComposedString(s)).ToList();
     depedencyAssetPaths = dependencies.Select(s => new ComposedString(s)).ToList();
     vcMultiColumnAssetList.SetBaseFilter(BaseFilter);
     RefreshSelection();
     ProfilerUtilities.EndSample();
 }
Esempio n. 2
0
        virtual protected void OnEnable()
        {
            showUnversioned    = EditorPrefs.GetBool("VCWindow/showUnversioned", true);
            showMeta           = EditorPrefs.GetBool("VCWindow/showMeta", true);
            showModifiedNoLock = EditorPrefs.GetBool("VCWindow/showModifiedNoLock", true);
            statusHeight       = EditorPrefs.GetFloat("VCWindow/statusHeight", 400.0f);


            vcMultiColumnAssetList = new VCMultiColumnAssetList();

            vcMultiColumnAssetList.SetBaseFilter(BaseFilter);
            vcMultiColumnAssetList.SetGUIFilter(GUIFilter);

            VCCommands.Instance.StatusCompleted     += RefreshGUI;
            VCCommands.Instance.OperationCompleted  += OperationComplete;
            VCCommands.Instance.ProgressInformation += ProgressInformation;
            VCSettings.SettingChanged += Repaint;

            rect = new Rect(0, statusHeight, position.width, 40.0f);
        }