Ejemplo n.º 1
0
 private static void PublishDialog(string changelist)
 {
     if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
     {
         CollabPublishDialog collabPublishDialog = CollabPublishDialog.ShowCollabWindow(changelist);
         if (collabPublishDialog.Options.DoPublish)
         {
             Collab.instance.Publish(collabPublishDialog.Options.Comments, true);
         }
     }
 }
Ejemplo n.º 2
0
        public static CollabPublishDialog ShowCollabWindow(string changelist)
        {
            CollabPublishDialog collabPublishDialog = ScriptableObject.CreateInstance <CollabPublishDialog>();

            collabPublishDialog.Changelist = changelist;
            Rect position = new Rect(100f, 100f, 600f, 225f);

            collabPublishDialog.minSize  = new Vector2(position.width, position.height);
            collabPublishDialog.maxSize  = new Vector2(position.width, position.height);
            collabPublishDialog.position = position;
            collabPublishDialog.ShowModal();
            collabPublishDialog.m_Parent.window.m_DontSaveToLayout = true;
            return(collabPublishDialog);
        }
Ejemplo n.º 3
0
        public static CollabPublishDialog ShowCollabWindow(string changelist)
        {
            CollabPublishDialog dialog = ScriptableObject.CreateInstance <CollabPublishDialog>();

            dialog.Changelist = changelist;

            var rect = new Rect(100, 100, 600, 225);

            dialog.minSize  = new Vector2(rect.width, rect.height);
            dialog.maxSize  = new Vector2(rect.width, rect.height);
            dialog.position = rect;
            dialog.ShowModal();

            dialog.m_Parent.window.m_DontSaveToLayout = true;

            return(dialog);
        }