Thread Tools Display Modes
11-01-22, 08:22 AM   #1
fatal120
A Murloc Raider
Join Date: Oct 2022
Posts: 4
How to disable arena frames in 10.0?

Hey,

So I made an addon that would hide arena frames in arenas, but show them in battlegrounds.

This has since stopped working as of 10.0, and I can't figure out why or how to fix it.

Would appreciate any insight, here's the code:
Code:
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("ZONE_CHANGED_NEW_AREA")
frame:SetScript("OnEvent", function()
    local instanceType = select(2, IsInInstance())
    if instanceType == "arena" then
        SetCVar('showArenaEnemyFrames', 0, 'SHOW_ARENA_ENEMY_FRAMES_TEXT')
    elseif instanceType == "pvp" then
        SetCVar('showArenaEnemyFrames', 1, 'SHOW_ARENA_ENEMY_FRAMES_TEXT')
    end
end)
Even just setting the CVar manually without the addon doesn't work

Thanks

Last edited by fatal120 : 11-01-22 at 01:28 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » How to disable arena frames in 10.0?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off