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