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 ++++++++++++++++++++++++++++++++++++++++ ui.hpp | 12 +++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) 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