Added atonement update to all all players to see on their buff uptime
This commit is contained in:
@@ -48,6 +48,8 @@ detailsFramework.ScrollBoxFunctions = {
|
||||
|
||||
--hide all frames that are not in use
|
||||
for index, frame in ipairs(self.Frames) do
|
||||
--the member _InUse is true when the line is used by the refresh function
|
||||
--this member is set to true when the code calls scrollBox:GetLine(index)
|
||||
if (not frame._InUse) then
|
||||
frame:Hide()
|
||||
else
|
||||
@@ -681,3 +683,50 @@ function detailsFramework:CreateAuraScrollBox(parent, name, data, onAuraRemoveCa
|
||||
|
||||
return auraScrollBox
|
||||
end
|
||||
|
||||
|
||||
detailsFramework.CanvasScrollBoxMixin = {
|
||||
|
||||
}
|
||||
|
||||
local canvasScrollBoxDefaultOptions = {
|
||||
width = 600,
|
||||
height = 400,
|
||||
reskin_slider = true,
|
||||
}
|
||||
|
||||
---@class df_canvasscrollbox : scrollframe, df_optionsmixin
|
||||
---@field child frame
|
||||
|
||||
---@param parent frame
|
||||
---@param child frame?
|
||||
---@param name string?
|
||||
---@param options table?
|
||||
---@return df_canvasscrollbox
|
||||
function detailsFramework:CreateCanvasScrollBox(parent, child, name, options)
|
||||
---@type df_canvasscrollbox
|
||||
local canvasScrollBox = CreateFrame("scrollframe", name or ("DetailsFrameworkCanvasScroll" .. math.random(50000, 10000000)), parent, "BackdropTemplate, UIPanelScrollFrameTemplate")
|
||||
|
||||
detailsFramework:Mixin(canvasScrollBox, detailsFramework.CanvasScrollBoxMixin)
|
||||
detailsFramework:Mixin(canvasScrollBox, detailsFramework.OptionsFunctions)
|
||||
|
||||
options = options or {}
|
||||
canvasScrollBox:BuildOptionsTable(canvasScrollBoxDefaultOptions, options)
|
||||
|
||||
canvasScrollBox:SetSize(canvasScrollBox.options.width, canvasScrollBox.options.height)
|
||||
|
||||
if (not child) then
|
||||
child = CreateFrame("frame", "$parentChild", canvasScrollBox)
|
||||
end
|
||||
|
||||
canvasScrollBox:SetScrollChild(child)
|
||||
canvasScrollBox:EnableMouseWheel(true)
|
||||
|
||||
canvasScrollBox.child = child
|
||||
|
||||
if (canvasScrollBox.options.reskin_slider) then
|
||||
detailsFramework:ReskinSlider(canvasScrollBox)
|
||||
end
|
||||
|
||||
return canvasScrollBox
|
||||
end
|
||||
Reference in New Issue
Block a user