remove old index_offset code, fix popup_list initial index being offscreen
This commit is contained in:
@@ -68,7 +68,6 @@ private:
|
||||
private:
|
||||
std::vector<Entry> m_entries;
|
||||
s64 m_index{};
|
||||
s64 m_index_offset{};
|
||||
std::unique_ptr<List> m_list;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user