mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-27 01:13:13 +08:00
commit
7287a9b269
@ -718,11 +718,16 @@ class EditProfileWindow(bui.Window):
|
||||
else '???'
|
||||
)
|
||||
if len(name) > 10 and not (self._global or self._is_account_profile):
|
||||
name = name.strip()
|
||||
display_name = ((name[:10] + '...')
|
||||
if len(name) > 10
|
||||
else name
|
||||
)
|
||||
bui.textwidget(
|
||||
edit=self._clipped_name_text,
|
||||
text=bui.Lstr(
|
||||
resource='inGameClippedNameText',
|
||||
subs=[('${NAME}', name[:10] + '...')],
|
||||
subs=[('${NAME}', display_name)],
|
||||
),
|
||||
)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user