From b778fd7cc654f28a2bfe0ff74537f120241b289c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2024 03:11:43 +0200 Subject: Change fonts, nicer combobox, add/remove audio track button --- include/gui/ComboBox.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/gui/ComboBox.hpp') diff --git a/include/gui/ComboBox.hpp b/include/gui/ComboBox.hpp index 70a79a7..b4e7b78 100644 --- a/include/gui/ComboBox.hpp +++ b/include/gui/ComboBox.hpp @@ -2,6 +2,7 @@ #include "Widget.hpp" #include +#include #include #include @@ -21,6 +22,7 @@ namespace gsr { mgl::vec2f get_size() override; private: void update_if_dirty(); + float get_dropdown_arrow_height() const; private: struct Item { mgl::Text text; @@ -30,6 +32,7 @@ namespace gsr { mgl::vec2f max_size; mgl::Font *font; std::vector items; + mgl::Sprite dropdown_arrow; bool dirty = true; bool show_dropdown = false; size_t selected_item = 0; -- cgit v1.2.3