示例#1
0
 public VerticalMenu(double x, double y, Input.Input input, int vspacing = 40)
 {
     _input    = input;
     _position = new Vector(x, y, 0);
     ///<remarks>菜单行字间距</remarks>
     _VSpacing = vspacing;
 }
 public HorizontalMenu(double x, double y, Input.Input input, int hspacing = 60)
 {
     _input    = input;
     _position = new Vector(x, y, 0);
     ///<remarks>菜单行字间距</remarks>
     _HSpacing = hspacing;
 }
示例#3
0
 public VerticalMenu(double x, double y, Input.Input input, Color unfocused, Color focused)
 {
     this.input = input;
     position = new Vector(x, y, 0);
     Spacing = 50;
     SetUnfocusedColor(unfocused);
     SetFocusColor(focused);
 }
示例#4
0
 public void Render(Input.Input _input)
 {
     //Gl.glClearColor(0, 0, 1, 0);
     Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
     Gl.glPointSize(5);
     Gl.glBegin(Gl.GL_POINTS);
     {
         Gl.glVertex2f(_input.MousePosition.X, _input.MousePosition.Y);
     }
     Gl.glEnd();
     //_batch.Draw();
 }
 public MouseButtonState(Input input)
 {
     _input       = input;
     _mouseButton = _input.Mouse.UpdateMouseButtons();
 }
 public VerticalMenu(double x, double y, Input.Input input)
 {
     _input = input;
     _position = new Vector(x, y, 0);
     Spacing = 50;
 }
 public RadioVerticalMenu(double x, double y, Input.Input input, int vspacing = 30) : base(x, y, input, vspacing)
 {
 }
 public VerticalMenu(double x, double y, Input.Input input)
 {
     _input    = input;
     _position = new Vector(x, y, 0);
     Spacing   = 50;
 }
 public RadioHorizontalMenu(double x, double y, Input.Input input, int hspacing = 60) : base(x, y, input, hspacing)
 {
 }