コード例 #1
0
        public override void pack()
        {
            performLayout();

            foreach (GUIItem child in children)
            {
                GUIContainer c = child as GUIContainer;
                if (c != null)
                {
                    c.pack();
                }
            }
        }
コード例 #2
0
        public void enterGUI(GUIContainer item, bool pauseWorld, bool endWorld)
        {
            if (endWorld)
            {
                if (world != null)
                {
                    world.UnloadContent();
                }
                world = null;
            }
            else
            {
                if (pauseWorld)
                {
                    world.isActive            = false;
                    physicsComponent.isActive = false;
                }
            }

            (graphicsComponent.guiComponent as GameGUIComponent).current = item;
        }