Nameplates Target Mouse DOWN
Hello, is there a way to target a unit by mouse down on nameplates ? currently it responds to mouse up event.
|
Short answer, no.
The nameplates themselves don't actually handle the click events. They're passed through to WorldFrame that does everything in C code. I don't even think a SecureUnitFrameTemplate can be set up to distinguish OnMouseUp and OnMouseDown events since they run their secure code from OnClick. |
I put a button over the nameplates to target the mouseover, but it makes them to not respond to the mouseover anymore.
It seems not possible to retrieve the GetText() of the name with the SecureHandlerStateTemplate in a secure way. nameplateX are not supported by the SecureActionButtonTemplate, and anyway it seems not possible to retrieve them in a secure way. Overall, i guess it's a dead end. |
Haven't tried it, but maybe this works:
Lua Code:
|
The problem is that the area of mouseover is much bigger than the nameplates area.
It is possible to SetBindingClick "OnEnter" a nameplate area, but one frame must be hidden to retrieve the mouseover, which makes it unavailidable for a "OnLeave" event in order to reactivate it. Maybe by creating a frame box arround the nameplates... thanks for your help |
All times are GMT -6. The time now is 08:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI