From 9c56fa3376e30ffe7c368b98f80e810d8b618055 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sat, 8 Jun 2024 19:41:10 -0300 Subject: [PATCH] Fixing an issue with the loot display at the End of Mythic Plus panel --- Libs/LibLuaServer/LibLuaServer.lua | 60 +++++++++---------- .../window_mythicplus/window_end_of_run.lua | 4 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Libs/LibLuaServer/LibLuaServer.lua b/Libs/LibLuaServer/LibLuaServer.lua index 4c3474a4..8208dacf 100644 --- a/Libs/LibLuaServer/LibLuaServer.lua +++ b/Libs/LibLuaServer/LibLuaServer.lua @@ -269,6 +269,35 @@ function LibStub:IterateLibraries()end ---| "INCLUDE_NAME_PLATE_ONLY" ---| "MAW" +---@class privateaura_anchor : table +---@field unitToken unit +---@field auraIndex number +---@field parent frame +---@field showCountdownFrame boolean +---@field showCountdownNumbers boolean +---@field iconInfo privateaura_iconinfo? +---@field durationAnchor privateaura_anchorbinding? + +---@class privateaura_iconinfo : table +---@field iconAnchor privateaura_anchorbinding +---@field iconWidth number +---@field iconHeight number + +---@class privateaura_anchorbinding : table +---@field point anchorpoint +---@field relativeTo uiobject +---@field relativePoint anchorpoint +---@field offsetX number +---@field offsetY number + +---@class privateaura_appliedsoundinfo : table +---@field unitToken unit +---@field spellID spellid +---@field soundFileName string? +---@field soundFileID number? +---@field outputChannel audiochannels? + +---@class privateaura_soundid : number ---@class aurainfo : table ---@field applications number @@ -761,37 +790,6 @@ LE_PARTY_CATEGORY_INSTANCE = true --functions C_ChatInfo = true - ----@class privateaura_anchor : table ----@field unitToken unit ----@field auraIndex number ----@field parent frame ----@field showCountdownFrame boolean ----@field showCountdownNumbers boolean ----@field iconInfo privateaura_iconinfo? ----@field durationAnchor privateaura_anchorbinding? - ----@class privateaura_iconinfo : table ----@field iconAnchor privateaura_anchorbinding ----@field iconWidth number ----@field iconHeight number - ----@class privateaura_anchorbinding : table ----@field point anchorpoint ----@field relativeTo uiobject ----@field relativePoint anchorpoint ----@field offsetX number ----@field offsetY number - ----@class privateaura_appliedsoundinfo : table ----@field unitToken unit ----@field spellID spellid ----@field soundFileName string? ----@field soundFileID number? ----@field outputChannel audiochannels? - ----@class privateaura_soundid : number - C_UnitAuras = {} ---@param privateAuraAnchor privateaura_anchor diff --git a/frames/window_mythicplus/window_end_of_run.lua b/frames/window_mythicplus/window_end_of_run.lua index 31e4e193..82c01fc8 100644 --- a/frames/window_mythicplus/window_end_of_run.lua +++ b/frames/window_mythicplus/window_end_of_run.lua @@ -173,7 +173,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) @@ -982,6 +982,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()