예제 #1
0
 public void SetChild(UI_Element child)
 {
     _child = child;
     if (_child != null)
     {
         _child.parent = this;
     }
 }
예제 #2
0
 public UI_Element(Pos pos, Point size, UI_Element parent)
 {
     this.pos        = pos;
     this.size       = size;
     this.parent     = parent;
     this.pos.ego    = this;
     UpdateFunctions = new List <Action>();
     DrawFunctions   = new List <Action>();
 }
예제 #3
0
 public UI_MultiElement(Pos pos, Point size, UI_Element parent, Color bgc) : base(pos, size, parent)
 {
     ui_elements = new List <T>();
 }
예제 #4
0
 public void SetParent(UI_Element parent)
 {
     _parent = parent;
     pos.SetParentIfNotAlreadySet(parent);
 }