mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 17:03:14 +08:00
commit
b23e3dca22
@ -453,6 +453,12 @@ class MainMenuActivity(ba.Activity[ba.Player, ba.Team]):
|
||||
ba.app.ui.set_main_menu_window(
|
||||
CoopBrowserWindow(
|
||||
transition=None).get_root_widget())
|
||||
elif main_menu_location == 'Benchmarks & Stress Tests':
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui.debug import DebugWindow
|
||||
ba.app.ui.set_main_menu_window(
|
||||
DebugWindow(
|
||||
transition=None).get_root_widget())
|
||||
else:
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui.mainmenu import MainMenuWindow
|
||||
|
||||
@ -15,11 +15,13 @@ if TYPE_CHECKING:
|
||||
class DebugWindow(ba.Window):
|
||||
"""Window for debugging internal values."""
|
||||
|
||||
def __init__(self, transition: str = 'in_right'):
|
||||
def __init__(self,
|
||||
transition: str | None = 'in_right'):
|
||||
# pylint: disable=too-many-statements
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui import popup
|
||||
|
||||
ba.app.ui.set_main_menu_location('Benchmarks & Stress Tests')
|
||||
uiscale = ba.app.ui.uiscale
|
||||
self._width = width = 580
|
||||
self._height = height = (350 if uiscale is ba.UIScale.SMALL else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user