//Texturen public Windowelement(Vector2 position, WindowElementType type, Rectangle quelltexturfeld, Texture2D textur) { this.Position = position; this.Type = type; this.Field = quelltexturfeld; this.Texture = textur; }
//Text public Windowelement(Vector2 position, WindowElementType type, string text, SpriteFont font, Color color, bool zentriert) { this.Position = position; this.Type = type; this.Text = text; this.Font = font; this.Color = color; this.Zentriert = zentriert; }
//Eingabezelle public Windowelement(Rectangle feld, WindowElementType type, int lesen, int schreiben, Texture2D texture, SpriteFont font, Color textcolor, Color boxcolor, bool zahleneingabe, int maxstellen) { this.Field = feld; this.Type = type; this.IDLesen = lesen; this.IDSchreiben = schreiben; this.Texture = texture; this.Font = font; this.Color = textcolor; this.Zellenfarbe = boxcolor; this.Zahleneingabe = zahleneingabe; this.MaxStellen = maxstellen; this.Anzeigen = true; this.Text = ""; }