View Single Post
07-29-18, 09:30 PM   #9
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
The Azerite Bar does not exist in game yet, because no gear uses it. What I had to do in my ElvUI plugin is check if an Azerite item is found.
Lua Code:
  1. local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem()
  2. if azeriteItemLocation then
  3.     -- do stuff
  4. end
You can create your status bar now, give it starting text, color it, whatever. You'll have to Hide() it until the expansion drops, and any event scripts will have to check as I have above. The code you see is found inside my event handler that updates the bar.
  Reply With Quote