Skip to content

Instantly share code, notes, and snippets.

@haste
Created March 14, 2010 14:09
Show Gist options
  • Save haste/331994 to your computer and use it in GitHub Desktop.
Save haste/331994 to your computer and use it in GitHub Desktop.
local UnitSpecific = {
player = function(self)
-- Player specific layout code.
end,
}
local Shared = function(self, unit)
-- Shared layout code.
if(UnitSpecific[unit]) then
return UnitSpecific[unit](self)
end
end
oUF:RegisterStyle("MyLayout", Shared)
oUF:SetActiveStyle("MyLayout")
oUF:Spawn("player"):SetPoint("CENTER")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment