Exemplo n.º 1
0
        private static void OpenWindow()
        {
            ModuleManagerWindow window = GetWindow <ModuleManagerWindow>();

            window.titleContent.text = "Module Manager";
            window.Show();
        }
Exemplo n.º 2
0
        public static void OpenWindow(ModuleManagerWindow moduleManager)
        {
            GitBashWindow window = GetWindow <GitBashWindow>();

            window.titleContent.text = "Git Bash";
            window._moduleManager    = moduleManager;
            window.position          = new Rect(moduleManager.position.center - new Vector2(125, 25), new Vector2(250, 50));
            window.minSize           = new Vector2(250, 50);
            window.maxSize           = new Vector2(250, 50);
            window.Show();
        }
        public static void OpenWindow(ModuleManagerWindow moduleManager, Action <string, string, string> setCredentialsAction)
        {
            CredentialsProviderWindow window = GetWindow <CredentialsProviderWindow>();

            window.titleContent.text     = "Credentials Provider";
            window._moduleManager        = moduleManager;
            window._setCredentialsAction = setCredentialsAction;
            window.position = new Rect(moduleManager.position.center - new Vector2(125, 40), new Vector2(250, 80));
            window.minSize  = new Vector2(250, 80);
            window.maxSize  = new Vector2(250, 80);
            window.Show();
        }