public InputBox(string title, Rectangle windowRectangle) : base(windowRectangle) { wndPanel = new Panel(new Rectangle(windowRectangle.X + 4, windowRectangle.Y + 4, windowRectangle.Width - 8, windowRectangle.Height - 8)); Title = title; DrawWindow = true; }
public GameScreen() { panel = new lib.UI.Panel(new Vector2(40,40), new Point(400,200), Color.Red * 0.2f, new lib.UI.UIBorder(2,Color.Green)); subPanel = new lib.UI.Panel(new Vector2(40,40), new Point(200,100), Color.Blue, new lib.UI.UIBorder(1,Color.White) ); subPanel.AttachToNode(panel); }
public NewMapWindow(Rectangle windowRect) : base(windowRect) { wndPanel = new Panel(new Rectangle(windowRect.X + 4, windowRect.Y + 4, windowRect.Width - 8, windowRect.Height - 8)); }
public ObjectSelectWindow(Rectangle windowRectangle) : base(windowRectangle) { wndPanel = new Panel(new Rectangle(windowRectangle.X + 4, windowRectangle.Y + 4, windowRectangle.Width - 8, windowRectangle.Height - 8)); }