Thread: General Chat
View Single Post
12-28-15, 01:42 PM   #32
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
Originally Posted by semlar View Post
I made "enemy unit frames" out of nameplates a while back which might be easier to select with a controller, but there isn't any association with the physical location of the unit on-screen.
Source code plz?

Originally Posted by semlar View Post
It'll be a lot easier to recreate with the new unit IDs, but given the nature of nameplates, you'll still probably have them constantly rearranging themselves as they spawn and die or move on and off the screen.
Yes, but there might be ways to determine which nameplate to use as "default" beyond using the unit IDs, depending how much information is relayed securely. As an example, if the target nameplate is bigger than others, :GetRect() could be used to determine the target nameplate in a very hacky fashion.

I've had a look at some of the source code from 7.0.1, but I think I'll wait till beta before delving any deeper. It does look rather promising, though.
__________________