First off, I tried to go post this to Trac first, but I couldn't figure out how to actually create an account for it to be able to login. Someone clue me in on (or point me to the appropriate wiki entry, if such exists) on what I need to do there?
Getting errors with agufFu on login/reloadui. Plugin sorta loads - icon is there, but I get just the FuBar menu settings for it, none of the agUF settings.
[2006/10/16 17:29:52-355]: FuBar_agufFu\core.lua:14: attempt to index field `menu' (a nil value)
FuBar_agufFu\core.lua:14: in main chunk
<in C code>: in function `Warmup_WoW_LoadAddOn'
!!Warmup\Warmup.lua:64: in function <Interface\AddOns\!!Warmup\Warmup.lua:61>
<unknown>:
<in C code>: in function `pcall'
FuBar\FuBar.lua:650: in function <Interface\AddOns\FuBar\FuBar.lua:646>
FuBar\FuBar.lua:917: in function `LoadPlugin'
FuBar\FuBar.lua:1036: in function `event'
AceEvent-2.0\AceEvent-2.0.lua:422: in function <...ce\AddOns\BigWigs\Libs\AceEvent-2.0\AceEvent-2.0.lua:402>
I didn't create the fubar plugin so I don't know what the problem is, however I did change something with the menus recently when I added the options for setting growth direction for subgroups. So I guess the author of the plugin would have to take a look at it again. I am pretty sure it should be very easy to fix.
There's not really much to the plugin itself. Core.lua is this:
local Tablet = AceLibrary("Tablet-2.0")
agufFu = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceConsole-2.0", "AceDB-2.0", "FuBarPlugin-2.0")
agufFu:RegisterDB("agufFuDB")
-- Set default menu options
agufFu.hasIcon = true
agufFu.hasNoColor = true
agufFu.clickableTooltip = false
agufFu.cannotDetachTooltip = true
-- Create an empty option subgroup which will hold all the basic dewdrop/fubar options
aUF.menu.args.fubar =
{
name = "FubarPlugin Options",
desc = "Configure FubarPlugin options",
type = 'group',
args =
{
}
}
-- Only display the basic options when somoene pulls up our bar
agufFu:RegisterChatCommand( {"/agufFu"}, aUF.menu.args.fubar)
-- Setup our menu
function agufFu:OnInitialize()
-- Fubar will append a header, but they included one in their dewdrop menu. I don't know how
-- to get rid of ours, so I get of the dewdrop one. Unfortunately, it won't appear if
-- someone calls /aguf config :(
aUF.menu.args.AddonHeader.name = " "
-- Inject our default menu into aguf's dewdrop
-- Side effect of this is that it will always be visible if somsone does /aguf config :(
AceLibrary("AceConsole-2.0"):InjectAceOptionsTable(self, aUF.menu.args.fubar)
agufFu.OnMenuRequest = aUF.menu
end
function agufFu:OnClick()
aUF.db.profile["raid"].HideFrame=not aUF.db.profile["raid"].HideFrame;aUF:RAID_ROSTER_UPDATE();aUF:CallUnitMethods("UpdateAll",nil,"raid","type")
end
function agufFu:OnTextUpdate()
self:SetText("agUF")
end
function agufFu:OnTooltipUpdate()
Tablet:SetHint("\nLeft-click to show / hide raid frames\nRight-click to display menu")
end
I took at look at it with the hope/intent of being able to fix it myself . . . but I'm really lost as to what to change based on the error message.
Sorry, haven't checked the forums in a few days. I've modified it to work with the aguf's menu changes. If there's anymore problems, please let me know.
He's not storing the menu as a global variable anymore (presumably to let the GC free it up), so I have to get an instance of it and store it myself. It shouldn't be a big deal. If I get some free time, I'll see if I can also generate my menu on the fly instead of storing it in memory. No promises though.
Getting errors with agufFu on login/reloadui. Plugin sorta loads - icon is there, but I get just the FuBar menu settings for it, none of the agUF settings.
I took at look at it with the hope/intent of being able to fix it myself . . . but I'm really lost as to what to change based on the error message.
Dude and if you need help with making an icon or whatever I can easily help you.
I've been using the old method (/aguf config) but I miss the ease of the FuBar plugin. :/
He's not storing the menu as a global variable anymore (presumably to let the GC free it up), so I have to get an instance of it and store it myself. It shouldn't be a big deal. If I get some free time, I'll see if I can also generate my menu on the fly instead of storing it in memory. No promises though.
One of these days, when I actually have enough mythical free time for it, I need to learn LUA and remember/relearn basic programming practices.