-More LootButton Fixes - Crafting and Spells should work
This commit is contained in:
@@ -275,7 +275,13 @@ function AtlasLootItem_OnClick(self ,arg1)
|
|||||||
else
|
else
|
||||||
spellName, _, _, _, _, _, _, _, _ = GetSpellInfo(string.sub(self.itemID, 2));
|
spellName, _, _, _, _, _, _, _, _ = GetSpellInfo(string.sub(self.itemID, 2));
|
||||||
--spellIcon = GetItemIcon(self.dressingroomID);
|
--spellIcon = GetItemIcon(self.dressingroomID);
|
||||||
AtlasLoot_ShowWishListDropDown(self.itemID, self.dressingroomID, "=ds="..spellName, AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
|
if(AtlasLootItemsFrame.refresh[1] == "SearchResult") then
|
||||||
|
local datID, _, datPage = strsplit("|", self.sourcePage);
|
||||||
|
AtlasLoot_ShowWishListDropDown(self.itemID, self.dressingroomID, "=ds="..spellName,
|
||||||
|
AtlasLoot_Data[datID][tonumber(datPage)].Name, self.sourcePage, self);
|
||||||
|
else
|
||||||
|
AtlasLoot_ShowWishListDropDown(self.itemID, self.dressingroomID, "=ds="..spellName, AtlasLoot_BossName:GetText(), self.dataID .. "|" .. "AtlasLoot_Data" .. "|" .. tostring(self.tablenum), self);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif(IsControlKeyDown()) then
|
elseif(IsControlKeyDown()) then
|
||||||
DressUpItemLink("item:"..self.dressingroomID..":0:0:0:0:0:0:0");
|
DressUpItemLink("item:"..self.dressingroomID..":0:0:0:0:0:0:0");
|
||||||
|
|||||||
@@ -682,7 +682,7 @@ local function DoSearch(searchText)
|
|||||||
local spellName = GetSpellName(itemId, atlasName)
|
local spellName = GetSpellName(itemId, atlasName)
|
||||||
if nameMatches(spellName, searchText) then
|
if nameMatches(spellName, searchText) then
|
||||||
spellName = string.sub(atlasName, 1, 4) .. spellName;
|
spellName = string.sub(atlasName, 1, 4) .. spellName;
|
||||||
AddItemToSearchResult(itemId, itemType, spellName, dataID, itemIdBackup)
|
AddItemToSearchResult(itemId, itemType, spellName, dataID, itemIdBackup, AtlasLoot_Difficulty:getMaxDifficulty(data.Type), dataPage);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user