mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
fix: cast bar invisible due to stale ImGui saved window position
The cast bar window used ImGuiCond_FirstUseEver for positioning, so ImGui's .ini state restored a stale off-screen position from a prior session. Switch to ImGuiCond_Always and add NoSavedSettings flag so the bar always renders centered near the bottom of the screen. Also demotes remaining diagnostic logs to LOG_DEBUG.
This commit is contained in:
parent
209c257745
commit
309fd11a7b
3 changed files with 7 additions and 7 deletions
|
|
@ -10620,12 +10620,13 @@ void GameScreen::renderCastBar(game::GameHandler& gameHandler) {
|
|||
float barX = (screenW - barW) / 2.0f;
|
||||
float barY = screenH - 120.0f;
|
||||
|
||||
ImGui::SetNextWindowPos(ImVec2(barX, barY), ImGuiCond_FirstUseEver);
|
||||
ImGui::SetNextWindowPos(ImVec2(barX, barY), ImGuiCond_Always);
|
||||
ImGui::SetNextWindowSize(ImVec2(barW, 40), ImGuiCond_Always);
|
||||
|
||||
ImGuiWindowFlags flags = ImGuiWindowFlags_NoResize |
|
||||
ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar |
|
||||
ImGuiWindowFlags_NoScrollbar;
|
||||
ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings |
|
||||
ImGuiWindowFlags_NoFocusOnAppearing;
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 4.0f);
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.1f, 0.1f, 0.1f, 0.9f));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue