mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 09:03:51 +00:00
feat: show aura stack/charge count on boss frame aura icons for parity
This commit is contained in:
parent
c0c750a76e
commit
6645845d05
1 changed files with 11 additions and 0 deletions
|
|
@ -9804,6 +9804,17 @@ void GameScreen::renderBossFrames(game::GameHandler& gameHandler) {
|
|||
ImGui::GetWindowDrawList()->AddText(ImVec2(cx, cy), IM_COL32(255, 255, 255, 220), ts);
|
||||
}
|
||||
|
||||
// Stack / charge count — upper-left corner (parity with target/focus frames)
|
||||
if (aura.charges > 1) {
|
||||
ImVec2 baMin = ImGui::GetItemRectMin();
|
||||
char chargeStr[8];
|
||||
snprintf(chargeStr, sizeof(chargeStr), "%u", static_cast<unsigned>(aura.charges));
|
||||
ImGui::GetWindowDrawList()->AddText(ImVec2(baMin.x + 2, baMin.y + 2),
|
||||
IM_COL32(0, 0, 0, 200), chargeStr);
|
||||
ImGui::GetWindowDrawList()->AddText(ImVec2(baMin.x + 1, baMin.y + 1),
|
||||
IM_COL32(255, 220, 50, 255), chargeStr);
|
||||
}
|
||||
|
||||
// Tooltip
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::BeginTooltip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue