mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
Add minimap coordinate tooltip and play time warning display
Hovering over the minimap now shows a tooltip with the player's WoW canonical coordinates (X=North, Y=West) and a hint about Ctrl+click pinging. SMSG_PLAY_TIME_WARNING is now parsed (type + minutes) and shown as both a chat message and a UIError overlay rather than silently dropped.
This commit is contained in:
parent
1bc3e6b677
commit
7a1f330655
2 changed files with 39 additions and 1 deletions
|
|
@ -11656,6 +11656,21 @@ void GameScreen::renderMinimapMarkers(game::GameHandler& gameHandler) {
|
|||
}
|
||||
}
|
||||
|
||||
// Hover tooltip: show player's WoW coordinates (canonical X=North, Y=West)
|
||||
{
|
||||
ImVec2 mouse = ImGui::GetMousePos();
|
||||
float mdx = mouse.x - centerX;
|
||||
float mdy = mouse.y - centerY;
|
||||
if (mdx * mdx + mdy * mdy <= mapRadius * mapRadius) {
|
||||
glm::vec3 playerCanon = core::coords::renderToCanonical(playerRender);
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextColored(ImVec4(0.9f, 0.9f, 0.5f, 1.0f),
|
||||
"%.1f, %.1f", playerCanon.x, playerCanon.y);
|
||||
ImGui::TextDisabled("Ctrl+click to ping");
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
auto applyMuteState = [&]() {
|
||||
auto* activeRenderer = core::Application::getInstance().getRenderer();
|
||||
float masterScale = soundMuted_ ? 0.0f : static_cast<float>(pendingMasterVolume) / 100.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue