View Single Post
05-27-18, 12:06 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Sounds like it is linked to when the Blizzard Addon is loaded and you make your change, similar to your other query. If you haven't already tried it, use the ADDON_LOADED event to ensure the addon is loaded before you make your changes. The way I do it in lua for simple event watching is as follows.

Lua Code:
  1. local frame = CreateFrame("Frame")
  2. frame:RegisterEvent("ADDON_LOADED")
  3. frame:SetScript("OnEvent", function(self,event,...)
  4.      local args = {...}
  5.      if event == "ADDON_LOADED" and args[0] == "Blizzard_ArenaUI" then
  6.         -- Make any changes you want here
  7.      end
  8. end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote