I’m trying to create an Addon to remove the raid frame playername text, I have the following script which I run on login but it obviously only works for party 1, 2, and 3,
Does anyone know how I can put these scripts into an addon on launch instead? And also preferably make it so it will work for 10 man groups as well?
local MyAddon = CreateFrame("Frame")
function OnWorldEnter()
CompactRaidFrame1Name:SetAlpha(0)
-- rest of the stuff comes here
end
MyAddon:RegisterEvent("PLAYER_ENTERING_WORLD")
MyAddon:SetScript("OnEvent", OnWorldEnter)
Throw that in MyAddon/MyAddon.lua, and follow it up with MyAddon/MyAddon.toc:
## Interface: 90200
MyAddon.lua
No idea how to make it work for 10-man groups, I don’t use the default frames, so can’t easily test.