Update Buttons

entar 2025-08-11 15:35:35 +07:00
parent 01418e04b3
commit 22a78e5626

@ -1 +1,8 @@
# Buttons are a type that specifies a specific rectangle / sprite you can press.
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.