Add macro text width option (#35)
* add font width * add font width * set fontWidth
This commit is contained in:
committed by
GitHub
parent
2e7bff63e9
commit
9f523534b8
@@ -539,6 +539,7 @@ function AB:StyleButton(button, noBackdrop, useMasque)
|
||||
|
||||
if macroText then
|
||||
macroText:ClearAllPoints()
|
||||
macroText:SetWidth(self.db.fontWidth)
|
||||
macroText:Point("BOTTOM", 0, 1)
|
||||
macroText:FontTemplate(LSM:Fetch("font", self.db.font), self.db.fontSize, self.db.fontOutline)
|
||||
macroText:SetTextColor(color.r, color.g, color.b)
|
||||
@@ -994,4 +995,4 @@ local function InitializeCallback()
|
||||
AB:Initialize()
|
||||
end
|
||||
|
||||
E:RegisterModule(AB:GetName(), InitializeCallback)
|
||||
E:RegisterModule(AB:GetName(), InitializeCallback)
|
||||
|
||||
Reference in New Issue
Block a user