Originally Posted by
LordHam
Sorry to bump, but I'm looking for a script/addon to remove role icon and realm from blizzard raid frames. Anyone know how to achieve this?
Yup.
Code:
DefaultCompactUnitFrameOptions.displayRoleIcon = false
That hides roll icons and additionally moves the Names in the top left corner (where the symbols use to be)
Do you know how to make an addon of this? If not, tell me and I'll do the work.
For the Realmnames I take a look when I'm home.
- - - Updated - - -
So this code should hide Realms.
Code:
local known = {}
local function update()
local i, button = 1
repeat
button = _G["CompactRaidFrame"..i]
if button and not known[button] then
known[button] = true
button.name:SetHeight(12)
end
i=i+1
until not button
end
local f = CreateFrame("Frame")
f:SetScript("OnEvent",update)
f:RegisterEvent("PLAYER_LOGIN")
hooksecurefunc("CompactUnitFrame_SetUnit",function(frame, unit)
frame.name:SetHeight(12)
end)