View Single Post
03-05-12, 06:31 AM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
[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:
  1. RDXEvents:Bind("INIT_VARIABLES_LOADED", nil, function()
  2.    
  3.     if IsAddOnLoaded("QuestKing") then
  4.         RDXDK.RegisterWindowLess({
  5.             name = "desktop_questking",
  6.             Init = function(id)
  7.                 local a = QuestKing_Tracker;
  8.                 if a then a:Hide(); end
  9.                 return a;
  10.             end,
  11.             Open = function(id)
  12.                 local a = QuestKing_Tracker;
  13.                 if a then
  14.                     a:Show();
  15.                     return a;
  16.                 else
  17.                     return nil;
  18.                 end
  19.             end,
  20.             Close = function(id, frame)
  21.                 local a = QuestKing_Tracker;
  22.                 if a then a:Hide(); end
  23.                 return a;
  24.             end,
  25.             Description = "QuestKing",
  26.             Rebuild = function(id, frame)
  27.                 return true;
  28.             end,
  29.             Props = function(mnu, id, frame)
  30.                 table.insert(mnu, {
  31.                     text = VFLI.i18n("Rebuild"),
  32.                     OnClick = function()
  33.                         VFL.poptree:Release();
  34.                         local cls = RDXDK.GetWindowLess(frame._dk_name);
  35.                         if cls then
  36.                             cls.Rebuild(id, frame);
  37.                         end
  38.                     end
  39.                 });
  40.             end
  41.         });
  42.     end
  43. end);
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **

Last edited by unlimit : 03-06-12 at 04:19 AM.
  Reply With Quote