Example #1
0
        public static void OpenWindow(IAdminLoginWindow parent)
        {
            AdminLoginWindow window = GetWindow <AdminLoginWindow>();

            window._parent           = parent;
            window.titleContent.text = "Admin Login";
            window.minSize           = new Vector2(250, 50);
            window.maxSize           = new Vector2(250, 50);
            window.Show();
        }
        public static void OpenWindow(IAdminLoginWindow parent, HTFAction <string> checkAction)
        {
            AdminLoginWindow window = GetWindow <AdminLoginWindow>();

            window._parent           = parent;
            window._checkAction      = checkAction;
            window.titleContent.text = "Admin Login";
            window.position          = new Rect(parent.Cast <HTFEditorWindow>().position.center - new Vector2(125, 0), new Vector2(250, 50));
            window.minSize           = new Vector2(250, 50);
            window.maxSize           = new Vector2(250, 50);
            window.Show();
        }