mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-03-23 02:35:49 +08:00
Update edit.py
This commit is contained in:
parent
2b3bdeeec7
commit
88e28cadb4
@ -392,21 +392,14 @@ class EditProfileWindow(bui.Window):
|
|||||||
)
|
)
|
||||||
self._random_name_button = bui.buttonwidget(
|
self._random_name_button = bui.buttonwidget(
|
||||||
parent=self._root_widget,
|
parent=self._root_widget,
|
||||||
label='',
|
label=bui.Lstr(resource='randomText'),
|
||||||
size=(20, 20),
|
size=(30, 20),
|
||||||
position=(500 + x_inset, v - 20),
|
position=(495 + x_inset, v - 20),
|
||||||
button_type='square',
|
button_type='square',
|
||||||
color=(0.6, 0.5, 0.65),
|
color=(0.6, 0.5, 0.65),
|
||||||
autoselect=True,
|
autoselect=True,
|
||||||
on_activate_call=self.assign_random_name,
|
on_activate_call=self.assign_random_name,
|
||||||
)
|
)
|
||||||
bui.imagewidget(
|
|
||||||
parent=self._root_widget,
|
|
||||||
size=(20, 20),
|
|
||||||
draw_controller=self._random_name_button,
|
|
||||||
position=(501 + x_inset, v - 20),
|
|
||||||
texture=bui.gettexture('replayIcon'),
|
|
||||||
)
|
|
||||||
|
|
||||||
self._update_clipped_name()
|
self._update_clipped_name()
|
||||||
self._clipped_name_timer = bui.AppTimer(
|
self._clipped_name_timer = bui.AppTimer(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user