Esempio n. 1
0
        public static void End()
        {
            GUIContext    g      = Application.ImGuiContext;
            WindowManager w      = g.WindowManager;
            Window        window = w.CurrentWindow;

            window.RenderTree.CurrentContainer = window.ClientAreaNode;
            window.ClientAreaNode.OnGUI();
            window.Layout();

            // Pop
            w.WindowStack.RemoveAt(w.WindowStack.Count - 1);
            w.CurrentWindow = (w.WindowStack.Count == 0) ? null : w.WindowStack[w.WindowStack.Count - 1];
        }
Esempio n. 2
0
        public static void End()
        {
            Form          form   = Form.current;
            GUIContext    g      = form.uiContext;
            WindowManager w      = g.WindowManager;
            Window        window = w.CurrentWindow;

            window.RenderTree.CurrentContainer = window.ClientAreaNode;

            window.Layout();

            // Pop
            w.WindowStack.RemoveAt(w.WindowStack.Count - 1);
            w.CurrentWindow = (w.WindowStack.Count == 0) ? null : w.WindowStack[w.WindowStack.Count - 1];
        }