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