/// <summary>
 /// creates a new button element
 /// </summary>
 /// <param name="uiManager">the ui manager</param>
 /// <param name="position">the position</param>
 /// <param name="size">the size</param>
 /// <param name="layer">the draw layer</param>
 /// <param name="name">element name</param>
 /// <param name="text">the text shown by this button</param>
 public ButtonElement(UIManager uiManager, Vector2 position, Vector2 size, float layer, string name, string text) : base(uiManager, position, size, layer, name)
 {
     TextPadding = new Vector2(2, 2);
     TextElement = new TextElement(UIManager, TextPadding, Size - TextPadding, Layer + 0.01f, name + "_text", Color.Black, text);
     Click       = null;
 }