Added atonement update to all all players to see on their buff uptime

This commit is contained in:
Tercio Jose
2023-11-06 15:28:14 -03:00
parent d11f8a1ccd
commit 466c67aea4
13 changed files with 2215 additions and 1207 deletions
+5 -5
View File
@@ -745,11 +745,11 @@ function ButtonMetaFunctions:SetTemplate(template)
end
if (template.width) then
self:SetWidth(template.width)
PixelUtil.SetWidth(self.button, template.width)
end
if (template.height) then
self:SetHeight(template.height)
PixelUtil.SetHeight(self.button, template.height)
end
if (template.backdrop) then
@@ -928,7 +928,7 @@ end
detailsFramework:Mixin(buttonObject.button, detailsFramework.WidgetFunctions)
createButtonWidgets(buttonObject.button)
buttonObject.button:SetSize(width or 100, height or 20)
PixelUtil.SetSize(buttonObject.button, width or 100, height or 20)
buttonObject.widget = buttonObject.button
buttonObject.button.MyObject = buttonObject
@@ -964,8 +964,8 @@ end
if (shortMethod == false) then --if is false, do not use auto resize
--do nothing
elseif (not shortMethod) then --if the value is omitted, use the default resize
local new_width = textWidth + 15
buttonObject.button:SetWidth(new_width)
local newWidth = textWidth + 15
PixelUtil.SetWidth(buttonObject.button, newWidth)
elseif (shortMethod == 1) then
local loop = true