Maybe like a function for every unitgroup like player, target, tot, raid and functions for common tasks which are done to several units (like adding a portrait or setting up auras for the frame) .. and call those worker functions from the unitframe function :9
I think tapeworm functions with many conditionals to fit everything in one huge function is bad style .9
give cred for this, used many hours looking through lua files finding it
This is quite weird, i've replaced mine with yours but it behave exactly the same way, menu on player/target/party but nothing on raid.
What could be wrong ?
local function menu(self)
local cunit = self.unit:gsub('(.)', string.upper, 1)
ToggleDropDownMenu(1, nil, _G[cunit..'FrameDropDown'], 'cursor')
ToggleDropDownMenu(1, nil, _G['PartyMemberFrame'..self.id..'DropDown'], 'cursor')
self.name = unit
Guys, I've decided to make it easier for haste and lock this thread. As far as I know it will remain available, but Haste prefers to use seperate threads for layouts (which was my intention too when I made this thread) and oUF core.
Well, the reason I'd do this, is to show support to haste for his decision. It's his addon, that's all. I am cool with keeping this thread, but it would also mean that we or double post a lot wowace <> wowi or that one of both will not thrive. That's all. I feel we owe him the respect.