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:
@@ -1,8 +1,8 @@
|
||||
## Interface: 30300
|
||||
## Interface: 30300
|
||||
## Title: AtlasLoot Ascension Edition
|
||||
## Notes: Shows the possible loot from the bosses
|
||||
## Author: v7 Rebuid Done by: Anch, Rvng
|
||||
## Version: v7.3.2
|
||||
## Version: v7.3.5
|
||||
## X-eMail:
|
||||
## X-Credits: Skray, Szyler and others.
|
||||
## X-Category: Map
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
{"Mythic", 5},
|
||||
{"Ascended", 4},
|
||||
{"Bloodforged", 1},
|
||||
{"Heroic Bloodforged", 100},
|
||||
};
|
||||
|
||||
AtlasLoot.Difficultys["BCDungeon"] = {
|
||||
@@ -56,6 +57,7 @@
|
||||
{"Mythic", 5},
|
||||
{"Ascended", 4},
|
||||
{"Bloodforged", 1},
|
||||
{"Heroic Bloodforged", 100},
|
||||
};
|
||||
|
||||
AtlasLoot.Difficultys["WrathDungeon"] = {
|
||||
@@ -74,6 +76,7 @@
|
||||
{"Mythic", 4},
|
||||
{"Ascended", 5},
|
||||
{"Bloodforged", 1},
|
||||
{"Heroic Bloodforged", 100},
|
||||
};
|
||||
|
||||
AtlasLoot.Difficultys["Crafting"] = {
|
||||
@@ -101,6 +104,7 @@
|
||||
AtlasLoot.Difficultys.Heroic = 3;
|
||||
AtlasLoot.Difficultys.Mythic = 4;
|
||||
AtlasLoot.Difficultys.Ascended = 4;
|
||||
AtlasLoot.Difficultys["Heroic Bloodforged"] = 100;
|
||||
|
||||
AtlasLoot.Difficultys.MythicPlus = {
|
||||
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -703,28 +703,6 @@ function AtlasLoot:FixText(text)
|
||||
-- Tier Tokens
|
||||
text = gsub(text, "#setToken#", AL["Set Token (Click)"]) --Accessory tokens
|
||||
|
||||
-- Dungeon 1 Sets
|
||||
text = gsub(text, "#t0s1#", AL["Wildheart Raiment"])
|
||||
text = gsub(text, "#t0s2#", AL["Beaststalker Armor"])
|
||||
text = gsub(text, "#t0s3#", AL["Magister's Regalia"])
|
||||
text = gsub(text, "#t0s4#", AL["Lightforge Armor"])
|
||||
text = gsub(text, "#t0s5#", AL["Vestments of the Devout"])
|
||||
text = gsub(text, "#t0s6#", AL["Shadowcraft Armor"])
|
||||
text = gsub(text, "#t0s7#", AL["The Elements"])
|
||||
text = gsub(text, "#t0s8#", AL["Dreadmist Raiment"])
|
||||
text = gsub(text, "#t0s9#", AL["Battlegear of Valor"])
|
||||
|
||||
-- Dungeon 2 Sets
|
||||
text = gsub(text, "#t05s1#", AL["Feralheart Raiment"])
|
||||
text = gsub(text, "#t05s2#", AL["Beastmaster Armor"])
|
||||
text = gsub(text, "#t05s3#", AL["Sorcerer's Regalia"])
|
||||
text = gsub(text, "#t05s4#", AL["Soulforge Armor"])
|
||||
text = gsub(text, "#t05s5#", AL["Vestments of the Virtuous"])
|
||||
text = gsub(text, "#t05s6#", AL["Darkmantle Armor"])
|
||||
text = gsub(text, "#t05s7#", AL["The Five Thunders"])
|
||||
text = gsub(text, "#t05s8#", AL["Deathmist Raiment"])
|
||||
text = gsub(text, "#t05s9#", AL["Battlegear of Heroism"])
|
||||
|
||||
-- Dungeon 3 Sets
|
||||
text = gsub(text, "#ds3s1#", AL["Hallowed Raiment"])
|
||||
text = gsub(text, "#ds3s2#", AL["Incanter's Regalia"])
|
||||
|
||||
@@ -124,6 +124,9 @@ On the form of {ID, {normal, heroic, mythic, mythic1, mythic2, ... ,mythicN}}
|
||||
]]
|
||||
function AtlasLoot:FindId(id, difficulty, type, sourceType)
|
||||
if not ItemIDsDatabase[id] then return nil, false end
|
||||
if difficulty == 100 then
|
||||
return ItemIDsDatabase[id]["HeroicBloodforged"], true
|
||||
end
|
||||
if (difficulty == 4 and (type == "BCRaid" or type == "ClassicRaid") and sourceType == "Search") or
|
||||
(difficulty == 5 and (type == "BCRaid" or type == "ClassicRaid") and sourceType ~= "Search") then
|
||||
return ItemIDsDatabase[id]["MythicRaid"], true
|
||||
|
||||
@@ -96,20 +96,20 @@ ItemIDsDatabase[1516965] = { 7516965, 1516965, 1816965, MythicRaid = 2816965, 17
|
||||
|
||||
--Tier 3 Missing Sets
|
||||
|
||||
ItemIDsDatabase[1522418] = { 7522515, 1522515, 1822515, MythicRaid = 2822515, 1722515 }
|
||||
ItemIDsDatabase[1522418] = { 7522515, 1522418, 1822418, MythicRaid = 2822418, 1722418 }
|
||||
ItemIDsDatabase[1522419] = { 7522419, 1522419, 1822419, MythicRaid = 2822419, 1722419 }
|
||||
ItemIDsDatabase[1522416] = { 7522491, 1522491, 1822491, MythicRaid = 2822491, 1722491 }
|
||||
ItemIDsDatabase[1522423] = { 7532491, 1532491, 1832491, MythicRaid = 2832491, 1732491 }
|
||||
ItemIDsDatabase[1522421] = { 7507038, 1507038, 1807038, MythicRaid = 2807038, 1707038 }
|
||||
ItemIDsDatabase[1522422] = { 7522467, 1522467, 1822467, MythicRaid = 2822467, 1722467 }
|
||||
ItemIDsDatabase[1522417] = { 7532429, 1532429, 1832429, MythicRaid = 2832429, 1732429 }
|
||||
ItemIDsDatabase[1522420] = { 7532428, 1532428, 1832428, MythicRaid = 2832428, 1732428 }
|
||||
ItemIDsDatabase[1522466] = { 7522429, 1522429, 1822429, MythicRaid = 2822429, 1722429 }
|
||||
ItemIDsDatabase[1522416] = { 7522491, 1522416, 1822416, MythicRaid = 2822416, 1722416 }
|
||||
ItemIDsDatabase[1522423] = { 7532491, 1522423, 1822423, MythicRaid = 2822423, 1722423 }
|
||||
ItemIDsDatabase[1522421] = { 7507038, 1522421, 1822421, MythicRaid = 2822421, 1722421 }
|
||||
ItemIDsDatabase[1522422] = { 7522467, 1522422, 1822422, MythicRaid = 2822422, 1722422 }
|
||||
ItemIDsDatabase[1522417] = { 7532429, 1522417, 1822417, MythicRaid = 2822417, 1722417 }
|
||||
ItemIDsDatabase[1522420] = { 7532428, 1522420, 1822420, MythicRaid = 2822420, 1722420 }
|
||||
ItemIDsDatabase[1522466] = { 7522429, 1522466, 1822466, MythicRaid = 2822466, 1722466 }
|
||||
|
||||
ItemIDsDatabase[1522467] = { 7522418, 1522418, 1822418, MythicRaid = 2822418, 1722418 }
|
||||
ItemIDsDatabase[1522464] = { 7507037, 1507037, 1807037, MythicRaid = 2807037, 1707037 }
|
||||
ItemIDsDatabase[1522471] = { 7532490, 1532490, 1832490, MythicRaid = 2832490, 1732490 }
|
||||
ItemIDsDatabase[1522469] = { 7522490, 1522490, 1822490, MythicRaid = 2822490, 1722490 }
|
||||
ItemIDsDatabase[1522467] = { 7522418, 1522467, 1822467, MythicRaid = 2822467, 1722467 }
|
||||
ItemIDsDatabase[1522464] = { 7507037, 1522464, 1822464, MythicRaid = 2822464, 1722464 }
|
||||
ItemIDsDatabase[1522471] = { 7532490, 1522471, 1822471, MythicRaid = 2822471, 1722471 }
|
||||
ItemIDsDatabase[1522469] = { 7522490, 1522469, 1822469, MythicRaid = 2822469, 1722469 }
|
||||
ItemIDsDatabase[1522470] = { 7522470, 1522470, 1822470, MythicRaid = 2822470, 1722470 }
|
||||
ItemIDsDatabase[1522465] = { 7522465, 1522465, 1822465, MythicRaid = 2822465, 1722465 }
|
||||
ItemIDsDatabase[1522468] = { 7522468, 1522468, 1822468, MythicRaid = 2822468, 1722468 }
|
||||
@@ -586,4 +586,7 @@ for _, v in pairs(ItemIDsDatabase) do
|
||||
if not v["MythicRaid"] then
|
||||
v["MythicRaid"] = tonumber("13"..v[2])
|
||||
end
|
||||
if not v["HeroicBloodforged"] then
|
||||
v["HeroicBloodforged"] = tonumber("63"..v[2])
|
||||
end
|
||||
end
|
||||
@@ -22,6 +22,7 @@ local INDENT = " "
|
||||
mainframe.TitleText:SetText(AtlasLoot.Version)
|
||||
mainframe:RegisterForDrag("LeftButton")
|
||||
mainframe:EnableKeyboard(true)
|
||||
mainframe:SetToplevel(true)
|
||||
mainframe:Hide()
|
||||
mainframe:SetScript("OnShow", function()
|
||||
AtlasLoot:OnShow()
|
||||
@@ -328,6 +329,14 @@ local searchbtn = CreateFrame("Button","AtlasLootDefaultFrameSearchButton",Atlas
|
||||
AtlasLoot:ShowSearchOptions(self)
|
||||
end
|
||||
end)
|
||||
searchbtn:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine("Left click to search\nRight click to select what modules to search in")
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
searchbtn:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
|
||||
--Last Result Button
|
||||
local lastresult = CreateFrame("Button","AtlasLootDefaultFrameLastResultButton",AtlasLootDefaultFrameSearchBox,"FilterDropDownMenuTemplate")
|
||||
@@ -341,6 +350,14 @@ local lastresult = CreateFrame("Button","AtlasLootDefaultFrameLastResultButton",
|
||||
lastresult:SetPoint("LEFT", "AtlasLootDefaultFrameSearchButton", "RIGHT", 2, 0)
|
||||
lastresult:SetText(AL["Last Result"])
|
||||
lastresult:SetScript("OnClick", function() AtlasLoot:ShowSearchResult() end)
|
||||
lastresult:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine("Open Last Search Result")
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
lastresult:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
|
||||
-- Advanced Search Button
|
||||
local advSearch = CreateFrame("Button","AtlasLootDefaultFrameAdvancedSearchButton", AtlasLootDefaultFrame,"FilterDropDownMenuTemplate")
|
||||
@@ -357,6 +374,14 @@ local advSearch = CreateFrame("Button","AtlasLootDefaultFrameAdvancedSearchButto
|
||||
AtlasLoot:AdvancedSearchShow()
|
||||
AtlasLootDefaultFrameSearchBox:ClearFocus()
|
||||
end)
|
||||
advSearch:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine("Advanced Search")
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
advSearch:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
|
||||
--Wish List Button
|
||||
local wishbtn = CreateFrame("Button", "AtlasLootDefaultFrameWishListButton", AtlasLootDefaultFrame, "FilterDropDownMenuTemplate")
|
||||
@@ -380,12 +405,11 @@ local favorites = CreateFrame("Button", "AtlasLoot_Favorites", AtlasLootDefaultF
|
||||
favorites:SetPoint("LEFT", "AtlasLootDefaultFrameWishListButton", "RIGHT", 2, 0)
|
||||
favorites:SetText("Favorites")
|
||||
favorites:SetSize(150,25)
|
||||
favorites:SetScript("OnClick", function(self) AtlasLoot:ShowFavorites(self) end)
|
||||
favorites.template = "FilterDropDownMenuTemplate"
|
||||
favorites:SetScript("OnEnter", function(self)
|
||||
GameTooltip:ClearLines()
|
||||
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 5)
|
||||
GameTooltip:AddLine("Left click to add to favorites")
|
||||
GameTooltip:AddLine("Left click open a favorite\nAlt + Right click to set favorite")
|
||||
GameTooltip:Show()
|
||||
AtlasLoot_FavoritesPopupFrame:Show()
|
||||
end)
|
||||
@@ -411,7 +435,7 @@ local currentInstance = CreateFrame("Button","AtlasLootDefaultFrame_LoadInstance
|
||||
currentInstance:SetScript("OnEnter", function(self)
|
||||
GameTooltip:ClearLines()
|
||||
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", -(self:GetWidth() / 2), 5)
|
||||
GameTooltip:AddLine("Load the instance you are in")
|
||||
GameTooltip:AddLine("Goto current instances lootpage")
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
currentInstance:SetText("Current Instance")
|
||||
@@ -433,7 +457,7 @@ local popupframe = CreateFrame("Frame", "AtlasLoot_FavoritesPopupFrame", AtlasLo
|
||||
popupframe:SetSize(150, 40)
|
||||
popupframe:Hide()
|
||||
|
||||
--Quick Look Buttons
|
||||
--Favorites Buttons
|
||||
local function presetcreate(preset,num)
|
||||
preset:SetSize(30,30)
|
||||
preset.tex = preset:CreateTexture(nil, "ARTWORK")
|
||||
@@ -453,6 +477,7 @@ local function presetcreate(preset,num)
|
||||
GameTooltip:Show()
|
||||
end
|
||||
end)
|
||||
preset:RegisterForClicks("LeftButtonDown","RightButtonDown")
|
||||
preset:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
if not GetMouseFocus() then return end
|
||||
@@ -461,14 +486,18 @@ local function presetcreate(preset,num)
|
||||
popupframe:Hide()
|
||||
end
|
||||
end)
|
||||
preset:SetScript("OnClick", function()
|
||||
if AtlasLootCharDB["QuickLooks"][num] and AtlasLoot:IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][num][4]) then
|
||||
AtlasLoot.lastModule = AtlasLootCharDB["QuickLooks"][num][4]
|
||||
AtlasLoot.currentTable = AtlasLootCharDB["QuickLooks"][num][5]
|
||||
if AtlasLootCharDB["QuickLooks"][num][2] == "AtlasLootWishList" then
|
||||
AtlasLoot:ShowWishList(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][3])
|
||||
else
|
||||
AtlasLoot:ShowItemsFrame(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][2], AtlasLootCharDB["QuickLooks"][num][3])
|
||||
preset:SetScript("OnClick", function(self, button)
|
||||
if button == "RightButton" and IsAltKeyDown() then
|
||||
AtlasLoot:SetFavorites(num)
|
||||
else
|
||||
if AtlasLootCharDB["QuickLooks"][num] and AtlasLoot:IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][num][4]) then
|
||||
AtlasLoot.lastModule = AtlasLootCharDB["QuickLooks"][num][4]
|
||||
AtlasLoot.currentTable = AtlasLootCharDB["QuickLooks"][num][5]
|
||||
if AtlasLootCharDB["QuickLooks"][num][2] == "AtlasLootWishList" then
|
||||
AtlasLoot:ShowWishList(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][3])
|
||||
else
|
||||
AtlasLoot:ShowItemsFrame(AtlasLootCharDB["QuickLooks"][num][1], AtlasLootCharDB["QuickLooks"][num][2], AtlasLootCharDB["QuickLooks"][num][3])
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -819,7 +848,18 @@ subtableFrame.rows = rows2
|
||||
AtlasLoot:MapMenuOpen(self)
|
||||
end
|
||||
end)
|
||||
|
||||
mainframe.mapButton:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine("Open Map")
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
mainframe.mapButton:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
mainframe.mapButton.mapButtonIcon = mainframe.mapButton:CreateTexture("ARTWORK")
|
||||
mainframe.mapButton.mapButtonIcon:SetSize(19,19)
|
||||
mainframe.mapButton.mapButtonIcon:SetAtlas("many-quests-area")
|
||||
mainframe.mapButton.mapButtonIcon:SetPoint("RIGHT",mainframe.mapButton, -20, -1)
|
||||
-- item data loading icon animation
|
||||
local streamIcon = CreateFrame("Frame", "AtlasLoot_ItemsLoading", AtlaslLoot_LootBackground)
|
||||
streamIcon:SetPoint("TOPRIGHT", AtlaslLoot_LootBackground, "TOPRIGHT")
|
||||
|
||||
@@ -9,6 +9,7 @@ local AL = LibStub("AceLocale-3.0"):GetLocale("AtlasLoot")
|
||||
{ "", "ZGSets"},
|
||||
{ "", "AQ20Sets"},
|
||||
{ "", "T0"},
|
||||
{ "", "T0.5"},
|
||||
{ "", "T1"},
|
||||
{ "", "T2"},
|
||||
{ "", "T2.5"},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user