コード例 #1
0
 private void OnEnable()
 {
     wantsMouseMove = true;
     GitWindows.AddWindow(this);
     if (!string.IsNullOrEmpty(issuesSerialized))
     {
         DeserialzieIssues(JSON.Parse(issuesSerialized));
         if (currentIssue >= 0)
         {
             var issue = GetIssue(currentIssue);
             if (issue != null)
             {
                 if (string.IsNullOrEmpty(currentCommentsSerialzied))
                 {
                     LoadComments(issue);
                 }
                 else
                 {
                     issue.comments = LoadElements <Comment>(JSON.Parse(currentCommentsSerialzied));
                 }
             }
         }
         Repaint();
     }
 }
コード例 #2
0
ファイル: GitDiffInspector.cs プロジェクト: Amitkapadi/UniGit
        private void OnEnable()
        {
            GitWindows.AddWindow(this);
            compareOptions = new CompareOptions()
            {
                Algorithm    = DiffAlgorithm.Myers,
                ContextLines = 0
            };

            explicitPathsOptions = new ExplicitPathsOptions();

            titleContent = new GUIContent("Diff Inspector", GitGUI.Textures.ZoomTool);
            uberRegex    = new UberRegex(new ColoredRegex[]
            {
                new ColoredRegex("Comments", comments, "green"),
                new ColoredRegex("Strings", strings, "brown"),
                new ColoredRegex("Keywords", keywords, "blue"),
                new ColoredRegex("Types", types, "blue"),
                new ColoredRegex("Methods", methods, "teal"),
                new ColoredRegex("Attributes", attributes, "blue"),
                new ColoredRegex("Defines", defines, "olive"),
                new ColoredRegex("Values", values, "brown"),
                new ColoredRegex("NUmbers", numbers, "brown"),
            });
        }
コード例 #3
0
 protected virtual void OnEnable()
 {
     GitWindows.AddWindow(this);
     if (gitManager != null)
     {
         titleContent.image = gitManager.GetGitStatusIcon();
     }
 }
コード例 #4
0
        protected virtual void OnEnable()
        {
            GitWindows.AddWindow(this);
            if (gitManager != null)
            {
                titleContent.image = gitManager.GetGitStatusIcon();
            }

            ConstructGUI(rootVisualElement);
        }
コード例 #5
0
 private void OnEnable()
 {
     GitWindows.AddWindow(this);
     createButtonName = "Save";
     titleContent     = new GUIContent("Stash Save", GitOverlay.icons.stashIcon.image);
 }
コード例 #6
0
 private void OnEnable()
 {
     titleContent = GitGUI.IconContent("UnityEditor.ConsoleWindow", "GitLog");
     GitWindows.AddWindow(this);
 }
コード例 #7
0
 private void OnEnable()
 {
     GitWindows.AddWindow(this);
 }
コード例 #8
0
ファイル: GitWizard.cs プロジェクト: Amitkapadi/UniGit
 protected virtual void OnEnable()
 {
     GitWindows.AddWindow(this);
     serializedObject = new SerializedObject(this);
     Repaint();
 }