Skip to content

Commit

Permalink
Fixed SetJustifyV invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alar of Runetotem committed May 14, 2024
1 parent 86314e1 commit af67102
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GarrisonCommander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2991,7 +2991,7 @@ function addon:AddIndicatorToButton(button,mission,missionID,bigscreen)
panel.Percent:SetWidth(80)
panel.Percent:Show()
if (GMFMissions.showInProgress) then
panel.Percent:SetJustifyV("CENTER")
panel.Percent:SetJustifyV("MIDDLE")
panel.Percent:SetJustifyH("RIGHT")
panel.Age:Hide()
else
Expand Down
4 changes: 4 additions & 0 deletions RelNotes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ self:Wiki([[
== Silent mode ==
typing /gac silent in chat will eliminate every chat message from GarrisonCommander
]])
self:RelNotes(3,8,1,[[
Toc: Update for 10.2.7
Fix: Lua Error about SetJustifyV
]])
self:RelNotes(3,8,0,[[
Toc: Update for 1.2.5
]])
Expand Down
2 changes: 1 addition & 1 deletion ShipYard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function module:HookedGarrisonShipyardMap_SetupBonus(missionList,frame,mission)
addendum.chance=addendum:CreateFontString(nil,"OVERLAY","GameTooltipText")
addendum.chance:SetAllPoints()
addendum.chance:SetJustifyH("CENTER")
addendum.chance:SetJustifyV("CENTER")
addendum.chance:SetJustifyV("MIDDLE")
addendum.icon=addendum:CreateTexture(nil,"ARTWORK")
addendum.icon:SetWidth(24)
addendum.icon:SetHeight(24)
Expand Down
4 changes: 2 additions & 2 deletions Widgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ local function GMCLayer()
local frame=CreateFrame("Frame",nil,nil,"BackdropTemplate")
local title=frame:CreateFontString(nil, "BACKGROUND", "GameFontNormalHugeBlack")
title:SetJustifyH("CENTER")
title:SetJustifyV("CENTER")
title:SetJustifyV("MIDDLE")
title:SetPoint("TOPLEFT")
title:SetPoint("TOPRIGHT")
title:SetHeight(0)
Expand Down Expand Up @@ -472,7 +472,7 @@ local function GMCMissionButton()
widget.type=Type2
local indicators=CreateFrame("Frame",nil,frame,"GarrisonCommanderIndicators")
indicators.Percent:SetJustifyH("LEFT")
indicators.Percent:SetJustifyV("CENTER")
indicators.Percent:SetJustifyV("MIDDLE")
indicators:SetPoint("LEFT",70,0)
indicators.Age:Hide()
local spinner=CreateFrame("Frame",nil,frame,"LoadingSpinnerTemplate")
Expand Down

0 comments on commit af67102

Please sign in to comment.