From 26541f1ced1e4ec66155fd20c28b318207696b28 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 26 Apr 2011 03:27:08 +0000 Subject: [PATCH] - fixed PlayerInfo to only show the "buff canceling is disabled" message when a buff is right-clicked instead of any button click. also clarified the popup message to better explain why the feature is currently disabled - hid "Low Threshold Color" toggle for the PlayerAlternatePower bar since it doesn't make sense for that module --- modules/PlayerAlternatePower.lua | 2 ++ modules/PlayerInfo.lua | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/PlayerAlternatePower.lua b/modules/PlayerAlternatePower.lua index 0c1cb68..9f8a6f8 100644 --- a/modules/PlayerAlternatePower.lua +++ b/modules/PlayerAlternatePower.lua @@ -91,6 +91,8 @@ end function PlayerAlternatePower.prototype:GetOptions() local opts = PlayerAlternatePower.super.prototype.GetOptions(self) + opts["lowThresholdColor"] = nil + opts["hideBlizz"] = { type = "toggle", name = L["Hide Blizzard Frame"], diff --git a/modules/PlayerInfo.lua b/modules/PlayerInfo.lua index 880f9fe..5e42487 100644 --- a/modules/PlayerInfo.lua +++ b/modules/PlayerInfo.lua @@ -53,7 +53,7 @@ end StaticPopupDialogs["ICEHUD_BUFF_DISMISS_UNAVAILABLE"] = { - text = "Sorry, but there is currently no way for custom mods to cancel buffs. This will be fixed whenever Blizzard fixes the API.", + text = "Sorry, but there is currently no simple way for custom mods to cancel buffs while retaining flexibility in how buffs are displayed. This will be fixed whenever the API is more accessible and I get some free time.", button1 = OKAY, timeout = 0, whileDead = 1, @@ -62,7 +62,9 @@ StaticPopupDialogs["ICEHUD_BUFF_DISMISS_UNAVAILABLE"] = local function OnBuffMouseUp(frame, button) if IceHUD.WowVer >= 40000 then - StaticPopup_Show("ICEHUD_BUFF_DISMISS_UNAVAILABLE") + if button == "RightButton" then + StaticPopup_Show("ICEHUD_BUFF_DISMISS_UNAVAILABLE") + end else --[[ if( button == "RightButton" ) then if buffs[i].type == "mh" then