unlimit |
03-05-12 06:31 AM |
[Github] Integration
Below would be the corrected code for QuestKing, in Init and Close you were " return true;" instead of " return a;" which wasn't letting it load at all.
I suspect the same would apply to the Recount integration.
lua Code:
RDXEvents:Bind("INIT_VARIABLES_LOADED", nil, function() if IsAddOnLoaded("QuestKing") then RDXDK.RegisterWindowLess({ name = "desktop_questking", Init = function(id) local a = QuestKing_Tracker; if a then a:Hide(); end return a; end, Open = function(id) local a = QuestKing_Tracker; if a then a:Show(); return a; else return nil; end end, Close = function(id, frame) local a = QuestKing_Tracker; if a then a:Hide(); end return a; end, Description = "QuestKing", Rebuild = function(id, frame) return true; end, Props = function(mnu, id, frame) table.insert(mnu, { text = VFLI.i18n("Rebuild"), OnClick = function() VFL.poptree:Release(); local cls = RDXDK.GetWindowLess(frame._dk_name); if cls then cls.Rebuild(id, frame); end end }); end }); end end);
|