Exemplo n.º 1
0
        public static CollabCannotPublishDialog ShowCollabWindow(string infoMessage)
        {
            CollabCannotPublishDialog collabCannotPublishDialog = ScriptableObject.CreateInstance <CollabCannotPublishDialog>();

            collabCannotPublishDialog.InfoMessage = infoMessage;
            Rect position = new Rect(100f, 100f, 600f, 150f);

            collabCannotPublishDialog.minSize  = new Vector2(position.width, position.height);
            collabCannotPublishDialog.maxSize  = new Vector2(position.width, position.height);
            collabCannotPublishDialog.position = position;
            collabCannotPublishDialog.ShowModal();
            collabCannotPublishDialog.m_Parent.window.m_DontSaveToLayout = true;
            return(collabCannotPublishDialog);
        }
Exemplo n.º 2
0
        public static CollabCannotPublishDialog ShowCollabWindow(string infoMessage)
        {
            CollabCannotPublishDialog dialog = ScriptableObject.CreateInstance <CollabCannotPublishDialog>();

            dialog.InfoMessage = infoMessage;

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

            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);
        }
Exemplo n.º 3
0
 private static void CannotPublishDialog(string infoMessage)
 {
     CollabCannotPublishDialog.ShowCollabWindow(infoMessage);
 }