示例#1
0
 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;
 }
示例#2
0
 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);
 }
示例#3
0
 public CheckBox(string text, E._void OnChanged)
     : base(text, Select_)
 {
     this.OnChanged = OnChanged;
 }
示例#4
0
 public CheckBox(string text, E._void OnChanged) : base(text, Select_)
 {
     this.OnChanged = OnChanged;
 }