added right click to exit advanced search

This commit is contained in:
Anch
2022-08-10 20:49:39 +12:00
parent 38b6691909
commit 71dcf8cc8d
2 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -225,14 +225,11 @@ function AtlasLoot_AdvancedSearchShow()
AtlasLoot_BossName:SetText("Advanced Search");
--AtlasLootDefaultFrame_AdvancedSearchPanel:ClearAllPoints();
--AtlasLootDefaultFrame_AdvancedSearchPanel:SetParent(pFrame[2]);
-- AtlasLootDefaultFrame_AdvancedSearchPanel:ClearAllPoints();
--AtlasLootDefaultFrame_AdvancedSearchPanel:SetPoint(pFrame[1], pFrame[2], pFrame[3], pFrame[4], pFrame[5]);
AtlasLootDefaultFrame_AdvancedSearchPanel:Show();
ATLASLOOT_CURRENTTYPE = "Search";
AtlasLoot:ScrollFrameUpdate();
AtlasLoot:SubTableScrollFrameUpdate("EmptyTable",AtlasLoot_Data);
end
function AtlasLoot_AdvancedSearchClose()
@@ -53,7 +53,9 @@ local lootbground = CreateFrame("Frame", "AtlasLootDefaultFrame_LootBackground",
lootbground:EnableMouse();
lootbground:SetScript("OnMouseDown",function(self, button)
if AtlasLootItemsFrame.refresh[2][AtlasLootItemsFrame.refresh[1]].Back and button == "RightButton" then
AtlasLoot:BackButton_OnClick()
AtlasLoot:BackButton_OnClick();
elseif AtlasLootDefaultFrame_AdvancedSearchPanel:IsVisible() and button == "RightButton" then
AtlasLoot_AdvancedSearchClose();
end
end);
@@ -495,7 +497,7 @@ function AtlasLoot:SubTableScrollFrameUpdate(tablename, dataSource, pFrame, tabl
local value = i + offset
subtableFrame.rows[i]:SetChecked(false);
subtableFrame.rows[i]:SetHighlightTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight", "ADD");
if value <= maxValue and dataSource[tablename][value] then
if value <= maxValue and dataSource[tablename][value] and tablename ~= "SearchMENU" then
local row = subtableFrame.rows[i]
row.dataSource = dataSource;
row.tablename = tablename;