mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
Latest public/internal sync.
This commit is contained in:
parent
39f077ddb8
commit
b30fdbb225
@ -88,8 +88,8 @@ class TournamentEntryWindow(PopupWindow):
|
|||||||
# Show the practice button as long as we're not
|
# Show the practice button as long as we're not
|
||||||
# restarting while on a paid tournament run.
|
# restarting while on a paid tournament run.
|
||||||
self._do_practice = (
|
self._do_practice = (
|
||||||
self._tournament_activity is None and
|
self._tournament_activity is None
|
||||||
bui.app.config.get('tournament_practice_enabled', False)
|
and bui.app.config.get('tournament_practice_enabled', False)
|
||||||
)
|
)
|
||||||
|
|
||||||
off_p = 0 if not self._do_practice else 48
|
off_p = 0 if not self._do_practice else 48
|
||||||
@ -617,16 +617,19 @@ class TournamentEntryWindow(PopupWindow):
|
|||||||
)
|
)
|
||||||
bui.apptimer(
|
bui.apptimer(
|
||||||
0 if practice else 1.0,
|
0 if practice else 1.0,
|
||||||
lambda: bui.app.classic.launch_coop_game(
|
lambda: (
|
||||||
self._tournament_info['game'],
|
bui.app.classic.launch_coop_game(
|
||||||
args={
|
self._tournament_info['game'],
|
||||||
'min_players': self._tournament_info['minPlayers'],
|
args={
|
||||||
'max_players': self._tournament_info['maxPlayers'],
|
'min_players': self._tournament_info['minPlayers'],
|
||||||
'tournament_id': self._tournament_id,
|
'max_players': self._tournament_info['maxPlayers'],
|
||||||
'submit_score': not practice,
|
'tournament_id': self._tournament_id,
|
||||||
},
|
'submit_score': not practice,
|
||||||
) if bui.app.classic is not None
|
},
|
||||||
else None
|
)
|
||||||
|
if bui.app.classic is not None
|
||||||
|
else None
|
||||||
|
),
|
||||||
)
|
)
|
||||||
bui.apptimer(0 if practice else 1.25, self._transition_out)
|
bui.apptimer(0 if practice else 1.25, self._transition_out)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user