Esempio n. 1
0
        protected GuiComponent(GuiComponent parent)
        {
            this.Parent = parent;
            Manager     = parent.Manager;

            Position   = parent.GetInnerCanvasTopLeft();
            Dimensions = new GuiDimensions(new Size(), new Size());

            parent.RegisterChildComponent(this);
        }
Esempio n. 2
0
 protected GuiComponent(GuiComponent parent, Coord position) : this(parent)
 {
     Position = parent.GetInnerCanvasTopLeft() + parent.Position + position;
 }