mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: make quest tracker movable, resizable, and right-edge-anchored
- Remove NoDecoration flag to allow ImGui drag/resize - Store questTrackerRightOffset_ instead of absolute X so tracker stays pinned to the right edge when the window is resized - Persist position (right offset + Y) and size in settings.cfg - Clamp to screen bounds after drag
This commit is contained in:
parent
85767187b1
commit
499638142e
2 changed files with 50 additions and 16 deletions
|
|
@ -158,6 +158,8 @@ private:
|
|||
ImVec2 chatWindowPos_ = ImVec2(0.0f, 0.0f);
|
||||
bool chatWindowPosInit_ = false;
|
||||
ImVec2 questTrackerPos_ = ImVec2(-1.0f, -1.0f); // <0 = use default
|
||||
ImVec2 questTrackerSize_ = ImVec2(220.0f, 200.0f); // saved size
|
||||
float questTrackerRightOffset_ = -1.0f; // pixels from right edge; <0 = use default
|
||||
bool questTrackerPosInit_ = false;
|
||||
bool showEscapeMenu = false;
|
||||
bool showEscapeSettingsNotice = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue