public G_Plane CloneChild(GuiElement parent) { G_Plane clone = (G_Plane)base.Clone(parent); clone.guis = new List <GuiElement>(); for (int i = 0; i < guis.Count; i++) { clone.guis.Add(guis[i].Clone(this)); } return(clone); }
public G_ToolTip(Vector2 pos, string text, SpriteFont font, float depth) { this.posL = pos; this.text = text; this.font = font; this.depth = depth; size = font.MeasureString(text) + new Vector2(8, 2); plane = new G_Plane(new M_Rectangle(Vector2.Zero, size), depth); UpdatePos(pos); textColor = Color.Black; plane.areaColor = new Color(255, 255, 255); }