From 4cc802fae5081211bfafd1c9872bbb9a0014b511 Mon Sep 17 00:00:00 2001
From: HonkinGamer <66095733+HonkGamer@users.noreply.github.com>
Date: Thu, 10 Sep 2020 19:21:39 -0400
Subject: [PATCH] AutoQuery checkbox fixes
Renamed to ItemAutoQuery
---
AtlasLoot/Core/AtlasLoot.lua | 5 +++--
AtlasLoot/Core/AtlasLoot.xml | 15 +++++++++------
AtlasLoot/Core/Options.lua | 13 +++++++------
AtlasLoot/changelog.txt | 7 +++++--
4 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua
index bf0a686..89bc41d 100644
--- a/AtlasLoot/Core/AtlasLoot.lua
+++ b/AtlasLoot/Core/AtlasLoot.lua
@@ -15,6 +15,7 @@ AtlasLootBoss_OnClick()
AtlasLoot_ShowItemsFrame()
AtlasLoot_GenerateAtlasMenu(dataID, pFrame)
AtlasLoot_SetupForAtlas()
+AtlasLootOptions_ItemAutoQuery()
AtlasLoot_SetItemInfoFrame()
AtlasLootItemsFrame_OnCloseButton()
AtlasLootMenuItem_OnClick()
@@ -90,6 +91,7 @@ local AtlasLootDBDefaults = {
LootlinkTT = false,
ItemSyncTT = false,
EquipCompare = false,
+ ItemAutoQuery = false,
Opaque = false,
ItemIDs = false,
ItemSpam = false,
@@ -105,7 +107,7 @@ local AtlasLootDBDefaults = {
AtlasLootVersion = "1",
AtlasNaggedVersion = "",
FuBarPosition = 1,
- AutoQuery = true,
+ AutoQuery = false,
LoadAllLoDStartup = false,
PartialMatching = true,
LootBrowserStyle = 1,
@@ -1410,7 +1412,6 @@ function AtlasLoot_QueryLootPage()
if (queryitem) and (queryitem ~= nil) and (queryitem ~= "") and (queryitem ~= 0) and (string.sub(queryitem, 1, 1) ~= "s") then
GameTooltip:SetHyperlink("item:"..queryitem..":0:0:0:0:0:0:0");
GameTooltip:SetHyperlink("item:60"..queryitem..":0:0:0:0:0:0:0");
- GameTooltip:SetHyperlink("item:2"..queryitem..":0:0:0:0:0:0:0");
end
i=i+1;
end
diff --git a/AtlasLoot/Core/AtlasLoot.xml b/AtlasLoot/Core/AtlasLoot.xml
index 7ce1bff..8efa9e5 100644
--- a/AtlasLoot/Core/AtlasLoot.xml
+++ b/AtlasLoot/Core/AtlasLoot.xml
@@ -582,7 +582,7 @@
AtlasLoot_10Man25ManToggle();
- if AtlasLoot.db.profile.AutoQuery then
+ if AtlasLoot.db.profile.ItemAutoQuery then
AtlasLoot_QueryLootPage();
end
@@ -606,7 +606,7 @@
AtlasLoot_HeroicModeToggle();
- if AtlasLoot.db.profile.AutoQuery then
+ if AtlasLoot.db.profile.ItemAutoQuery then
AtlasLoot_QueryLootPage();
end
@@ -632,7 +632,7 @@
AtlasLoot_NavButton_OnClick()
- if AtlasLoot.db.profile.AutoQuery then
+ if AtlasLoot.db.profile.ItemAutoQuery then
AtlasLoot_QueryLootPage();
end
@@ -654,6 +654,9 @@
+ if AtlasLoot.db.profile.ItemAutoQuery then
+ AtlasLoot_QueryLootPage();
+ end
local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot");
this:SetText(AL["Query Server"]);
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
@@ -739,7 +742,7 @@
AtlasLoot_NavButton_OnClick()
- if AtlasLoot.db.profile.AutoQuery then
+ if AtlasLoot.db.profile.ItemAutoQuery then
AtlasLoot_QueryLootPage();
end
@@ -1009,7 +1012,7 @@
-
+
@@ -1023,7 +1026,7 @@
getglobal(this:GetName().."Text"):SetText(AL["Auto Query items on page load"]);
- AtlasLootOptions_AutoQuery();
+ AtlasLootOptions_ItemAutoQuery();
diff --git a/AtlasLoot/Core/Options.lua b/AtlasLoot/Core/Options.lua
index c277458..b9ce75f 100644
--- a/AtlasLoot/Core/Options.lua
+++ b/AtlasLoot/Core/Options.lua
@@ -13,7 +13,7 @@ AtlasLootOptions_EquipCompareToggle()
AtlasLootOptions_OpaqueToggle()
AtlasLootOptions_ItemIDToggle()
AtlasLootOptions_ItemSpam()
-AtlasLootOptions_AutoQuery()
+AtlasLootOptions_ItemAutoQuery()
AtlasLootOptions_MinimapToggle()
AtlasLootOptions_LoDSpam()
AtlasLootOptions_LoDStartup()
@@ -46,6 +46,7 @@ function AtlasLootOptions_Init()
AtlasLootOptionsFrameLootlinkTT:SetChecked(AtlasLoot.db.profile.LootlinkTT);
AtlasLootOptionsFrameItemSyncTT:SetChecked(AtlasLoot.db.profile.ItemSyncTT);
AtlasLootOptionsFrameEquipCompare:SetChecked(AtlasLoot.db.profile.EquipCompare);
+ AtlasLootOptionsFrameItemAutoQuery:SetChecked(AtlasLoot.db.profile.ItemAutoQuery);
AtlasLootOptionsFrameOpaque:SetChecked(AtlasLoot.db.profile.Opaque);
AtlasLootOptionsFrameItemID:SetChecked(AtlasLoot.db.profile.ItemIDs);
AtlasLootOptionsFrameItemSpam:SetChecked(AtlasLoot.db.profile.ItemSpam);
@@ -119,11 +120,11 @@ function AtlasLootOptions_ItemSpam()
AtlasLootOptions_Init();
end
-function AtlasLootOptions_AutoQuery()
- if (AtlasLoot.db.profile.AutoQuery) then
- AtlasLoot.db.profile.AutoQuery = false;
+function AtlasLootOptions_ItemAutoQuery()
+ if (AtlasLoot.db.profile.ItemAutoQuery) then
+ AtlasLoot.db.profile.ItemAutoQuery = false;
else
- AtlasLoot.db.profile.AutoQuery = true;
+ AtlasLoot.db.profile.ItemAutoQuery = true;
end
AtlasLootOptions_Init();
end
@@ -228,7 +229,7 @@ function AtlasLoot_CreateOptionsInfoTooltips()
AtlasLoot_AddTooltip("AtlasLootOptionsFrameHidePanel", nil) -- AL["Hide AtlasLoot Panel"]
AtlasLoot_AddTooltip("AtlasLootOptionsFrameItemSpam", nil) -- AL["Suppress Item Query Text"]
AtlasLoot_AddTooltip("AtlasLootOptionsFrameLoDSpam", nil) -- AL["Notify on LoD Module Load"]
- AtlasLoot_AddTooltip("AtlasLootOptionsFrameAutoQuery", nil) -- AL["Auto Query items on page load"]
+ AtlasLoot_AddTooltip("AtlasLootOptionsFrameItemAutoQuery", nil) -- AL["Auto Query items on page load"]
AtlasLoot_AddTooltip("AtlasLootOptionsFrameLootBrowserScale", nil) -- Scale SLIDER
AtlasLoot_AddTooltip("AtlasLootOptionsFrame_ResetAtlasLoot", nil) -- AL["Reset Frames"]
AtlasLoot_AddTooltip("AtlasLootOptionsFrame_ResetWishlist", nil) -- AL["Reset Wishlist"]
diff --git a/AtlasLoot/changelog.txt b/AtlasLoot/changelog.txt
index feea6f0..f72a09d 100644
--- a/AtlasLoot/changelog.txt
+++ b/AtlasLoot/changelog.txt
@@ -29,11 +29,14 @@ TBC improvements contributed by Szyler:
v1.4 06/07/2020
- Sets collection cleanup for TBC
- Added Heroic gear
-- Drowndown menus
+- Dropdown menu visuals/order changed.
+ - To view keys click the Dungeon/Raid headers
--------------------------------------------------------------------------------------------------------
v1.5 09/08/2020
- Bloody item server query
- Optional query on page load
- Bloody Link in chat
-
+ - To link bloody items, click the Query Server button which will load all items and bloody versions
+ Then right click an item and the bloody version will show in chat.
+ (Must have 'Safe Chat Links' enabled in your options)
--------------------------------------------------------------------------------------------------------
\ No newline at end of file