private void StartBox(Box.BoxStyle BoxStyle) { Box NewBox = new Box(CurrentBox, BoxStyle); Add(NewBox); if (CurrentBox != null) CurrentBox.addChild(NewBox); CurrentBox = NewBox; Updated = true; }
public Box(Box Father, BoxStyle Style) : base(false) { this.Father = Father; if (Father == null) { _Width = Engine.Instance.Screen.Width; _Height = Engine.Instance.Screen.Height; } this.Style = Style; Children = new List<GraphicsComponent>(); }
public void Close() { CurrentBox = CurrentBox.Father; }