Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public HorizontalMenu(double x, double y, Input.Input input, int hspacing = 60)
 {
     _input    = input;
     _position = new Vector(x, y, 0);
     ///<remarks>菜单行字间距</remarks>
     _HSpacing = hspacing;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 5
0
 public MouseButtonState(Input input)
 {
     _input       = input;
     _mouseButton = _input.Mouse.UpdateMouseButtons();
 }
Exemplo n.º 6
0
 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)
 {
 }