mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 17:03:14 +08:00
Profile Icon tweak
This commit is contained in:
parent
c2d88cab28
commit
dd72021067
@ -417,24 +417,11 @@ class ProfileBrowserWindow(bui.Window):
|
||||
char_index = spazzes.index('Spaz')
|
||||
|
||||
assert isinstance(tval, str)
|
||||
character = bui.buttonwidget(
|
||||
parent=self._subcontainer,
|
||||
position=(0, y_val),
|
||||
size=(28, 28),
|
||||
label='',
|
||||
color=(1, 1, 1),
|
||||
mask_texture=bui.gettexture('characterIconMask'),
|
||||
tint_color=color,
|
||||
tint2_color=_highlight,
|
||||
texture=icon_textures[char_index],
|
||||
tint_texture=icon_tint_textures[char_index],
|
||||
selectable=False,
|
||||
)
|
||||
txtw = bui.textwidget(
|
||||
parent=self._subcontainer,
|
||||
position=(35, y_val),
|
||||
position=(5, y_val),
|
||||
size=((self._width - 210) / scl, 28),
|
||||
text=bui.Lstr(value=tval),
|
||||
text=bui.Lstr(value=f' {tval}'),
|
||||
h_align='left',
|
||||
v_align='center',
|
||||
on_select_call=bui.WeakCall(self._select, p_name, index),
|
||||
@ -445,6 +432,17 @@ class ProfileBrowserWindow(bui.Window):
|
||||
on_activate_call=bui.Call(self._edit_button.activate),
|
||||
selectable=True,
|
||||
)
|
||||
character = bui.imagewidget(
|
||||
parent=self._subcontainer,
|
||||
position=(0, y_val),
|
||||
size=(30, 30),
|
||||
color=(1, 1, 1),
|
||||
mask_texture=bui.gettexture('characterIconMask'),
|
||||
tint_color=color,
|
||||
tint2_color=_highlight,
|
||||
texture=icon_textures[char_index],
|
||||
tint_texture=icon_tint_textures[char_index],
|
||||
)
|
||||
if index == 0:
|
||||
bui.widget(edit=txtw, up_widget=self._back_button)
|
||||
if self._selected_profile is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user