View Single Post
10-11-10, 12:15 AM   #34
Zilver
A Fallenroot Satyr
 
Zilver's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 29
Originally Posted by haste View Post
You should still be able to click them, but it would require 1+ clicks as you can get unlucky and hit it when the frame ignores them.

A hack to solve this is to register AnyDown instead of AnyUp.
Had a go at it again here this morning, after looking through the Spawn & SpawnHeader code I eventually ended up in initialConfigFunction ...

By adding to my CreateUnitFrame function
Code:
self:SetAttribute("*type1", "target")
I now again have the ability to target party units.

Edit: Should this not be set in initialConfigFunction ? when spawning a player you don't need to set it (oUF does set it), but spawning a party you do need to set it (oUF doesn't set it)

Must have still been sleeping, in my first attempt I couldn't get 'self:SetAttribute("*type1", "target")' by adding it to my CreateUnitFrame function, but after looking again I figured out that I was simple adding it to the wrong file, so remember guys 'n girls check you are writing to the right files.

Last edited by Zilver : 10-11-10 at 12:30 AM.
  Reply With Quote