diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-22 02:14:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-22 02:14:24 +0200 |
commit | 719236d4f41735a96e5a0707c7d964335907ffee (patch) | |
tree | 8ae62a1eaab08338c8b1e2554e8a122026281af7 /include | |
parent | 19f3fe67bfa34f6e92961427c4618ecb047dc177 (diff) |
Main page dropdown buttons when not recording
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/DropdownButton.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Item> items; |