Пример #1
0
 //Texturen
 public Windowelement(Vector2 position, WindowElementType type, Rectangle quelltexturfeld, Texture2D textur)
 {
     this.Position = position;
     this.Type = type;
     this.Field = quelltexturfeld;
     this.Texture = textur;
 }
Пример #2
0
 //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;
 }
Пример #3
0
 //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 = "";
 }