Beispiel #1
0
 public StatusWindow(WindowManager WM, Interfaces.ISelectable Item)
 {
     this.item         = Item;
     this.AnchorBottom = true;
     this.Width        = 400;
     this.Height       = 160;
     d          = new RichTextDisplay(300, 32, WM);
     d.X        = 2;
     d.Y        = 2;
     this.Title = Item.Name;
     this.AddControl(d);
 }
Beispiel #2
0
 public void Select(Interfaces.ISelectable Selection)
 {
     Console.Write("Clicked on: " + Selection.Name);
     WM.Windows.Remove(StatusWindow);
     Windows.StatusWindow w = new Windows.StatusWindow(WM, Selection);
     if (StatusWindow != null)
     {
         w.X = StatusWindow.X;
         w.Y = StatusWindow.Y;
     }
     WM.Add(w);
     StatusWindow   = w;
     this.Selection = Selection;
 }