From 3a20c417cbf7d5db1d9d26abfbda388e58f96c18 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Aug 2024 23:36:11 +0200 Subject: Align list items, dont process selected item twice if changed in event loop, mouse button events should only occur when pressing left mouse button --- include/gui/ComboBox.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include/gui/ComboBox.hpp') diff --git a/include/gui/ComboBox.hpp b/include/gui/ComboBox.hpp index 591901c..70a79a7 100644 --- a/include/gui/ComboBox.hpp +++ b/include/gui/ComboBox.hpp @@ -16,6 +16,7 @@ namespace gsr { void draw(mgl::Window &window, mgl::vec2f offset) override; void add_item(const std::string &text, const std::string &id); + void set_selected_item(const std::string &id); mgl::vec2f get_size() override; private: -- cgit v1.2.3