mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 15:03:33 +08:00
Fixed a bug
This commit is contained in:
parent
dbb86f33d8
commit
16a89ffcf8
@ -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
|
||||||
|
|||||||
@ -20,6 +20,7 @@ class DebugWindow(ba.Window):
|
|||||||
# 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