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