public override void pack() { performLayout(); foreach (GUIItem child in children) { GUIContainer c = child as GUIContainer; if (c != null) { c.pack(); } } }
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; }