Share Pastebin
Guest
Public paste!

Brandon T

By: a guest | Jul 31st, 2009 | Syntax: Lua | Size: 0.67 KB | Hits: 47 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. -- XPerl_Player_SetBuffTooltip
  2. function XPerl_Player_SetBuffTooltip(self)
  3.         if (conf.tooltip.enableBuffs and XPerl_TooltipModiferPressed(true)) then
  4.                 if (not conf.tooltip.hideInCombat or not InCombatLockdown()) then
  5.                         GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT")
  6.                         GameTooltip:SetUnitBuff("player", self:GetID())
  7.                 end
  8.         end
  9. end
  10.  
  11. -- XPerl_Player_SetDeBuffTooltip
  12. function XPerl_Player_SetDeBuffTooltip(self)
  13.         if (conf.tooltip.enableBuffs and XPerl_TooltipModiferPressed(true)) then
  14.                 if (not conf.tooltip.hideInCombat or not InCombatLockdown()) then
  15.                         GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT")
  16.                         GameTooltip:SetUnitBuff("player", self:GetID())
  17.                 end
  18.         end
  19. end