Beispiel #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();
     }
 }
Beispiel #2
0
        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"),
            });
        }
Beispiel #3
0
 protected virtual void OnEnable()
 {
     GitWindows.AddWindow(this);
     if (gitManager != null)
     {
         titleContent.image = gitManager.GetGitStatusIcon();
     }
 }
Beispiel #4
0
        protected virtual void OnEnable()
        {
            GitWindows.AddWindow(this);
            if (gitManager != null)
            {
                titleContent.image = gitManager.GetGitStatusIcon();
            }

            ConstructGUI(rootVisualElement);
        }
Beispiel #5
0
 private void OnEnable()
 {
     GitWindows.AddWindow(this);
     createButtonName = "Save";
     titleContent     = new GUIContent("Stash Save", GitOverlay.icons.stashIcon.image);
 }
Beispiel #6
0
 private void OnEnable()
 {
     titleContent = GitGUI.IconContent("UnityEditor.ConsoleWindow", "GitLog");
     GitWindows.AddWindow(this);
 }
Beispiel #7
0
 private void OnEnable()
 {
     GitWindows.AddWindow(this);
 }
Beispiel #8
0
 protected virtual void OnEnable()
 {
     GitWindows.AddWindow(this);
     serializedObject = new SerializedObject(this);
     Repaint();
 }