mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-12 12:26:31 -05:00
fixed lints
This commit is contained in:
parent
c704cc4c45
commit
0f2c5cecb1
@ -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")
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user