Merge remote-tracking branch 'fork/master'
This commit is contained in:
@@ -18,6 +18,9 @@ local C_Timer = C_Timer
|
||||
local GameTooltip = GameTooltip
|
||||
local SOUNDKIT = SOUNDKIT
|
||||
|
||||
local GetItemInfo = GetItemInfo or C_Item.GetItemInfo
|
||||
local GetDetailedItemLevelInfo = GetDetailedItemLevelInfo or C_Item.GetDetailedItemLevelInfo --C_Item.GetDetailedItemLevelInfo does not return a table
|
||||
|
||||
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")
|
||||
|
||||
local mythicDungeonCharts = Details222.MythicPlus.Charts.Listener
|
||||
@@ -84,7 +87,10 @@ _G.MythicDungeonFrames = mythicDungeonFrames
|
||||
--frame to handle loot events
|
||||
local lootFrame = CreateFrame("frame", "DetailsEndOfMythicLootFrame", UIParent)
|
||||
lootFrame:RegisterEvent("BOSS_KILL")
|
||||
lootFrame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED")
|
||||
|
||||
if (C_EventUtils.IsEventValid("ENCOUNTER_LOOT_RECEIVED")) then
|
||||
lootFrame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED")
|
||||
end
|
||||
|
||||
--register the loot players looted at the end of the mythic dungeon
|
||||
lootFrame.LootCache = {}
|
||||
@@ -170,7 +176,7 @@ lootFrame:SetScript("OnEvent", function(self, event, ...)
|
||||
effectiveILvl = effectiveILvl,
|
||||
itemQuality = itemQuality, --this is a number
|
||||
itemID = itemID,
|
||||
time = time()
|
||||
time = GetTime()
|
||||
}
|
||||
table.insert(lootFrame.LootCache[unitName], lootCacheTable)
|
||||
|
||||
@@ -902,6 +908,8 @@ function mythicDungeonFrames.ShowEndOfMythicPlusPanel()
|
||||
readyFrame.RantingLabel = rantingLabel
|
||||
end --end of creating of the readyFrame
|
||||
|
||||
--< end of mythic+ end of run frame creation >--
|
||||
|
||||
--mythic+ finished, showing the readyFrame for the user
|
||||
local readyFrame = mythicDungeonFrames.ReadyFrame
|
||||
readyFrame:Show()
|
||||
|
||||
Reference in New Issue
Block a user