1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 21:55:25 +02:00

Dehardcode buttonbars (WIP)

This commit is contained in:
Gregor Parzefall
2024-03-12 20:29:33 +01:00
parent 00ef597639
commit 0d482d4859
2 changed files with 83 additions and 75 deletions

View File

@@ -145,6 +145,8 @@ public:
// unhide the button bar
void show();
bool operator!=(const AutoHideButtonBar &other);
private:
ISimpleTextureSource *m_texturesource = nullptr;
irr::video::IVideoDriver *m_driver;
@@ -299,11 +301,7 @@ private:
// map to store the IDs and positions of currently pressed pointers
std::unordered_map<size_t, v2s32> m_pointer_pos;
// settings bar
AutoHideButtonBar m_settings_bar;
// rare controls bar
AutoHideButtonBar m_rare_controls_bar;
std::vector<AutoHideButtonBar> m_buttonbars;
v2s32 getPointerPos();
void emitMouseEvent(EMOUSE_INPUT_EVENT type);