Split the window_playerbreakdown_spells.lua into three more files

This commit is contained in:
Tercio Jose
2023-06-08 22:03:37 -03:00
parent 631b3ceaa0
commit cc09a733bf
15 changed files with 1608 additions and 1494 deletions
+10 -7
View File
@@ -83,13 +83,16 @@ frames\window_options2.lua
frames\window_options2_sections.lua
frames\window_api.lua
frames\window_cdtracker.lua
frames\window_playerbreakdown.lua
frames\window_playerbreakdown_list.lua
frames\window_playerbreakdown_compare.lua
frames\window_playerbreakdown_avoidance.lua
frames\window_playerbreakdown_auras.lua
frames\window_playerbreakdown_spells.lua
frames\window_playerbreakdown_spells_options.lua
frames\window_breakdown\window_playerbreakdown.lua
frames\window_breakdown\window_playerbreakdown_list.lua
frames\window_breakdown\window_playerbreakdown_compare.lua
frames\window_breakdown\window_playerbreakdown_avoidance.lua
frames\window_breakdown\window_playerbreakdown_auras.lua
frames\window_breakdown\window_playerbreakdown_spells.lua
frames\window_breakdown\window_playerbreakdown_spells_options.lua
frames\window_breakdown\breakdown_spells_genericframes.lua
frames\window_breakdown\breakdown_spells_spellframes.lua
frames\window_breakdown\breakdown_spells_targetframes.lua
frames\window_report.lua
frames\window_main.lua
frames\window_custom.lua
+10 -7
View File
@@ -77,13 +77,16 @@ frames\window_options2.lua
frames\window_options2_sections.lua
frames\window_api.lua
frames\window_cdtracker.lua
frames\window_playerbreakdown.lua
frames\window_playerbreakdown_list.lua
frames\window_playerbreakdown_compare.lua
frames\window_playerbreakdown_avoidance.lua
frames\window_playerbreakdown_auras.lua
frames\window_playerbreakdown_spells.lua
frames\window_playerbreakdown_spells_options.lua
frames\window_breakdown\window_playerbreakdown.lua
frames\window_breakdown\window_playerbreakdown_list.lua
frames\window_breakdown\window_playerbreakdown_compare.lua
frames\window_breakdown\window_playerbreakdown_avoidance.lua
frames\window_breakdown\window_playerbreakdown_auras.lua
frames\window_breakdown\window_playerbreakdown_spells.lua
frames\window_breakdown\window_playerbreakdown_spells_options.lua
frames\window_breakdown\breakdown_spells_genericframes.lua
frames\window_breakdown\breakdown_spells_spellframes.lua
frames\window_breakdown\breakdown_spells_targetframes.lua
frames\window_report.lua
frames\window_main.lua
frames\window_custom.lua
+10 -7
View File
@@ -77,13 +77,16 @@ frames\window_options2.lua
frames\window_options2_sections.lua
frames\window_api.lua
frames\window_cdtracker.lua
frames\window_playerbreakdown.lua
frames\window_playerbreakdown_list.lua
frames\window_playerbreakdown_compare.lua
frames\window_playerbreakdown_avoidance.lua
frames\window_playerbreakdown_auras.lua
frames\window_playerbreakdown_spells.lua
frames\window_playerbreakdown_spells_options.lua
frames\window_breakdown\window_playerbreakdown.lua
frames\window_breakdown\window_playerbreakdown_list.lua
frames\window_breakdown\window_playerbreakdown_compare.lua
frames\window_breakdown\window_playerbreakdown_avoidance.lua
frames\window_breakdown\window_playerbreakdown_auras.lua
frames\window_breakdown\window_playerbreakdown_spells.lua
frames\window_breakdown\window_playerbreakdown_spells_options.lua
frames\window_breakdown\breakdown_spells_genericframes.lua
frames\window_breakdown\breakdown_spells_spellframes.lua
frames\window_breakdown\breakdown_spells_targetframes.lua
frames\window_report.lua
frames\window_main.lua
frames\window_custom.lua
@@ -0,0 +1,16 @@
local addonName, Details222 = ...
local breakdownWindow = Details.BreakdownWindow
local Loc = LibStub("AceLocale-3.0"):GetLocale("Details")
local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellInfo = GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
local IsShiftKeyDown = IsShiftKeyDown
local DF = DetailsFramework
local tinsert = tinsert
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,15 @@
local addonName, Details222 = ...
local breakdownWindow = Details.BreakdownWindow
local Loc = LibStub("AceLocale-3.0"):GetLocale("Details")
local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellInfo = GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
local IsShiftKeyDown = IsShiftKeyDown
local DF = DetailsFramework
local tinsert = tinsert
@@ -97,10 +97,6 @@ function Details:OpenBreakdownWindow(instanceObject, actorObject, bFromAttribute
---@type number, number
local mainAttribute, subAttribute = instanceObject:GetDisplay()
--create the player list frame in the left side of the window
Details.PlayerBreakdown.CreatePlayerListFrame()
Details.PlayerBreakdown.CreateDumpDataFrame()
if (not Details.row_singleclick_overwrite[mainAttribute] or not Details.row_singleclick_overwrite[mainAttribute][subAttribute]) then
Details:CloseBreakdownWindow()
return
@@ -129,6 +125,10 @@ function Details:OpenBreakdownWindow(instanceObject, actorObject, bFromAttribute
return
end
--create the player list frame in the left side of the window
Details.PlayerBreakdown.CreatePlayerListFrame()
Details.PlayerBreakdown.CreateDumpDataFrame()
if (not breakdownWindow.bHasInitialized) then
local infoNumPoints = breakdownWindow:GetNumPoints()
for i = 1, infoNumPoints do
+4 -3
View File
@@ -1989,11 +1989,12 @@ local lineScript_Onmouseup = function(self, button)
end
end
if (Details.row_singleclick_overwrite [instanceObject.atributo] and type(Details.row_singleclick_overwrite [instanceObject.atributo][instanceObject.sub_atributo]) == "function") then
return Details.row_singleclick_overwrite [instanceObject.atributo][instanceObject.sub_atributo] (_, self.minha_tabela, instanceObject, bIsShiftDown, bIsControlDown)
--if there's a function to overwrite the default behavior
if (Details.row_singleclick_overwrite[instanceObject.atributo] and type(Details.row_singleclick_overwrite[instanceObject.atributo][instanceObject.sub_atributo]) == "function") then
return Details.row_singleclick_overwrite[instanceObject.atributo][instanceObject.sub_atributo](_, self.minha_tabela, instanceObject, bIsShiftDown, bIsControlDown)
end
return Details:ReportSingleLine (instanceObject, self)
return Details:ReportSingleLine(instanceObject, self)
end
if (not self.minha_tabela) then