mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +08:00
commit
39f077ddb8
@ -411,24 +411,11 @@ class ProfileBrowserWindow(bui.Window):
|
|||||||
char_index = spazzes.index('Spaz')
|
char_index = spazzes.index('Spaz')
|
||||||
|
|
||||||
assert isinstance(tval, str)
|
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(
|
txtw = bui.textwidget(
|
||||||
parent=self._subcontainer,
|
parent=self._subcontainer,
|
||||||
position=(35, y_val),
|
position=(5, y_val),
|
||||||
size=((self._width - 210) / scl, 28),
|
size=((self._width - 210) / scl, 28),
|
||||||
text=bui.Lstr(value=tval),
|
text=bui.Lstr(value=f' {tval}'),
|
||||||
h_align='left',
|
h_align='left',
|
||||||
v_align='center',
|
v_align='center',
|
||||||
on_select_call=bui.WeakCall(self._select, p_name, index),
|
on_select_call=bui.WeakCall(self._select, p_name, index),
|
||||||
@ -439,6 +426,17 @@ class ProfileBrowserWindow(bui.Window):
|
|||||||
on_activate_call=bui.Call(self._edit_button.activate),
|
on_activate_call=bui.Call(self._edit_button.activate),
|
||||||
selectable=True,
|
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:
|
if index == 0:
|
||||||
bui.widget(edit=txtw, up_widget=self._back_button)
|
bui.widget(edit=txtw, up_widget=self._back_button)
|
||||||
if self._selected_profile is None:
|
if self._selected_profile is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user