From c0dc2dbcd26ca307bd7985c8626a2a1425a961fa Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 24 Jan 2025 00:37:53 +1100 Subject: UI checkbox --- ui.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index e20a18c..1e18fc0 100644 --- a/ui.cpp +++ b/ui.cpp @@ -895,6 +895,46 @@ void UI::Button::on_render() { ); } +UI::Checkbox::Checkbox( + UI* ui, + Element* parent, + const char* text +): Element(ui, parent) { + btn = ui->create_element