Exemplo n.º 1
0
    public static void ShowWelcomeWindow()
    {
        var window = WindowsPlugin.GetWindowFor("WelcomeWindowViewModel");

        window.title   = "Welcome";
        window.minSize = new Vector2(800, 410);
        window.maxSize = new Vector2(800, 410);
        window.Show();
        window.Focus();
    }
Exemplo n.º 2
0
        public void OnGUI()
        {
            if (ViewModel == null && _windowFactoryId != null)
            {
                WindowsPlugin.BindDrawerToWindow(this, _windowFactoryId);
            }

            if (ViewModel != null)
            {
                foreach (var ufArea in Drawers)
                {
                    DrawArea(ufArea);
                }
            }
        }