public nButton Button(string text, nPropClick onClick)
 {
     var b = new nButton() {
     Camera = Camera,
     Color = Color.black,
     Font = "Fonts/Roboto-Regular",
     Texture = "menu.button.1",
     FontSize = 0.2f,
     Position = new Vector2(-5.0f, 3.0f),
     Size = new Vector2(2.8f, 0.4f),
     Text = text,
     Action = onClick
       };
       return b;
 }
Ejemplo n.º 2
0
        public nButton Button(string text, nPropClick onClick)
        {
            var b = new nButton()
            {
                Camera   = Camera,
                Color    = Color.black,
                Font     = "Fonts/Roboto-Regular",
                Texture  = "menu.button.1",
                FontSize = 0.2f,
                Position = new Vector2(-5.0f, 3.0f),
                Size     = new Vector2(2.8f, 0.4f),
                Text     = text,
                Action   = onClick
            };

            return(b);
        }
Ejemplo n.º 3
0
 /** Listen for a click on this object; delegate must be unique */
 public void Listen(nCamera cam, nPropClick click)
 {
     _clicks[click] = cam;
 }