From 22a78e562633a0e5f2015ba1ecda547250d81293 Mon Sep 17 00:00:00 2001 From: entar Date: Mon, 11 Aug 2025 15:35:35 +0700 Subject: [PATCH] Update Buttons --- Buttons.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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