mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:00:05 +00:00
Placefile line hover in-work
This commit is contained in:
parent
37d751774d
commit
8dfb9f1105
14 changed files with 243 additions and 36 deletions
|
|
@ -77,7 +77,8 @@ void DrawLayer::Deinitialize()
|
|||
}
|
||||
|
||||
bool DrawLayer::RunMousePicking(
|
||||
const QMapLibreGL::CustomLayerRenderParameters& params)
|
||||
const QMapLibreGL::CustomLayerRenderParameters& params,
|
||||
const glm::vec2& mousePos)
|
||||
{
|
||||
bool itemPicked = false;
|
||||
|
||||
|
|
@ -85,7 +86,7 @@ bool DrawLayer::RunMousePicking(
|
|||
for (auto it = p->drawList_.rbegin(); it != p->drawList_.rend(); ++it)
|
||||
{
|
||||
// Run mouse picking on each draw item
|
||||
if ((*it)->RunMousePicking(params))
|
||||
if ((*it)->RunMousePicking(params, mousePos))
|
||||
{
|
||||
// If a draw item was picked, don't process additional items
|
||||
itemPicked = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue