From 719236d4f41735a96e5a0707c7d964335907ffee Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 22 Apr 2025 02:14:24 +0200 Subject: Main page dropdown buttons when not recording --- include/gui/DropdownButton.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/gui/DropdownButton.hpp b/include/gui/DropdownButton.hpp index 486e811..f613d86 100644 --- a/include/gui/DropdownButton.hpp +++ b/include/gui/DropdownButton.hpp @@ -21,6 +21,7 @@ namespace gsr { void set_item_label(const std::string &id, const std::string &new_label); void set_item_icon(const std::string &id, mgl::Texture *texture); void set_item_description(const std::string &id, const std::string &new_description); + void set_item_enabled(const std::string &id, bool enabled); void set_description(std::string description_text); void set_activated(bool activated); @@ -36,6 +37,7 @@ namespace gsr { mgl::Text description_text; mgl::Texture *icon_texture = nullptr; std::string id; + bool enabled = true; }; std::vector items; -- cgit v1.2.3-70-g09d2