add text scrolling to sidebar array

see #87
This commit is contained in:
ITotalJustice
2025-01-12 23:16:12 +00:00
parent fd1d461ea8
commit c762dafc67
5 changed files with 85 additions and 4 deletions

View File

@@ -57,12 +57,16 @@ public:
SidebarEntryArray(std::string title, Items items, std::string& index);
auto Draw(NVGcontext* vg, Theme* theme) -> void override;
auto OnFocusGained() noexcept -> void override;
auto OnFocusLost() noexcept -> void override;
private:
Items m_items;
ListCallback m_list_callback;
Callback m_callback;
s64 m_index;
s64 m_tick{};
float m_text_yoff{};
};
template <typename T>