diff --git a/d2common/d2util/stringutils.go b/d2common/d2util/stringutils.go index c9d9aa65..24f268bd 100644 --- a/d2common/d2util/stringutils.go +++ b/d2common/d2util/stringutils.go @@ -135,7 +135,7 @@ func SplitIntoLinesWithMaxWidth(fullSentence string, maxChars int) []string { return lines } -// SplitIntoLineWithMaxWidthOneLine do the same as SplitIntoLinesWithMaxWidth but return string with newline char +// SplitIntoLinesWithMaxWidthOneLine does the same as SplitIntoLinesWithMaxWidth but return string with newline char func SplitIntoLinesWithMaxWidthOneLine(s string, l int) string { return strings.Join(SplitIntoLinesWithMaxWidth(s, l), "\n") } diff --git a/d2game/d2gamescreen/character_select.go b/d2game/d2gamescreen/character_select.go index c0c622a1..6bd355f8 100644 --- a/d2game/d2gamescreen/character_select.go +++ b/d2game/d2gamescreen/character_select.go @@ -296,11 +296,13 @@ func (v *CharacterSelect) createButtons(loading d2screen.LoadingState) { v.newCharButton.SetPosition(newCharBtnX, newCharBtnY) v.newCharButton.OnActivated(func() { v.onNewCharButtonClicked() }) - v.convertCharButton = v.uiManager.NewButton(d2ui.ButtonTypeTall, d2util.SplitIntoLinesWithMaxWidthOneLine(v.asset.TranslateString("#825"), 13)) + v.convertCharButton = v.uiManager.NewButton(d2ui.ButtonTypeTall, + d2util.SplitIntoLinesWithMaxWidthOneLine(v.asset.TranslateString("#825"), 13)) v.convertCharButton.SetPosition(convertCharBtnX, convertCharBtnY) v.convertCharButton.SetEnabled(false) - v.deleteCharButton = v.uiManager.NewButton(d2ui.ButtonTypeTall, d2util.SplitIntoLinesWithMaxWidthOneLine(v.asset.TranslateString("#832"), 13)) + v.deleteCharButton = v.uiManager.NewButton(d2ui.ButtonTypeTall, + d2util.SplitIntoLinesWithMaxWidthOneLine(v.asset.TranslateString("#832"), 13)) v.deleteCharButton.OnActivated(func() { v.onDeleteCharButtonClicked() }) v.deleteCharButton.SetPosition(deleteCharBtnX, deleteCharBtnY)