Commit ef66611d authored by Simpy's avatar Simpy 🐹
Browse files

this first arg can just be nil, its not really required as it defaults

parent df47ff3f
......@@ -350,7 +350,7 @@ function PI:CreateFrame()
f.side:SetWidth(140)
f.side.text = f.side:CreateFontString(nil, 'OVERLAY')
f.side.text:SetPoint('TOP', f.side, 'TOP', 0, -4)
f.side.text:FontTemplate(E.media.normFont, 18, 'OUTLINE')
f.side.text:FontTemplate(nil, 18, 'OUTLINE')
f.side.text:SetText(L["Steps"])
f.side.Lines = {} --Table to keep shown lines
f.side:Hide()
......@@ -365,7 +365,7 @@ function PI:CreateFrame()
button.text = button:CreateFontString(nil, 'OVERLAY')
button.text:SetPoint('TOPLEFT', button, 'TOPLEFT', 2, -2)
button.text:SetPoint('BOTTOMRIGHT', button, 'BOTTOMRIGHT', -2, 2)
button.text:FontTemplate(E.media.normFont, 14, 'OUTLINE')
button.text:FontTemplate(nil, 14, 'OUTLINE')
button:SetScript('OnClick', function() if i <= f.MaxPage then SetPage(i, f.CurrentPage) end end)
button.text:SetText('')
f.side.Lines[i] = button
......
......@@ -29,17 +29,17 @@ function S:LossOfControlFrame()
s.AbilityName:ClearAllPoints()
s.AbilityName:SetPoint('BOTTOM', s, 0, -28)
s.AbilityName.scrollTime = nil;
s.AbilityName:FontTemplate(E.media.normFont, 20, 'OUTLINE')
s.AbilityName:FontTemplate(nil, 20, 'OUTLINE')
s.TimeLeft.NumberText:ClearAllPoints()
s.TimeLeft.NumberText:SetPoint('BOTTOM', s, 4, -58)
s.TimeLeft.NumberText.scrollTime = nil;
s.TimeLeft.NumberText:FontTemplate(E.media.normFont, 20, 'OUTLINE')
s.TimeLeft.NumberText:FontTemplate(nil, 20, 'OUTLINE')
s.TimeLeft.SecondsText:ClearAllPoints()
s.TimeLeft.SecondsText:SetPoint('BOTTOM', s, 0, -80)
s.TimeLeft.SecondsText.scrollTime = nil;
s.TimeLeft.SecondsText:FontTemplate(E.media.normFont, 20, 'OUTLINE')
s.TimeLeft.SecondsText:FontTemplate(nil, 20, 'OUTLINE')
-- always stop shake animation on start
if s.Anim:IsPlaying() then
......
......@@ -121,8 +121,8 @@ function S:MailFrame()
_G.InboxPrevPageButton:SetPoint('BOTTOMLEFT', 30, 100)
_G.InboxNextPageButton:SetPoint('BOTTOMRIGHT', -80, 100)
_G.InvoiceTextFontNormal:FontTemplate(E.media.normFont, 13)
_G.MailTextFontNormal:FontTemplate(E.media.normFont, 13)
_G.InvoiceTextFontNormal:FontTemplate(nil, 13)
_G.MailTextFontNormal:FontTemplate(nil, 13)
_G.InvoiceTextFontNormal:SetTextColor(1, 1, 1)
_G.MailTextFontNormal:SetTextColor(1, 1, 1)
_G.OpenMailArithmeticLine:Kill()
......
......@@ -38,7 +38,7 @@ local function SkinItemButton(_, block)
item.Cooldown:SetInside()
item.Count:ClearAllPoints()
item.Count:SetPoint('TOPLEFT', 1, -1)
item.Count:FontTemplate(E.media.normFont, 14, 'OUTLINE')
item.Count:FontTemplate(nil, 14, 'OUTLINE')
item.Count:SetShadowOffset(5, -5)
E:RegisterCooldown(item.Cooldown)
item.skinned = true
......@@ -72,7 +72,7 @@ local function SkinProgressBars(_, _, line)
if label then
label:ClearAllPoints()
label:SetPoint('CENTER', bar, 0, 1)
label:FontTemplate(E.media.normFont, 14, 'OUTLINE')
label:FontTemplate(nil, 14, 'OUTLINE')
end
if icon then
......
......@@ -206,7 +206,7 @@ function S:PetBattleFrame()
end
-- move duration and change font
frame.Duration:FontTemplate(E.media.normFont, 12, 'OUTLINE')
frame.Duration:FontTemplate(nil, 12, 'OUTLINE')
frame.Duration:ClearAllPoints()
frame.Duration:SetPoint('TOP', frame.Icon, 'BOTTOM', 1, -4)
if turnsRemaining > 0 then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment