1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 01:10:43 +00:00

close button label in help overlay (#941)

* resolved build errors

* fixed close button label in help overlay

Co-authored-by: M. Sz <mszeptuch@protonmail.com>
This commit is contained in:
gucio321 2020-11-22 06:38:09 +01:00 committed by GitHub
parent 518a667a84
commit 24affd785c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ const (
// the close button for the help panel
closeButtonX = 685
closeButtonY = 25
closeButtonLabelX = 680
closeButtonLabelX = 702
closeButtonLabelY = 60
// the rest of these are for text with a line and dot, towards the bottom of the screen
@ -328,6 +328,7 @@ func (h *HelpOverlay) setupTitleAndButton() {
newLabel = h.uiManager.NewLabel(d2resource.Font16, d2resource.PaletteSky)
newLabel.SetText(h.asset.TranslateString("strClose")) // "Close"
newLabel.SetPosition(closeButtonLabelX, closeButtonLabelY)
newLabel.Alignment = d2ui.HorizontalAlignCenter
h.text = append(h.text, newLabel)
}