Originally Posted by sezz
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
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:
local addonName, addon = ... local function onEvent(self,event,arg1,arg2,arg3) if ( event == "ADDON_LOADED" ) then if arg1 == "nUI" then addon.nUILoaded = true elseif arg1 == addonName then if not addon.nUILoaded then LoadAddOn("nUI") end addon.nUILoaded = IsAddOnLoaded("nUI") addon.plugin = plugin addon:OnAddonLoaded() end end 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?