diff --git a/Buttons.md b/Buttons.md index 94729b7..ce217d8 100644 --- a/Buttons.md +++ b/Buttons.md @@ -1 +1,8 @@ -# Buttons are a type that specifies a specific rectangle / sprite you can press. \ No newline at end of file +Buttons are a type that specifies a specific rectangle / sprite you can press. + +# Creating a Button +`Button(Vector2(0, 0), Vector2(50, 50), function)` - First Vector2 specifies the position, Second Vector2 specifies the size of the rectangle. Function specifies what the button will do when pressed. + +# Creating a SpriteButton +You need to have a existing Sprite that you will make a button +`SpriteButton(Sprite, function)` -- It will automatically get made into a SpriteButton. \ No newline at end of file