7.3.4 (#7)
* update to release 7.3.1 * minor tweaks - tweaked the drop location text to display a bit more cleanly - added boss sigils to bc raid tables - added right click context menu to boss name list so you can open db to that boss (only has raids atm) - the All dungeon items list now wont precache past the normal loot * fixs and text display change - updated old locations to have new display - frame now sits on top when selected - fixed some incorrect ids * favorites button change/loot table updates - Changed how favorites buttons are saved you now alt right click them to save - Added missing new t0 sets to classic dungeon sets - Added missing new trash loot weapons to Black temple * minor changes/fixs - fixed t3 incorrect itemids - added heroic bloodforged
This commit is contained in:
@@ -12,7 +12,7 @@ AtlasLoot:ShowItemsFrame()
|
||||
AtlasLoot:NavButton_OnClick()
|
||||
AtlasLoot:IsLootTableAvailable(dataID)
|
||||
AtlasLoot:LoadAllModules()
|
||||
AtlasLoot:ShowFavorites(button)
|
||||
AtlasLoot:SetFavorites(number)
|
||||
AtlasLoot:AddTooltip(frameb, tooltiptext)
|
||||
]]
|
||||
|
||||
@@ -636,7 +636,7 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource_backup, tablenum)
|
||||
|
||||
local difType = false
|
||||
-- Checks to see if type is the same
|
||||
if self.CurrentType ~= dataSource[dataID].Type then
|
||||
if self.CurrentType and self.CurrentType ~= dataSource[dataID].Type then
|
||||
ItemindexID = self.type[dataSource[dataID].Type] or 2
|
||||
difType = true
|
||||
end
|
||||
@@ -831,7 +831,12 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource_backup, tablenum)
|
||||
if self.FixedItemText[dataSource[dataID][tablenum][i].itemID] then
|
||||
extra = self.FixedItemText[dataSource[dataID][tablenum][i].itemID]
|
||||
elseif dataSource[dataID][tablenum][i].desc then
|
||||
extra = dataSource[dataID][tablenum][i].desc
|
||||
if type(dataSource[dataID][tablenum][i].desc) == "table" then
|
||||
local location, boss = dataSource[dataID][tablenum][i].desc[1], dataSource[dataID][tablenum][i].desc[2]
|
||||
extra = YELLOW..location..WHITE.." - "..boss
|
||||
else
|
||||
extra = dataSource[dataID][tablenum][i].desc
|
||||
end
|
||||
elseif dataSource[dataID][tablenum][i].dropLoc and (self.dataSourceBackup == "AtlasLoot_OnDemand" or (self.db.profile.showdropLocationOnSearch and dataID == "SearchResult")) then
|
||||
local location, boss = dataSource[dataID][tablenum][i].dropLoc[1], dataSource[dataID][tablenum][i].dropLoc[2]
|
||||
extra = YELLOW..location..WHITE.." - "..boss
|
||||
@@ -1170,83 +1175,15 @@ function AtlasLoot:LoadAllModules()
|
||||
end
|
||||
|
||||
--[[
|
||||
AtlasLoot:ShowFavorites(button)
|
||||
button: Identity of the button pressed to trigger the function
|
||||
Shows the GUI for setting Quicklooks
|
||||
AtlasLoot:SetFavorites(number)
|
||||
sets the favorite when alt right clicked
|
||||
]]
|
||||
function AtlasLoot:ShowFavorites(button)
|
||||
if self.Dewdrop:IsOpen(button) then
|
||||
self.Dewdrop:Close(1)
|
||||
else
|
||||
local setOptions = function()
|
||||
self.Dewdrop:AddLine(
|
||||
"text", AL["Favorite"].." 1",
|
||||
"tooltipTitle", AL["Favorite"].." 1",
|
||||
"tooltipText", AL["Assign this loot table\n to Favorite"].." 1",
|
||||
"func", function()
|
||||
if AtlasLootItemsFrame.refresh[2] == "AtlasLoot_CurrentWishList" then
|
||||
AtlasLootCharDB["QuickLooks"][1]={AtlasLoot_CurrentWishList["Show"].ListType, "AtlasLootWishList", AtlasLoot_CurrentWishList["Show"].ListNum, self.lastModule, self.currentTable, _G["AtlasLootWishList"][AtlasLoot_CurrentWishList["Show"].ListType][AtlasLoot_CurrentWishList["Show"].ListNum].Name}
|
||||
else
|
||||
AtlasLootCharDB["QuickLooks"][1]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], self.lastModule, self.currentTable, _G[AtlasLootItemsFrame.refreshOri[2]][AtlasLootItemsFrame.refreshOri[1]][AtlasLootItemsFrame.refreshOri[3]].Name}
|
||||
end
|
||||
|
||||
self.Dewdrop:Close(1)
|
||||
end
|
||||
)
|
||||
self.Dewdrop:AddLine(
|
||||
"text", AL["Favorite"].." 2",
|
||||
"tooltipTitle", AL["Favorite"].." 2",
|
||||
"tooltipText", AL["Assign this loot table\n to Favorite"].." 2",
|
||||
"func", function()
|
||||
if AtlasLootItemsFrame.refresh[2] == "AtlasLoot_CurrentWishList" then
|
||||
AtlasLootCharDB["QuickLooks"][2]={AtlasLoot_CurrentWishList["Show"].ListType,
|
||||
"AtlasLootWishList",
|
||||
AtlasLoot_CurrentWishList["Show"].ListNum, self.lastModule,
|
||||
self.currentTable,
|
||||
_G["AtlasLootWishList"][AtlasLoot_CurrentWishList["Show"].ListType][AtlasLoot_CurrentWishList["Show"].ListNum].Name}
|
||||
else
|
||||
AtlasLootCharDB["QuickLooks"][2]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], self.lastModule, self.currentTable, _G[AtlasLootItemsFrame.refreshOri[2]][AtlasLootItemsFrame.refreshOri[1]][AtlasLootItemsFrame.refreshOri[3]].Name}
|
||||
end
|
||||
|
||||
self.Dewdrop:Close(1)
|
||||
end
|
||||
)
|
||||
self.Dewdrop:AddLine(
|
||||
"text", AL["Favorite"].." 3",
|
||||
"tooltipTitle", AL["Favorite"].." 3",
|
||||
"tooltipText", AL["Assign this loot table\n to Favorite"].." 3",
|
||||
"func", function()
|
||||
if AtlasLootItemsFrame.refresh[2] == "AtlasLoot_CurrentWishList" then
|
||||
AtlasLootCharDB["QuickLooks"][3]={AtlasLoot_CurrentWishList["Show"].ListType, "AtlasLootWishList", AtlasLoot_CurrentWishList["Show"].ListNum, self.lastModule, self.currentTable, _G["AtlasLootWishList"][AtlasLoot_CurrentWishList["Show"].ListType][AtlasLoot_CurrentWishList["Show"].ListNum].Name}
|
||||
else
|
||||
AtlasLootCharDB["QuickLooks"][3]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], self.lastModule, self.currentTable, _G[AtlasLootItemsFrame.refreshOri[2]][AtlasLootItemsFrame.refreshOri[1]][AtlasLootItemsFrame.refreshOri[3]].Name}
|
||||
end
|
||||
|
||||
self.Dewdrop:Close(1)
|
||||
end
|
||||
)
|
||||
self.Dewdrop:AddLine(
|
||||
"text", AL["Favorite"].." 4",
|
||||
"tooltipTitle", AL["Favorite"].." 4",
|
||||
"tooltipText", AL["Assign this loot table\n to Favorite"].." 4",
|
||||
"func", function()
|
||||
if AtlasLootItemsFrame.refresh[2] == "AtlasLoot_CurrentWishList" then
|
||||
AtlasLootCharDB["QuickLooks"][4]={AtlasLoot_CurrentWishList["Show"].ListType, "AtlasLootWishList", AtlasLoot_CurrentWishList["Show"].ListNum, self.lastModule, self.currentTable, _G["AtlasLootWishList"][AtlasLoot_CurrentWishList["Show"].ListType][AtlasLoot_CurrentWishList["Show"].ListNum].Name}
|
||||
else
|
||||
AtlasLootCharDB["QuickLooks"][4]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], self.lastModule, self.currentTable, _G[AtlasLootItemsFrame.refreshOri[2]][AtlasLootItemsFrame.refreshOri[1]][AtlasLootItemsFrame.refreshOri[3]].Name}
|
||||
end
|
||||
|
||||
self.Dewdrop:Close(1)
|
||||
end
|
||||
)
|
||||
end
|
||||
self.Dewdrop:Open(button,
|
||||
'point', function(parent)
|
||||
return "BOTTOMLEFT", "BOTTOMRIGHT"
|
||||
end,
|
||||
"children", setOptions
|
||||
)
|
||||
end
|
||||
function AtlasLoot:SetFavorites(num)
|
||||
if AtlasLootItemsFrame.refresh[2] == "AtlasLoot_CurrentWishList" then
|
||||
AtlasLootCharDB["QuickLooks"][num]={AtlasLoot_CurrentWishList["Show"].ListType, "AtlasLootWishList", AtlasLoot_CurrentWishList["Show"].ListNum, self.lastModule, self.currentTable, _G["AtlasLootWishList"][AtlasLoot_CurrentWishList["Show"].ListType][AtlasLoot_CurrentWishList["Show"].ListNum].Name}
|
||||
else
|
||||
AtlasLootCharDB["QuickLooks"][num]={AtlasLootItemsFrame.refreshOri[1], AtlasLootItemsFrame.refreshOri[2], AtlasLootItemsFrame.refreshOri[3], self.lastModule, self.currentTable, _G[AtlasLootItemsFrame.refreshOri[2]][AtlasLootItemsFrame.refreshOri[1]][AtlasLootItemsFrame.refreshOri[3]].Name}
|
||||
end
|
||||
end
|
||||
|
||||
-- Used to precache all the items in a raid/instance
|
||||
@@ -1285,6 +1222,7 @@ function AtlasLoot:LoadItemIDsDatabase()
|
||||
ItemIDsDatabase[data.Normal] = {}
|
||||
ItemIDsDatabase[data.Normal]["MythicRaid"] = tonumber("13"..data.Normal)
|
||||
table.insert(ItemIDsDatabase[data.Normal],data.Bloodforged)
|
||||
table.insert(ItemIDsDatabase[data.Normal],data.HeroicBloodforged)
|
||||
table.insert(ItemIDsDatabase[data.Normal],data.Normal)
|
||||
if data.Heroic ~= 0 then table.insert(ItemIDsDatabase[data.Normal],data.Heroic) end
|
||||
for _,v in ipairs(data["Mythic"]) do
|
||||
|
||||
Reference in New Issue
Block a user