Skip to content

Commit

Permalink
fix: correction of call parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jun 22, 2022
1 parent 9b7d841 commit 8018507
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions core/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function F:Mover(text, value, anchor, width, height)
mover:SetHeight(height or self:GetHeight())
mover.bg = F.SetBD(mover)
mover:Hide()
mover.text = F.CreateFS(mover, C.Assets.Font.Regular, 12, 'OUTLINE', text)
mover.text = F.CreateFS(mover, C.Assets.Font.Regular, 12, true, text)
mover.text:SetWordWrap(true)

if not C.DB[key][value] then
Expand Down Expand Up @@ -324,7 +324,7 @@ local function CreateConsole()

local xBox = F.CreateEditBox(frame, 60, 22)
xBox:SetPoint('TOPRIGHT', frame, 'TOP', -12, -15)
F.CreateFS(xBox, C.Assets.Font.Regular, 11, 'OUTLINE', 'X', 'YELLOW', true, 'LEFT', -20, 0)
F.CreateFS(xBox, C.Assets.Font.Regular, 11, true, 'X', 'YELLOW', true, 'LEFT', -20, 0)
xBox:SetJustifyH('CENTER')
xBox.__current = 0
xBox:HookScript('OnEnterPressed', function(self)
Expand All @@ -340,7 +340,7 @@ local function CreateConsole()

local yBox = F.CreateEditBox(frame, 60, 22)
yBox:SetPoint('TOPRIGHT', frame, 'TOP', -12, -39)
F.CreateFS(yBox, C.Assets.Font.Regular, 11, 'OUTLINE', 'Y', 'YELLOW', true, 'LEFT', -20, 0)
F.CreateFS(yBox, C.Assets.Font.Regular, 11, true, 'Y', 'YELLOW', true, 'LEFT', -20, 0)
yBox:SetJustifyH('CENTER')
yBox.__current = 0
yBox:HookScript('OnEnterPressed', function(self)
Expand Down
6 changes: 3 additions & 3 deletions modules/map/minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function MAP:CreatePendingInvitation()
invt:SetSize(300, 80)
invt:Hide()
F.SetBD(invt)
F.CreateFS(invt, C.Assets.Font.Regular, 14, 'OUTLINE', _G.GAMETIME_TOOLTIP_CALENDAR_INVITES, 'BLUE')
F.CreateFS(invt, C.Assets.Font.Regular, 14, true, _G.GAMETIME_TOOLTIP_CALENDAR_INVITES, 'BLUE')

local function updateInviteVisibility()
invt:SetShown(C_Calendar.GetNumPendingInvites() > 0)
Expand Down Expand Up @@ -324,7 +324,7 @@ function MAP:WhoPings()

local f = CreateFrame('Frame', nil, _G.Minimap)
f:SetAllPoints()
f.text = F.CreateFS(f, C.Assets.Font.Bold, 14, 'OUTLINE', '', nil, true, 'TOP', 0, -4)
f.text = F.CreateFS(f, C.Assets.Font.Bold, 14, true, '', nil, true, 'TOP', 0, -4)

local anim = f:CreateAnimationGroup()
anim:SetScript('OnPlay', function()
Expand Down Expand Up @@ -415,7 +415,7 @@ function MAP:SoundVolume()

local f = CreateFrame('Frame', nil, _G.Minimap)
f:SetAllPoints()
local text = F.CreateFS(f, C.Assets.Font.Heavy, 48, 'OUTLINE')
local text = F.CreateFS(f, C.Assets.Font.Heavy, 48, true)

local anim = f:CreateAnimationGroup()
anim:SetScript('OnPlay', function()
Expand Down
12 changes: 6 additions & 6 deletions modules/misc/grouptool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function GT:RaidTool_RoleCount(parent)
role[i]:SetPoint('LEFT', 36 * i - 30, 0)
role[i]:SetSize(16, 16)
role[i]:SetTexture(roleIcons[i])
role[i].text = F.CreateFS(frame, C.Assets.Font.Bold, 12, 'OUTLINE', '0', 'YELLOW', true)
role[i].text = F.CreateFS(frame, C.Assets.Font.Bold, 12, true, '0', 'YELLOW', true)
role[i].text:ClearAllPoints()
role[i].text:SetPoint('CENTER', role[i], 'RIGHT', 10, -1)
end
Expand Down Expand Up @@ -202,10 +202,10 @@ function GT:RaidTool_CombatRes(parent)
F.PixelIcon(res, GetSpellTexture(20484))
res.__owner = parent

res.Count = F.CreateFS(res, C.Assets.Font.Regular, 14, 'OUTLINE', '0', nil, true)
res.Count = F.CreateFS(res, C.Assets.Font.Regular, 14, true, '0', nil, true)
res.Count:ClearAllPoints()
res.Count:SetPoint('LEFT', res, 'RIGHT', 10, 0)
res.Timer = F.CreateFS(frame, C.Assets.Font.Regular, 14, 'OUTLINE', '00:00', nil, true, 'RIGHT', -5, 0)
res.Timer = F.CreateFS(frame, C.Assets.Font.Regular, 14, true, '00:00', nil, true, 'RIGHT', -5, 0)
res:SetScript('OnUpdate', GT.RaidTool_UpdateRes)

parent.resFrame = frame
Expand All @@ -220,8 +220,8 @@ function GT:RaidTool_ReadyCheck(parent)
self:Hide()
end)
F.SetBD(frame)
F.CreateFS(frame, C.Assets.Font.Regular, 14, 'OUTLINE', _G.READY_CHECK, nil, true, 'TOP', 0, -8)
local rc = F.CreateFS(frame, C.Assets.Font.Regular, 14, 'OUTLINE', '', nil, true, 'TOP', 0, -28)
F.CreateFS(frame, C.Assets.Font.Regular, 14, true, _G.READY_CHECK, nil, true, 'TOP', 0, -8)
local rc = F.CreateFS(frame, C.Assets.Font.Regular, 14, true, '', nil, true, 'TOP', 0, -28)

local count, total
local function hideRCFrame()
Expand Down Expand Up @@ -307,7 +307,7 @@ function GT:RaidTool_BuffChecker(parent)
local frame = CreateFrame('Button', nil, parent)
frame:SetPoint('LEFT', parent, 'RIGHT', 4, 0)
frame:SetSize(28, 28)
-- F.CreateFS(frame, C.Assets.Font.Regular, 16, 'OUTLINE', '!', nil, true)
-- F.CreateFS(frame, C.Assets.Font.Regular, 16, true, '!', nil, true)
frame.tex = frame:CreateTexture(nil, 'ARTWORK')
frame.tex:SetSize(16, 16)
frame.tex:SetPoint('CENTER')
Expand Down

0 comments on commit 8018507

Please sign in to comment.