Able to add items to wishlist from search results
This commit is contained in:
@@ -252,8 +252,8 @@ function AtlasLootItem_OnClick(self ,arg1)
|
||||
else
|
||||
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
|
||||
local datID, _, datPage = strsplit("|", self.sourcePage);
|
||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
|
||||
AtlasLoot_Data[datID][tonumber(datPage)].Name, self.sourcePage, self);
|
||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(), AtlasLoot_Data[dataID][tonumber(dataPage)].Name,
|
||||
datID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(datPage), self);
|
||||
else
|
||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.itemTexture, _G["AtlasLootItem_"..self:GetID().."_Name"]:GetText(),
|
||||
AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
|
||||
|
||||
@@ -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..")");
|
||||
return;
|
||||
end
|
||||
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
|
||||
AtlasLoot:SortWishList(nil,"Own", arg2);
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user