Maintenance Update and Mythic Dungeon Plus development progress

- Dungeon followers now correctly show into the damage done section.
- Fixed an error while statusbar plugin options.
- Framework update.
- Mythic Dungeon Plus code has been separated into six files (was just 2), this will help with the organization
and maintenance of the code.
This commit is contained in:
Tercio Jose
2024-01-31 13:34:00 -03:00
parent d4da0b2f46
commit ee0b350aba
32 changed files with 4476 additions and 2637 deletions
+21
View File
@@ -26,10 +26,12 @@ detailsFramework.ScrollBoxFunctions = {
Refresh = function(self)
--hide all frames and tag as not in use
self._LinesInUse = 0
--self.Frames has a list of frames used by the scrollbox
for index, frame in ipairs(self.Frames) do
if (not self.DontHideChildrenOnPreRefresh) then
frame:Hide()
end
--set the frame as not in use
frame._InUse = nil
end
@@ -39,6 +41,7 @@ detailsFramework.ScrollBoxFunctions = {
offset = self:GetOffsetFaux()
end
--before starting the refresh, check if there's a pre refresh function and call it
if (self.pre_refresh_func) then
detailsFramework:Dispatch(self.pre_refresh_func, self, self.data, offset, self.LineAmount)
end
@@ -428,6 +431,24 @@ function detailsFramework:CreateGridScrollBox(parent, name, refreshFunc, data, c
return scrollBox
end
function detailsFramework.CreateRoundedOptionsScrollBox(parent, name, onRefreshButton, onSelectOption, tbdData, createSelectorButton, gridScrollBoxOptions)
---when the scroll is refreshing the line, the line will call this function for each selection button on it
---@param button df_button
---@param data table
local refreshAuraSelectorFrame = function(button, data)
button.data = data
if (data.tooltip) then
button.tooltip = data.tooltip
end
xpcall(onRefreshButton, geterrorhandler(), button, data)
--set what happen when the user clicks the button
button:SetClickFunction(onSelectOption, button, data)
end
end
--Need to test this and check the "same_name_spells_add(value)" on the OnEnter function
--also need to make sure this can work with any data (global, class, spec) and aura type (buff, debuff)