mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:10:05 +00:00
parent
d8eaee2f7f
commit
7694b0bf59
6 changed files with 60 additions and 30 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include <scwx/qt/map/radar_site_layer.hpp>
|
||||
#include <scwx/qt/config/radar_site.hpp>
|
||||
#include <scwx/qt/settings/text_settings.hpp>
|
||||
#include <scwx/qt/util/maplibre.hpp>
|
||||
#include <scwx/qt/util/tooltip.hpp>
|
||||
#include <scwx/common/geographic.hpp>
|
||||
|
|
@ -130,7 +131,10 @@ void RadarSiteLayer::Impl::RenderRadarSite(
|
|||
}
|
||||
|
||||
// Store hover text for mouse picking pass
|
||||
if (ImGui::IsItemHovered())
|
||||
if (settings::TextSettings::Instance()
|
||||
.radar_site_hover_text_enabled()
|
||||
.GetValue() &&
|
||||
ImGui::IsItemHovered())
|
||||
{
|
||||
hoverText_ =
|
||||
fmt::format("{} ({})\n{}\n{}, {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue