Quantcast
WoWInterface - View Single Post - Hide Tooltip Player/Class-Bar
View Single Post
07-27-21, 05:12 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,050
Here's what I've come up with so far. The brewmaster stagger bar inherits from AlternatePowerBar and that doesn't generate a tooltip from what I see.
Lunar/Insanity/Maelstrom take over the PlayerFrame's built-in power bar and cause AlternatePowerBar to show mana instead.

Lua Code:
  1. --  Disable ClassPowerBar Tooltips
  2. local ClassPowerBarFrames={
  3.     ComboPointPlayerFrame;
  4.     InsanityBarFrame;
  5.     MageArcaneChargesFrame;
  6.     MonkHarmonyBarFrame;
  7.     PaladinPowerBarFrame;
  8.     WarlockPowerFrame;
  9. };
  10. for _,bar in ipairs(ClassPowerBarFrames) do bar:SetTooltip(nil,nil); end
  11.  
  12. --  Manually Disable Tooltips
  13. local LegacyFrames={
  14.     PriestBarFrame;
  15.     RuneFrame.Rune1;
  16.     RuneFrame.Rune2;
  17.     RuneFrame.Rune3;
  18.     RuneFrame.Rune4;
  19.     RuneFrame.Rune5;
  20.     RuneFrame.Rune6;
  21.     TotemFrameTotem1;
  22.     TotemFrameTotem2;
  23.     TotemFrameTotem3;
  24.     TotemFrameTotem4;
  25. };
  26. for _,frame in ipairs(LegacyFrames) do
  27.     frame:SetScript("OnEnter",nil);
  28.     frame:SetScript("OnLeave",nil);
  29. end
  30.  
  31. --  Disable MonkLightEnergyTemplate Tooltips
  32. local LastNumOrbs=0;
  33. hooksecurefunc(MonkHarmonyBarFrame,"UpdateMaxPower",function(self)
  34.     local numorbs=#self.LightEnergy;
  35.     if numorbs>LastNumOrbs then--   Only apply to newly-created frames
  36.         for i=LastNumOrbs+1,numorbs do
  37.             local orb=self.LightEnergy[i];
  38.             orb:SetScript("OnEnter",nil);
  39.             orb:SetScript("OnLeave",nil);
  40.         end
  41.         LastNumOrbs=numorbs;
  42.     end
  43. end);
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 07-27-21 at 05:18 PM.
  Reply With Quote