mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
[ci] auto-format
This commit is contained in:
parent
b3f0180463
commit
d61d420909
1 changed files with 4 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ def update(self, index: int, party: PartyEntry, sub_scroll_width: float,
|
||||||
url = party.stats_addr.replace(
|
url = party.stats_addr.replace(
|
||||||
'${ACCOUNT}',
|
'${ACCOUNT}',
|
||||||
ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID',
|
ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID',
|
||||||
'UNKNOWN'))
|
'UNKNOWN'))
|
||||||
self._stats_button = ba.buttonwidget(
|
self._stats_button = ba.buttonwidget(
|
||||||
color=(0.5, 0.8, 0.8),
|
color=(0.5, 0.8, 0.8),
|
||||||
textcolor=(1.0, 1.0, 1.0),
|
textcolor=(1.0, 1.0, 1.0),
|
||||||
|
|
@ -433,7 +433,7 @@ def popup_menu_selected_choice(self, window: popup.PopupMenu,
|
||||||
url = _party.stats_addr.replace(
|
url = _party.stats_addr.replace(
|
||||||
'${ACCOUNT}',
|
'${ACCOUNT}',
|
||||||
ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID',
|
ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID',
|
||||||
'UNKNOWN'))
|
'UNKNOWN'))
|
||||||
ba.open_url(url)
|
ba.open_url(url)
|
||||||
elif choice == 'connect':
|
elif choice == 'connect':
|
||||||
|
|
||||||
|
|
@ -457,6 +457,7 @@ def popup_menu_selected_choice(self, window: popup.PopupMenu,
|
||||||
ba.clipboard_set_text(_party.queue)
|
ba.clipboard_set_text(_party.queue)
|
||||||
ba.playsound(ba.getsound('gunCocking'))
|
ba.playsound(ba.getsound('gunCocking'))
|
||||||
|
|
||||||
|
|
||||||
def is_game_version_lower_than(version):
|
def is_game_version_lower_than(version):
|
||||||
"""
|
"""
|
||||||
Returns a boolean value indicating whether the current game
|
Returns a boolean value indicating whether the current game
|
||||||
|
|
@ -467,6 +468,7 @@ def is_game_version_lower_than(version):
|
||||||
version = tuple(map(int, version.split(".")))
|
version = tuple(map(int, version.split(".")))
|
||||||
return game_version < version
|
return game_version < version
|
||||||
|
|
||||||
|
|
||||||
def replace():
|
def replace():
|
||||||
global ba_internal
|
global ba_internal
|
||||||
if is_game_version_lower_than("1.7.7"):
|
if is_game_version_lower_than("1.7.7"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue