mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
72e3c714e1
commit
b6d7c56070
1 changed files with 42 additions and 68 deletions
|
|
@ -2078,31 +2078,6 @@ Special thanks to:
|
||||||
snowee, rikko, & unknown
|
snowee, rikko, & unknown
|
||||||
———————————————————————————————————————
|
———————————————————————————————————————
|
||||||
"""
|
"""
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from typing import List, Sequence, Callable, Any, cast
|
|
||||||
|
|
||||||
from baenv import TARGET_BALLISTICA_BUILD
|
|
||||||
from bascenev1lib.mainmenu import MainMenuActivity, NewsDisplay, _preload1
|
|
||||||
from bauiv1lib.mainmenu import MainMenuWindow
|
|
||||||
from bauiv1lib.account.settings import AccountSettingsWindow
|
|
||||||
from bauiv1lib.colorpicker import ColorPicker, ColorPickerExact
|
|
||||||
from bauiv1lib.fileselector import FileSelectorWindow
|
|
||||||
from bauiv1lib.popup import PopupMenuWindow
|
|
||||||
|
|
||||||
import _bauiv1 as _bui
|
|
||||||
import _bascenev1 as _bs
|
|
||||||
import _babase as _ba
|
|
||||||
|
|
||||||
import babase as ba
|
|
||||||
import bascenev1 as bs
|
|
||||||
import bauiv1 as bui
|
|
||||||
import bascenev1lib.mainmenu as menu
|
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
import random
|
|
||||||
import weakref
|
|
||||||
|
|
||||||
|
|
||||||
# defined version and author
|
# defined version and author
|
||||||
|
|
@ -3434,11 +3409,11 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
KioskWindow().get_root_widget(),
|
KioskWindow().get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
KioskWindow().get_root_widget(), from_window = False
|
KioskWindow().get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
# ..or in normal cases go back to the main menu
|
# ..or in normal cases go back to the main menu
|
||||||
else:
|
else:
|
||||||
if main_menu_location == 'Gather':
|
if main_menu_location == 'Gather':
|
||||||
|
|
@ -3447,24 +3422,24 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
GatherWindow(transition=None).get_root_widget(),
|
GatherWindow(transition=None).get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
GatherWindow(transition=None).get_root_widget(), from_window = False
|
GatherWindow(transition=None).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
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
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
WatchWindow(transition=None).get_root_widget(),
|
WatchWindow(transition=None).get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
WatchWindow(transition=None).get_root_widget(), from_window = False
|
WatchWindow(transition=None).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
elif main_menu_location == 'Team Game Select':
|
elif main_menu_location == 'Team Game Select':
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.playlist.browser import (
|
from bauiv1lib.playlist.browser import (
|
||||||
|
|
@ -3473,16 +3448,16 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
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:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
PlaylistBrowserWindow(
|
PlaylistBrowserWindow(
|
||||||
sessiontype=bs.DualTeamSession, transition=None
|
sessiontype=bs.DualTeamSession, transition=None
|
||||||
).get_root_widget(), from_window = False
|
).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
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
|
||||||
from bauiv1lib.playlist.browser import (
|
from bauiv1lib.playlist.browser import (
|
||||||
|
|
@ -3491,54 +3466,54 @@ class MainMenuTheme(MainMenuActivity):
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
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:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
PlaylistBrowserWindow(
|
PlaylistBrowserWindow(
|
||||||
sessiontype=bs.FreeForAllSession,
|
sessiontype=bs.FreeForAllSession,
|
||||||
transition=None,
|
transition=None,
|
||||||
).get_root_widget(), from_window = False
|
).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
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
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
CoopBrowserWindow(transition=None).get_root_widget(),
|
CoopBrowserWindow(transition=None).get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
CoopBrowserWindow(transition=None).get_root_widget(), from_window = False
|
CoopBrowserWindow(transition=None).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
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
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
DebugWindow(transition=None).get_root_widget(),
|
DebugWindow(transition=None).get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
DebugWindow(transition=None).get_root_widget(), from_window = False
|
DebugWindow(transition=None).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# pylint: disable=cyclic-import
|
# pylint: disable=cyclic-import
|
||||||
from bauiv1lib.mainmenu import MainMenuWindow
|
from bauiv1lib.mainmenu import MainMenuWindow
|
||||||
|
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
MainMenuWindow(transition=None).get_root_widget(),
|
MainMenuWindow(transition=None).get_root_widget(),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bs.app.ui_v1.set_main_menu_window(
|
bs.app.ui_v1.set_main_menu_window(
|
||||||
MainMenuWindow(transition=None).get_root_widget(), from_window = False
|
MainMenuWindow(transition=None).get_root_widget(), from_window=False
|
||||||
)
|
)
|
||||||
|
|
||||||
if not specialoffer.show_offer():
|
if not specialoffer.show_offer():
|
||||||
|
|
||||||
|
|
@ -4093,7 +4068,7 @@ def new_back(self, save_state: bool = True):
|
||||||
if TARGET_BALLISTICA_BUILD < 21697:
|
if TARGET_BALLISTICA_BUILD < 21697:
|
||||||
bui.app.ui_v1.set_main_menu_window(main_menu_window,)
|
bui.app.ui_v1.set_main_menu_window(main_menu_window,)
|
||||||
else:
|
else:
|
||||||
bui.app.ui_v1.set_main_menu_window(main_menu_window, from_window = False)
|
bui.app.ui_v1.set_main_menu_window(main_menu_window, from_window=False)
|
||||||
|
|
||||||
current_config = {
|
current_config = {
|
||||||
"Menu Map": config["Menu Map"],
|
"Menu Map": config["Menu Map"],
|
||||||
|
|
@ -4132,4 +4107,3 @@ class Plugin(ba.Plugin):
|
||||||
True, True, True, True, True, True, True, True, True
|
True, True, True, True, True, True, True, True, True
|
||||||
], True
|
], True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue