private void OnEnable() { minSize = new Vector2(1000, 400); position = new Rect { xMin = Screen.width * 0.5f - this.minSize.x, yMin = Screen.height * 0.5f - this.minSize.y, width = this.minSize.x, height = this.minSize.y }; commitMessageHeight = EditorPrefs.GetFloat("VCCommitWindow/commitMessageHeight", 140.0f); rect = new Rect(0, commitMessageHeight, position.width, 10.0f); vcMultiColumnAssetList = new VCMultiColumnAssetList(Repaint, VCSettings.SelectiveCommit); VCCommands.Instance.StatusCompleted += RefreshSelection; }
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); }