added right click to exit advanced search
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user