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
bfb5d25467
commit
2b5c9eeecd
2 changed files with 6 additions and 3 deletions
|
|
@ -534,13 +534,16 @@ def on_begin(self, *args, **kwargs) -> None:
|
||||||
self.set_stick_image_position = set_stick_image_position
|
self.set_stick_image_position = set_stick_image_position
|
||||||
return original_on_begin(self, *args, **kwargs)
|
return original_on_begin(self, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class NewMainMenuWindow(mainmenu.MainMenuWindow):
|
class NewMainMenuWindow(mainmenu.MainMenuWindow):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
# Display chat icon, but if user open/close gather it may disappear
|
# Display chat icon, but if user open/close gather it may disappear
|
||||||
bui.set_party_icon_always_visible(True)
|
bui.set_party_icon_always_visible(True)
|
||||||
|
|
||||||
# ba_meta export plugin
|
# ba_meta export plugin
|
||||||
|
|
||||||
|
|
||||||
class byHeySmoothy(babase.Plugin):
|
class byHeySmoothy(babase.Plugin):
|
||||||
def on_app_running(self):
|
def on_app_running(self):
|
||||||
mainmenu.MainMenuWindow = NewMainMenuWindow
|
mainmenu.MainMenuWindow = NewMainMenuWindow
|
||||||
|
|
|
||||||
|
|
@ -372,7 +372,7 @@ def get_event_loop(force_fresh=False):
|
||||||
# resp = requests.get('https://legacy.ballistica.net/bsAccessCheck').text
|
# resp = requests.get('https://legacy.ballistica.net/bsAccessCheck').text
|
||||||
try:
|
try:
|
||||||
connection_info = bs.get_connection_to_host_info(
|
connection_info = bs.get_connection_to_host_info(
|
||||||
) if build_number < 21727 else bs.get_connection_to_host_info_2()
|
) if build_number < 21727 else bs.get_connection_to_host_info_2()
|
||||||
if connection_info:
|
if connection_info:
|
||||||
addr = _last_server_addr
|
addr = _last_server_addr
|
||||||
port = _last_server_port
|
port = _last_server_port
|
||||||
|
|
@ -872,7 +872,7 @@ class DiscordRP(babase.Plugin):
|
||||||
def update_status(self) -> None:
|
def update_status(self) -> None:
|
||||||
roster = bs.get_game_roster()
|
roster = bs.get_game_roster()
|
||||||
connection_info = bs.get_connection_to_host_info(
|
connection_info = bs.get_connection_to_host_info(
|
||||||
) if build_number < 21727 else bs.get_connection_to_host_info_2()
|
) if build_number < 21727 else bs.get_connection_to_host_info_2()
|
||||||
|
|
||||||
self.rpc_thread.large_image_key = "bombsquadicon"
|
self.rpc_thread.large_image_key = "bombsquadicon"
|
||||||
self.rpc_thread.large_image_text = "BombSquad"
|
self.rpc_thread.large_image_text = "BombSquad"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue