public Trackbar(string[] values, int value, E._void func) : base("", new Vector2(128, 20)) { Click = func; this.min = 0; this.max = values.Length - 1; this.Value = value; this.values = values.ToList(); text_position_add = new Vector2(10, 5); text_must_color = Color.Black; }
public Button(string text, E._void func) : base(text, new Vector2(128, 32)) { Click = func; text_color = Color.Black; text_must_color = Color.Black; text_size = Fonts.font1.MeasureString(text); text_position_add = new Vector2((size.X - text_size.X) / 2, size.Y - 30); }
public CheckBox(string text, E._void OnChanged) : base(text, Select_) { this.OnChanged = OnChanged; }