コード例 #1
0
        public override void Render(Rect panelRect)
        {
            GUILayout.BeginArea(panelRect);

            Layout.Center(() =>
            {
                if (GUILayout.Button("Change Panel"))
                {
                    ColourPanel sp = new ColourPanel(Window);
                    Window.PanelManager.ChangePanel(sp);
                }

                if (GUILayout.Button("Navigate"))
                {
                    ColourPanel sp = new ColourPanel(Window);
                    Window.PanelManager.Navigate(sp);
                }

                if (GUILayout.Button("Back"))
                {
                    Window.PanelManager.Back();
                }

                if (GUILayout.Button("Clear Stack"))
                {
                    Window.PanelManager.ClearStack();
                }
            });

            GUILayout.EndArea();
        }
コード例 #2
0
        public override void Render(Rect panelRect)
        {
            GUILayout.BeginArea(panelRect);

            Layout.Center(() =>
            {
                if (GUILayout.Button("New Panels"))
                {
                    ColourPanel sp = new ColourPanel(Window);
                    Window.PanelManager.ChangePanel(sp);
                }
            });

            GUILayout.EndArea();
        }