button font fix
This commit is contained in:
+1
-2
@@ -168,10 +168,9 @@ function M.button(parent, text_height)
|
|||||||
do
|
do
|
||||||
local label = button:CreateFontString()
|
local label = button:CreateFontString()
|
||||||
label:SetFont(font, text_height)
|
label:SetFont(font, text_height)
|
||||||
label:SetPoint('CENTER', 0, 0)
|
label:SetAllPoints(button)
|
||||||
label:SetJustifyH('CENTER')
|
label:SetJustifyH('CENTER')
|
||||||
label:SetJustifyV('CENTER')
|
label:SetJustifyV('CENTER')
|
||||||
label:SetHeight(text_height)
|
|
||||||
label:SetTextColor(color.text.enabled())
|
label:SetTextColor(color.text.enabled())
|
||||||
button:SetFontString(label)
|
button:SetFontString(label)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user