View Single Post
08-08-20, 11:09 PM   #4
ContactingWoWInterface
A Deviate Faerie Dragon
Join Date: Aug 2020
Posts: 12
Originally Posted by sezz View Post
why don't you use pitbull's combat fader instead or is this feature gone?
Pitbull has a built in feature to control fading in and out of combat, but it doesn't prevent the frame from being clicked. While it does have a "click through" option, that applies to all frames and I don't want that.

Originally Posted by Xrystal View Post
ADDON_LOADED event has one parameter .. the name of the addon ..

So, first, identify the precise addon name for Pitbull . Then in the if statement for testing whether the addon loaded is pitbull .. do your pitbull required functionality then.

This is an example from one of my nUI plugins. I check for both nUI and my own addon.. If this was a plugin that included a third addon window I would check for that as well and make sure all required addons are loaded once the plugin addon is loaded ..
Lua Code:
  1. local addonName, addon = ...
  2.     local function onEvent(self,event,arg1,arg2,arg3)
  3.         if ( event == "ADDON_LOADED" ) then
  4.             if arg1 == "nUI" then
  5.                 addon.nUILoaded = true
  6.             elseif arg1 == addonName then
  7.                 if not addon.nUILoaded then
  8.                     LoadAddOn("nUI")
  9.                 end
  10.                 addon.nUILoaded = IsAddOnLoaded("nUI")
  11.                 addon.plugin = plugin
  12.                 addon:OnAddonLoaded()
  13.             end
  14.         end
  15.     end

Thank you for the example. I'm going to mess around with this and see if I can make something work. If you don't mind me asking, at which point in this script is it checking for your own addon?

Last edited by ContactingWoWInterface : 08-08-20 at 11:58 PM.
  Reply With Quote