remove old index_offset code, fix popup_list initial index being offscreen

This commit is contained in:
ITotalJustice
2025-01-07 02:45:42 +00:00
parent ca1b31329d
commit 62183f4524
7 changed files with 8 additions and 31 deletions

View File

@@ -68,7 +68,6 @@ private:
private:
std::vector<Entry> m_entries;
s64 m_index{};
s64 m_index_offset{};
std::unique_ptr<List> m_list;
};

View File

@@ -36,7 +36,6 @@ private:
Items m_items;
Callback m_callback;
s64 m_index; // index in list array
s64 m_index_offset{}; // drawing from array start
std::unique_ptr<List> m_list;

View File

@@ -13,7 +13,6 @@ public:
protected:
std::string m_title;
Vec2 m_offset{};
};
class SidebarEntryBool final : public SidebarEntryBase {
@@ -117,7 +116,6 @@ private:
Side m_side;
Items m_items;
s64 m_index{};
s64 m_index_offset{};
std::unique_ptr<List> m_list;