mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Help Loup
This commit is contained in:
parent
c5e924f9e9
commit
b412893a55
1 changed files with 65 additions and 17 deletions
|
|
@ -1372,8 +1372,13 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.kiosk import KioskWindow
|
from bauiv1lib.kiosk import KioskWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
KioskWindow().get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
KioskWindow().get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
KioskWindow().get_root_widget(), from_window = self._root_widget
|
||||||
)
|
)
|
||||||
# ..or in normal cases go back to the main menu
|
# ..or in normal cases go back to the main menu
|
||||||
else:
|
else:
|
||||||
|
|
@ -1381,15 +1386,25 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.gather import GatherWindow
|
from bauiv1lib.gather import GatherWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
GatherWindow(transition=None).get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
GatherWindow(transition=None).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
GatherWindow(transition=None).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Watch':
|
elif main_menu_location == 'Watch':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.watch import WatchWindow
|
from bauiv1lib.watch import WatchWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
WatchWindow(transition=None).get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
WatchWindow(transition=None).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
WatchWindow(transition=None).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Team Game Select':
|
elif main_menu_location == 'Team Game Select':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
|
|
@ -1397,10 +1412,17 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
PlaylistBrowserWindow,
|
PlaylistBrowserWindow,
|
||||||
)
|
)
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
PlaylistBrowserWindow(
|
PlaylistBrowserWindow(
|
||||||
sessiontype=bs.DualTeamSession, transition=None
|
sessiontype=bs.DualTeamSession, transition=None
|
||||||
).get_root_widget()
|
).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
PlaylistBrowserWindow(
|
||||||
|
sessiontype=bs.DualTeamSession, transition=None
|
||||||
|
).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Free-for-All Game Select':
|
elif main_menu_location == 'Free-for-All Game Select':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
|
|
@ -1408,32 +1430,55 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
PlaylistBrowserWindow,
|
PlaylistBrowserWindow,
|
||||||
)
|
)
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
PlaylistBrowserWindow(
|
PlaylistBrowserWindow(
|
||||||
sessiontype=bs.FreeForAllSession,
|
sessiontype=bs.FreeForAllSession,
|
||||||
transition=None,
|
transition=None,
|
||||||
).get_root_widget()
|
).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
PlaylistBrowserWindow(
|
||||||
|
sessiontype=bs.FreeForAllSession,
|
||||||
|
transition=None,
|
||||||
|
).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Coop Select':
|
elif main_menu_location == 'Coop Select':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.coop.browser import CoopBrowserWindow
|
from bauiv1lib.coop.browser import CoopBrowserWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
CoopBrowserWindow(transition=None).get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
CoopBrowserWindow(transition=None).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
CoopBrowserWindow(transition=None).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Benchmarks & Stress Tests':
|
elif main_menu_location == 'Benchmarks & Stress Tests':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.debug import DebugWindow
|
from bauiv1lib.debug import DebugWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
DebugWindow(transition=None).get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
DebugWindow(transition=None).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
DebugWindow(transition=None).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.mainmenu import MainMenuWindow
|
from bauiv1lib.mainmenu import MainMenuWindow
|
||||||
|
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
MainMenuWindow(transition=None).get_root_widget()
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
MainMenuWindow(transition=None).get_root_widget(),
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
|
MainMenuWindow(transition=None).get_root_widget(), from_window=self._root_widget
|
||||||
)
|
)
|
||||||
|
|
||||||
if not specialoffer.show_offer():
|
if not specialoffer.show_offer():
|
||||||
|
|
@ -1986,7 +2031,10 @@ def new_back(self, save_state: bool = True):
|
||||||
bui.containerwidget(edit=self._root_widget, transition=self._transition_out)
|
bui.containerwidget(edit=self._root_widget, transition=self._transition_out)
|
||||||
|
|
||||||
main_menu_window = MainMenuWindow(transition='in_left').get_root_widget()
|
main_menu_window = MainMenuWindow(transition='in_left').get_root_widget()
|
||||||
bui.app.ui_v1.set_main_menu_window(main_menu_window)
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
|
bui.app.ui_v1.set_main_menu_window(main_menu_window,)
|
||||||
|
else:
|
||||||
|
bui.app.ui_v1.set_main_menu_window(main_menu_window, from_window=self._root_widget)
|
||||||
|
|
||||||
current_config = {
|
current_config = {
|
||||||
"Menu Map": config["Menu Map"],
|
"Menu Map": config["Menu Map"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue