- Registered User
Member for 11 years and 1 day
Last active Fri, Oct, 4 2013 14:32:37
- 0 Followers
- 8 Total Posts
- 0 Thanks
Oct 20, 2008Posted in: General AddOnsQuote from kagaroag may have loaded, but not created a target frame yet
Sorry if I'm being thick... but doesn't that mean there's an onShow fired even though the frame isn't shown or even created yet?
Oct 17, 2008Posted in: General AddOnsQuote from kagaroactually the error is telling you agUFtarget does exist yet
local aUF = LibStub("AceAddon-3.0"):GetAddon("ag_UnitFrames") if aUF.units.aUFtarget then aUF.units.aUFtarget.PortraitModel:SetFrameLevel(6) end
Yeah. But I'm wondering why since the code should'nt even be executed at that point?
Oct 16, 2008Hey there it's me again ;)Posted in: General AddOns
I've added this onShow script to a panel:
local aUF = LibStub("AceAddon-3.0"):GetAddon("ag_UnitFrames") if aUFtarget then aUF.units.aUFtarget.PortraitModel:SetFrameLevel(6) end
Also added ag_UnitFrames to the script dependencies of that panel. It works as intended, however it will fire this Error when I load or re-load the UI:
string "bg_targetFrame_OnShow"] line 3:
attempt to index field 'aUFtarget' (a nil value)
What's my slow brain missing? Since the script is dependant on aguf and the relevant expression only executed if the frame exists aUFtarget should never be nil, right? The error is also fired before the panel is actually shown, which puzzles me a bit since the code should'nt even be executed. As said the script itself seems to work fine.
Oct 15, 2008Posted in: General ChatQuote from KaeltenWe'll soon be offering UIPacks via CurseForge that will be able to have addons soft bundled into it (think pointers if that makes sense, and if not, um..... proxy?)
We'll also have support for bundling SV files with them.
Forgive me if I miss the point, but isn't this counter-productive in many ways?
When I put together a compilation I actually never want any of the included addons to be updated unless it's me doing the update, as an author. This is important because addon updates will lead to errors and/or unintended sideeffects, resulting in my compilation not working the way I intended.
In my opinion you shouldn't offer this functionality at all. If you're going to make a UI-comp and you're serious about it, you'll also set up a decent forum and/or website where users can go to and download the compilations, and where addons are kept up to date by the author who ensures that everythings works the way it was meant to work.
- To post a comment, please login or register a new account.