mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 22:43:17 +08:00
Update mainmenu.py
This commit is contained in:
parent
d45caaea92
commit
e0a44cdc2f
@ -526,6 +526,56 @@ class MainMenuWindow(bui.Window):
|
|||||||
autoselect=True,
|
autoselect=True,
|
||||||
on_activate_call=bui.Call(self._pause_or_resume_replay),
|
on_activate_call=bui.Call(self._pause_or_resume_replay),
|
||||||
)
|
)
|
||||||
|
btn = bui.buttonwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(
|
||||||
|
h - b_size * 1.5 - b_buffer_1 * 2,
|
||||||
|
v - b_size - b_buffer_2 + v_offs,
|
||||||
|
),
|
||||||
|
button_type='square',
|
||||||
|
size=(b_size, b_size),
|
||||||
|
label='',
|
||||||
|
autoselect=True,
|
||||||
|
on_activate_call=bui.Call(self._change_replay_speed, -1),
|
||||||
|
)
|
||||||
|
bui.textwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
draw_controller=btn,
|
||||||
|
text='<<',
|
||||||
|
position=(
|
||||||
|
h - b_size - b_buffer_1 * 2,
|
||||||
|
v - b_size * 0.5 - b_buffer_2 + 5 * t_scale + v_offs,
|
||||||
|
),
|
||||||
|
h_align='center',
|
||||||
|
v_align='center',
|
||||||
|
size=(0, 0),
|
||||||
|
scale=2.0 * t_scale,
|
||||||
|
)
|
||||||
|
btn = bui.buttonwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(
|
||||||
|
h + b_size * 0.5 + b_buffer_1 * 2,
|
||||||
|
v - b_size - b_buffer_2 + v_offs,
|
||||||
|
),
|
||||||
|
button_type='square',
|
||||||
|
size=(b_size, b_size),
|
||||||
|
label='',
|
||||||
|
autoselect=True,
|
||||||
|
on_activate_call=bui.Call(bs.forward_replay),
|
||||||
|
)
|
||||||
|
bui.textwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
draw_controller=btn,
|
||||||
|
text='>>',
|
||||||
|
position=(
|
||||||
|
h + b_size + b_buffer_1 * 2,
|
||||||
|
v - b_size * 0.5 - b_buffer_2 + 5 * t_scale + v_offs,
|
||||||
|
),
|
||||||
|
h_align='center',
|
||||||
|
v_align='center',
|
||||||
|
size=(0, 0),
|
||||||
|
scale=2.0 * t_scale,
|
||||||
|
)
|
||||||
|
|
||||||
def _refresh_not_in_game(
|
def _refresh_not_in_game(
|
||||||
self, positions: list[tuple[float, float, float]]
|
self, positions: list[tuple[float, float, float]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user