-Added an option to hide the bagsync tooltip modifications.
Xruptor [10-27-12 - 16:06]
-Added an option to hide the bagsync tooltip modifications.
diff --git a/BagSync_Config.lua b/BagSync_Config.lua
index 580ca09..1a1a7b2 100644
--- a/BagSync_Config.lua
+++ b/BagSync_Config.lua
@@ -16,6 +16,9 @@ bgsOpt:SetScript("OnShow", function()
BagSyncConfig_Minimap:SetChecked(BagSyncOpt["enableMinimap"])
BagSyncConfig_GuildInfo:SetChecked(BagSyncOpt["enableGuild"])
BagSyncConfig_MailboxInfo:SetChecked(BagSyncOpt["enableMailbox"])
+ BagSyncConfig_AuctionInfo:SetChecked(BagSyncOpt["enableAuction"])
+ BagSyncConfig_TooltipSearchOnly:SetChecked(BagSyncOpt["tooltipOnlySearch"])
+ BagSyncConfig_EnableBagSyncTooltips:SetChecked(BagSyncOpt["enableTooltips"])
end
end)
@@ -203,3 +206,23 @@ end)
local bgs_TooltipSearchOnly_OptText = bgs_TooltipSearchOnly_Opt:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
bgs_TooltipSearchOnly_OptText:SetPoint("LEFT", bgs_TooltipSearchOnly_Opt, "RIGHT", 0, 1)
bgs_TooltipSearchOnly_OptText:SetText(L["Display modified tooltips ONLY in the BagSync Search window."])
+
+--[[ Toggle for BagSync tooltips]]--
+local bgs_EnableBagSyncTooltips_Opt = CreateFrame("CheckButton", "BagSyncConfig_EnableBagSyncTooltips", bgsOpt, "OptionsBaseCheckButtonTemplate")
+bgs_EnableBagSyncTooltips_Opt:SetPoint("TOPLEFT", 16, -297)
+bgs_EnableBagSyncTooltips_Opt:SetScript("OnClick", function(frame)
+ if BagSyncOpt then
+ if frame:GetChecked() then
+ PlaySound("igMainMenuOptionCheckBoxOn")
+ BagSyncOpt["enableTooltips"] = true
+ if BagSync then BagSync:resetTooltip() end
+ else
+ PlaySound("igMainMenuOptionCheckBoxOff")
+ BagSyncOpt["enableTooltips"] = false
+ if BagSync then BagSync:resetTooltip() end
+ end
+ end
+end)
+local bgs_EnableBagSyncTooltips_OptText = bgs_EnableBagSyncTooltips_Opt:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
+bgs_EnableBagSyncTooltips_OptText:SetPoint("LEFT", bgs_EnableBagSyncTooltips_Opt, "RIGHT", 0, 1)
+bgs_EnableBagSyncTooltips_OptText:SetText(L["Enable BagSync Tooltips"])
diff --git a/localization/localization.lua b/localization/localization.lua
index 5830639..1607bed 100644
--- a/localization/localization.lua
+++ b/localization/localization.lua
@@ -67,6 +67,7 @@
-- ["Display items for both factions (Alliance/Horde)."] = "",
-- ["Display class colors for characters."] = "",
-- ["Display modified tooltips ONLY in the BagSync Search window."] = "",
+-- ["Enable BagSync Tooltips"] = "",
BAGSYNC_L = GetLocale() == "zhCN" and {
["Bags: %d"] = "背包: %d",