Quantcast
WoWInterface - View Single Post - Nui Error #1
Thread: Nui Error #1
View Single Post
04-21-13, 05:51 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,551
No, just that one line needs to be replaced with the 3 I put there.

If it then reports the same in combat error message on the lines underneath simply move the new end line down to beneath the block of 3 lines that show the tooltip.

So, first try it like this ..
Lua Code:
  1. if owner.aura and owner.active then
  2.    if not InCombatLockdown() then
  3.       self:SetID( owner.aura.id );
  4.    end
  5.    GameTooltip:SetOwner( owner );
  6.    tooltipUpdate( owner );
  7.    GameTooltip:Show();
  8.    -- self:SetScript( "OnUpdate", tooltipUpdate );
  9. end

And if it still errors out try it like this ...
Lua Code:
  1. if owner.aura and owner.active then
  2.    if not InCombatLockdown() then
  3.       self:SetID( owner.aura.id );
  4.       GameTooltip:SetOwner( owner );
  5.       tooltipUpdate( owner );
  6.       GameTooltip:Show();
  7.    end
  8.    -- self:SetScript( "OnUpdate", tooltipUpdate );
  9. end
__________________