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:
parent
518a667a84
commit
24affd785c
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user