From 2d3fd6c9183fd7e36673938f374776faa1d4c564 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 15 May 2024 00:56:01 +0200 Subject: [PATCH] Add update_pressed() method to documentation --- docs/docs/reference/elements/iconbutton.md | 2 ++ docs/docs/reference/elements/textbutton.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/docs/reference/elements/iconbutton.md b/docs/docs/reference/elements/iconbutton.md index dceb767..4f48733 100644 --- a/docs/docs/reference/elements/iconbutton.md +++ b/docs/docs/reference/elements/iconbutton.md @@ -56,3 +56,5 @@ Determines if the element should be updated automatically **during your game/app ## Functions ### *void* update_element() Updates the element. +### *void* update_pressed(*bool* is_pressed) +Updates the internal button's value for `pressed`. Use this method to update `pressed`. diff --git a/docs/docs/reference/elements/textbutton.md b/docs/docs/reference/elements/textbutton.md index 241dade..9420570 100644 --- a/docs/docs/reference/elements/textbutton.md +++ b/docs/docs/reference/elements/textbutton.md @@ -36,3 +36,5 @@ Determines if the element should be updated automatically **during your game/app ## Functions ### *void* update_element() Updates the element. +### *void* update_pressed(*bool* is_pressed) +Updates the internal button's value for `pressed`. Use this method to update `pressed`.