diff --git a/modules/eqcompare.lua b/modules/eqcompare.lua index f10c595a..f1f5cf8a 100644 --- a/modules/eqcompare.lua +++ b/modules/eqcompare.lua @@ -88,7 +88,7 @@ pfUI:RegisterModule("eqcompare", function () local prevMerchant = ShoppingTooltip1.SetMerchantCompareItem local function SetMerchantCompareItem(self, index, compareItem) - if C.tooltip.compare.basestats == "1" and compareItem == 1 then + if compareItem == 1 then ShowCompareItem(nil, GetMerchantItemLink(index), 1) return false end @@ -97,7 +97,7 @@ pfUI:RegisterModule("eqcompare", function () local prevAuction = ShoppingTooltip1.SetAuctionCompareItem local function SetAuctionCompareItem(self, type, index, compareItem) - if C.tooltip.compare.basestats == "1" and compareItem == 1 then + if compareItem == 1 then ShowCompareItem(nil, GetAuctionItemLink(type, index), 1) return false end @@ -132,9 +132,7 @@ pfUI:RegisterModule("eqcompare", function () local function makeHook(getter) return function(tooltip, arg1, arg2, arg3) - if C.tooltip.compare.basestats == "1" then - ShowCompareItem(tooltip, getter(arg1, arg2, arg3)) - end + ShowCompareItem(tooltip, getter(arg1, arg2, arg3)) end end diff --git a/modules/gui.lua b/modules/gui.lua index 980545c6..bf5726d5 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2759,22 +2759,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, T["Show Movement Speed"], C.tooltip, "movespeed", "checkbox") CreateConfig(nil, T["Custom Transparency"], C.tooltip, "alpha") CreateConfig(nil, T["Status Bar Texture"], C.tooltip.statusbar, "texture", "dropdown", pfUI.gui.dropdowns.uf_bartexture) - CreateConfig(nil, T["Compare Item Base Stats"], C.tooltip.compare, "basestats", "checkbox") - local showAlways = CreateConfig(nil, T["Always Show Item Comparison"], C.tooltip.compare, "showalways", "checkbox") - local function gate() - local on = C.tooltip.compare.basestats == "1" - if on then - showAlways.input:Enable() - showAlways.caption:SetTextColor(1, 1, 1) - else - showAlways.input:Disable() - showAlways.caption:SetTextColor(0.5, 0.5, 0.5) - end - end - gate() - pfUI.events:RegisterCallback("config:changed", function(_, cat, key) - if cat == C.tooltip.compare and key == "basestats" then gate() end - end, "eqcompare-showalways-gate") + CreateConfig(nil, T["Always Show Item Comparison"], C.tooltip.compare, "showalways", "checkbox") CreateConfig(nil, T["Always Show Extended Vendor Values"], C.tooltip.vendor, "showalways", "checkbox") CreateConfig(U["questitem"], T["Show Related Quest On Questitems"], C.tooltip.questitem, "showquest", "checkbox") CreateConfig(U["questitem"], T["Show Required Questitem Count"], C.tooltip.questitem, "showcount", "checkbox")