From 6172b367c02691a3bb49889b08162e457b058966 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 6 Sep 2008 11:50:12 +0200 Subject: [PATCH] Pet and Stance Bar will now obey the "Disable Tooltip" setting --- buttonPrototypes/PetButton.lua | 4 +++- specialBars/StanceBar.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/buttonPrototypes/PetButton.lua b/buttonPrototypes/PetButton.lua index bd14408..d79f624 100644 --- a/buttonPrototypes/PetButton.lua +++ b/buttonPrototypes/PetButton.lua @@ -15,7 +15,9 @@ local _G = _G local format = string.format local function onEnter(self, ...) - self:OnEnter(...) + if not (Bartender4.db.profile.tooltip == "nocombat" and InCombatLockdown()) and Bartender4.db.profile.tooltip ~= "disabled" then + self:OnEnter(...) + end KeyBound:Set(self) end diff --git a/specialBars/StanceBar.lua b/specialBars/StanceBar.lua index 9a6e905..8b3c332 100644 --- a/specialBars/StanceBar.lua +++ b/specialBars/StanceBar.lua @@ -154,7 +154,9 @@ function StanceButtonPrototype:ClearSetPoint(...) end local function onEnter(self, ...) - self:OnEnter(...) + if not (Bartender4.db.profile.tooltip == "nocombat" and InCombatLockdown()) and Bartender4.db.profile.tooltip ~= "disabled" then + self:OnEnter(...) + end KeyBound:Set(self) end