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.