Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public NewMapWindow(Rectangle windowRect)
     : base(windowRect)
 {
     wndPanel = new Panel(new Rectangle(windowRect.X + 4, windowRect.Y + 4, windowRect.Width - 8, windowRect.Height - 8));
 }
Exemplo n.º 4
0
 public ObjectSelectWindow(Rectangle windowRectangle)
     : base(windowRectangle)
 {
     wndPanel = new Panel(new Rectangle(windowRectangle.X + 4, windowRectangle.Y + 4, windowRectangle.Width - 8, windowRectangle.Height - 8));
 }