Able to add items to wishlist from search results
This commit is contained in:
@@ -252,10 +252,10 @@ function AtlasLootItem_OnClick(self ,arg1)
|
|||||||
else
|
else
|
||||||
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
|
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
|
||||||
local datID, _, datPage = strsplit("|", self.sourcePage);
|
local datID, _, datPage = strsplit("|", self.sourcePage);
|
||||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
|
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), AtlasLoot_Data[dataID][tonumber(dataPage)].Name,
|
||||||
AtlasLoot_Data[datID][tonumber(datPage)].Name, self.sourcePage, self);
|
datID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(datPage), self);
|
||||||
else
|
else
|
||||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
|
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
|
||||||
AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
|
AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -77,7 +77,12 @@ function AtlasLoot_WishListAddDropClick(typ, arg2, arg3, arg4)
|
|||||||
DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..AtlasLoot_FixText(itemName)..RED..AL[" already in the WishList!"]..WHITE.." ("..AtlasLootWishList["Own"][arg2].Name..")");
|
DEFAULT_CHAT_FRAME:AddMessage(BLUE..AL["AtlasLoot"]..": "..AtlasLoot_FixText(itemName)..RED..AL[" already in the WishList!"]..WHITE.." ("..AtlasLootWishList["Own"][arg2].Name..")");
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
table.insert(AtlasLootWishList["Own"][arg2], { #AtlasLootWishList["Own"][arg2] + 1, itemID, itemTexture, itemName, AtlasLoot_Data[AtlasLootItemsFrame.refresh[1]].Name, "", "", sourcePage});
|
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
|
||||||
|
local dataID, _, dataPage = strsplit("|", sourcePage);
|
||||||
|
table.insert(AtlasLootWishList["Own"][arg2], { #AtlasLootWishList["Own"][arg2] + 1, itemID, itemTexture, itemName, AtlasLoot_Data[dataID][tonumber(dataPage)].Name, "", "", sourcePage});
|
||||||
|
else
|
||||||
|
table.insert(AtlasLootWishList["Own"][arg2], { #AtlasLootWishList["Own"][arg2] + 1, itemID, itemTexture, itemName, AtlasLoot_Data[AtlasLootItemsFrame.refresh[1]].Name, "", "", sourcePage});
|
||||||
|
end
|
||||||
if AtlasLootWishList["Options"][playerName]["AutoSortWishlist"] then
|
if AtlasLootWishList["Options"][playerName]["AutoSortWishlist"] then
|
||||||
AtlasLoot:SortWishList(nil,"Own", arg2);
|
AtlasLoot:SortWishList(nil,"Own", arg2);
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user