diff --git a/loot.lua b/loot.lua index 391fd20..3b61cc6 100755 --- a/loot.lua +++ b/loot.lua @@ -603,7 +603,7 @@ events:SetScript("OnEvent", function() lootTicker = nil end GogoLoot:showLootFrame("inventory error " .. message) - elseif "BAG_UPDATE" == evt and GogoLoot_Config.enableAutoGray then + elseif "BAG_UPDATE" == evt and GogoLoot_Config.enableAutoGray and WOW_PROJECT_ID ~= WOW_PROJECT_BURNING_CRUSADE_CLASSIC then -- auto gray --debug("BagUpdate!") @@ -684,7 +684,9 @@ events:SetScript("OnEvent", function() GameTooltip:HookScript("OnTooltipSetUnit", function(self) local name, unit = self:GetUnit() if name and unit and GogoLoot:IsCreator(name, UnitFactionGroup(unit)) then - GogoLoot:ShowNotification(name) + if (not UnitInRaid(unit)) and (not UnitInParty(unit)) then + GogoLoot:ShowNotification(name) + end ---GameTooltip:AddLine("\124TInterface\\TargetingFrame\\UI-RaidTargetingIcon_1.png:0\124t GogoLoot Creator \124TInterface\\TargetingFrame\\UI-RaidTargetingIcon_1.png:0\124t ") else GogoLoot:HideNotification() diff --git a/ui.lua b/ui.lua index ef778d9..db36a23 100755 --- a/ui.lua +++ b/ui.lua @@ -41,7 +41,6 @@ StaticPopupDialogs["GOGOLOOT_THRESHOLD_ERROR"] = { preferredIndex = 3 } - GogoLoot.creators = { [1] = { -- NA ["Horde"] = { @@ -544,11 +543,13 @@ function GogoLoot:BuildUI() dropdown:SetDisabled(false) widget:AddChild(dropdown) - local autoGray = checkbox(widget, "Automatic Destroy Gray Items on Loot", nil, nil) - autoGray:SetCallback("OnValueChanged", function() - GogoLoot_Config.enableAutoGray = autoGray:GetValue()--print("Callback! " .. tostring(speedyLoot:GetValue())) - end) - autoGray:SetValue(true == GogoLoot_Config.enableAutoGray) + if WOW_PROJECT_ID ~= WOW_PROJECT_BURNING_CRUSADE_CLASSIC then -- the function requires a hardware event in TBC + local autoGray = checkbox(widget, "Automatic Destroy Gray Items on Loot", nil, nil) + autoGray:SetCallback("OnValueChanged", function() + GogoLoot_Config.enableAutoGray = autoGray:GetValue()--print("Callback! " .. tostring(speedyLoot:GetValue())) + end) + autoGray:SetValue(true == GogoLoot_Config.enableAutoGray) + end local tabs = AceGUI:Create("TabGroup") tabs:SetLayout("Flow")