Exemplo n.º 1
0
 public TextBox(Vector2 center, Vector2 size, Color dark, float sizeIn, String value, int maxLength, Menus.Menu menu)
 {
     this.menu   = menu;
     this.sizeIn = sizeIn + sizeIn;
     maxl        = maxLength;
     text        = new StringBuilder(maxl);
     text.Append(value);
     pos        = center;
     this.dark  = dark;
     this.light = Color.Multiply(dark, 1.4f);
     med        = new Color(dark.R, dark.G, light.B);
 }
Exemplo n.º 2
0
 public NumberTextBox(Vector2 center, Vector2 size, Color dark, float sizeIn, int value, int min, int max, Menus.Menu menu)
 {
     this.menu   = menu;
     this.sizeIn = sizeIn + sizeIn;
     text        = new StringBuilder(max.ToString().Length + 1);
     text.Append(value.ToString());
     pos        = center;
     this.dark  = dark;
     this.light = Color.Multiply(dark, 1.4f);
     med        = new Color(dark.R, dark.G, light.B);
     this.min   = min;
     this.max   = max;
 }