Skip to content

Commit

Permalink
Fixed using wrong variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rackover authored and PhilipJFryFAF committed Jan 11, 2019
1 parent 3dadc64 commit d315fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/ui/lobby/changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ function CreateUI(parent, showPatch)

-- Close button
local CloseButton = UIUtil.CreateButtonWithDropshadow(dialogContent, '/BUTTON/medium/', '<LOC _Close>Close')
LayoutHelpers.AtRightIn(GithubButton, dialogContent)
LayoutHelpers.AtRightIn(CloseButton, dialogContent)
LayoutHelpers.AtBottomIn(CloseButton, dialogContent, 10)
CloseButton.OnClick = function()
changelogPopup:Close()
end

-- Link to the changelog on github
local GithubButton = UIUtil.CreateButtonWithDropshadow(dialogContent, '/BUTTON/medium/', "Github")
LayoutHelpers.AtLeftIn(CloseButton, dialogContent)
LayoutHelpers.AtLeftIn(GithubButton, dialogContent)
LayoutHelpers.AtBottomIn(GithubButton, dialogContent, 10)
GithubButton.OnClick = function()
OpenURL('http://github.com/FAForever/fa/blob/develop/changelog.md')
Expand Down

0 comments on commit d315fb9

Please sign in to comment.