From 3760e4b12fe0d42c9d9bee9e1e4c26cf0ddf0d91 Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:05:14 +0300 Subject: [PATCH 01/12] Update drone_war.py --- plugins/minigames/drone_war.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/minigames/drone_war.py b/plugins/minigames/drone_war.py index 6dcd5c3..3935329 100644 --- a/plugins/minigames/drone_war.py +++ b/plugins/minigames/drone_war.py @@ -434,6 +434,7 @@ class ChooseQueen(DeathMatchGame): player.assigninput(InputType.PICK_UP_PRESS, drone.ascend) player.assigninput(InputType.PICK_UP_RELEASE, drone.pause_movement) player.assigninput(InputType.JUMP_PRESS, drone.decend) + player.assigninput(babase.InputType.JUMP_RELEASE, self.pause_movement) player.assigninput(InputType.PUNCH_PRESS, drone.fire) player.assigninput(InputType.LEFT_PRESS, drone.left_) player.assigninput(InputType.RIGHT_PRESS, drone.right_) From d63a7cf86af6c072483895c89a32f7b9d05ddba0 Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:07:31 +0300 Subject: [PATCH 02/12] Update drone_war.py --- plugins/minigames/drone_war.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/minigames/drone_war.py b/plugins/minigames/drone_war.py index 3935329..d917601 100644 --- a/plugins/minigames/drone_war.py +++ b/plugins/minigames/drone_war.py @@ -434,7 +434,7 @@ class ChooseQueen(DeathMatchGame): player.assigninput(InputType.PICK_UP_PRESS, drone.ascend) player.assigninput(InputType.PICK_UP_RELEASE, drone.pause_movement) player.assigninput(InputType.JUMP_PRESS, drone.decend) - player.assigninput(babase.InputType.JUMP_RELEASE, self.pause_movement) + player.assigninput(InputType.JUMP_RELEASE, self.pause_movement) player.assigninput(InputType.PUNCH_PRESS, drone.fire) player.assigninput(InputType.LEFT_PRESS, drone.left_) player.assigninput(InputType.RIGHT_PRESS, drone.right_) From ce018faad1251cb9102edc90d6171ef5c1e6e981 Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:08:11 +0300 Subject: [PATCH 03/12] Update drone_war.py --- plugins/minigames/drone_war.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/minigames/drone_war.py b/plugins/minigames/drone_war.py index d917601..8204633 100644 --- a/plugins/minigames/drone_war.py +++ b/plugins/minigames/drone_war.py @@ -434,7 +434,7 @@ class ChooseQueen(DeathMatchGame): player.assigninput(InputType.PICK_UP_PRESS, drone.ascend) player.assigninput(InputType.PICK_UP_RELEASE, drone.pause_movement) player.assigninput(InputType.JUMP_PRESS, drone.decend) - player.assigninput(InputType.JUMP_RELEASE, self.pause_movement) + player.assigninput(InputType.JUMP_RELEASE, drone.pause_movement) player.assigninput(InputType.PUNCH_PRESS, drone.fire) player.assigninput(InputType.LEFT_PRESS, drone.left_) player.assigninput(InputType.RIGHT_PRESS, drone.right_) From 29c9117062cb970de19b08a292a36cfeeb14dcab Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:19:55 +0300 Subject: [PATCH 04/12] Update minigames.json --- plugins/minigames.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/minigames.json b/plugins/minigames.json index 505ee9e..2b7b9ee 100644 --- a/plugins/minigames.json +++ b/plugins/minigames.json @@ -500,6 +500,7 @@ } ], "versions": { + "1.0.2": null "1.0.1": { "api_version": 8, "commit_sha": "2b5c9ee", @@ -1429,4 +1430,4 @@ } } } -} \ No newline at end of file +} From 78bc78181a2a92cb78568e453298b7ed85489b41 Mon Sep 17 00:00:00 2001 From: brostos <67740566+brostosjoined@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:22:28 +0300 Subject: [PATCH 05/12] forgot the `,` again --- plugins/minigames.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/minigames.json b/plugins/minigames.json index 2b7b9ee..67a82b9 100644 --- a/plugins/minigames.json +++ b/plugins/minigames.json @@ -500,7 +500,7 @@ } ], "versions": { - "1.0.2": null + "1.0.2": null, "1.0.1": { "api_version": 8, "commit_sha": "2b5c9ee", From 661054ed58360d7239ac5a35f6509e21307d6394 Mon Sep 17 00:00:00 2001 From: brostosjoined Date: Thu, 22 Aug 2024 09:22:50 +0000 Subject: [PATCH 06/12] [ci] apply-version-metadata --- plugins/minigames.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/minigames.json b/plugins/minigames.json index 67a82b9..1433403 100644 --- a/plugins/minigames.json +++ b/plugins/minigames.json @@ -500,7 +500,12 @@ } ], "versions": { - "1.0.2": null, + "1.0.2": { + "api_version": 8, + "commit_sha": "78bc781", + "released_on": "22-08-2024", + "md5sum": "506ad0369c82b2fb957da66fe9906988" + }, "1.0.1": { "api_version": 8, "commit_sha": "2b5c9ee", @@ -1430,4 +1435,4 @@ } } } -} +} \ No newline at end of file From 264249ac7d6533b0aa32a3471b583138881f5c73 Mon Sep 17 00:00:00 2001 From: Y-ellow <122377553+im-yellow@users.noreply.github.com> Date: Tue, 22 Oct 2024 22:10:56 +0100 Subject: [PATCH 07/12] Create party_filter.py --- plugins/utilities/party_filter.py | 218 ++++++++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 plugins/utilities/party_filter.py diff --git a/plugins/utilities/party_filter.py b/plugins/utilities/party_filter.py new file mode 100644 index 0000000..ec3b153 --- /dev/null +++ b/plugins/utilities/party_filter.py @@ -0,0 +1,218 @@ +# BY Yelllow | Discord : @y.lw +# very very very clean code ;) + +from __future__ import annotations +from typing import Callable, TypeVar +import babase +import bauiv1 as bui +from bauiv1lib.gather.publictab import PublicGatherTab +import bascenev1 as bs + +# Global state +is_refreshing = True +hide_full = False +hide_empty = False +only_empty = False +buttons_or_checkboxes = 2 + +# TypeVars +ClassType = TypeVar('ClassType') +MethodType = TypeVar('MethodType') + + +def override(cls: ClassType) -> Callable[[MethodType], MethodType]: + def decorator(new_method: MethodType) -> MethodType: + method_name = new_method.__code__.co_name + if hasattr(cls, method_name): + setattr(cls, f'_original_{method_name}', getattr(cls, method_name)) + setattr(cls, method_name, new_method) + return new_method + return decorator + +# Enhanced Gather Tab +class EnhancedPublicGatherTab(PublicGatherTab): + @override(PublicGatherTab) + def _build_join_tab(self, width: float, height: float) -> None: + self._original__build_join_tab(width, height) + self._open_window_button = bui.buttonwidget( + parent=self._container, label='Party Filter', size=(120, 45), + position=(110, height - 115), on_activate_call=bs.WeakCall(self._open_window) + ) + + @override(PublicGatherTab) + def _open_window(self) -> None: + c_width, c_height = 600, 400 + uiscale = bui.app.ui_v1.uiscale + scale = 1.8 if uiscale is babase.UIScale.SMALL else 1.55 if uiscale is babase.UIScale.MEDIUM else 1.0 + self.window_root = bui.containerwidget( + scale=scale, stack_offset=(0, -10) if uiscale is babase.UIScale.SMALL else (0, 15), + size=(c_width, c_height), transition='in_scale', on_outside_click_call=bs.WeakCall(self._close_window) + ) + + v_ = 65 if buttons_or_checkboxes == 1 else 50 + + bui.textwidget(parent=self.window_root, size=(0, 0), h_align='center', v_align='center', + text='Partiy Filter Menu', scale=1.5, color=(1, 1, 0.7), + maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 60)) + bui.textwidget(parent=self.window_root, size=(0, 0), h_align='center', v_align='center', + text='BY Yelllow', scale=0.8, color=(1, 1, 0), + maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 100)) + + bui.buttonwidget(parent=self.window_root, position=(c_width * 0.1, c_height * 0.8), + size=(60, 60), scale=0.8, color=(1, 0.3, 0.3), label=babase.charstr(babase.SpecialChar.BACK), + button_type='backSmall', on_activate_call=self._close_window) + + self._change_ui_button = bui.buttonwidget(parent=self.window_root, position=(c_width * 0.85, c_height * 0.8), + size=(60, 60), scale=0.8, color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), + label='C' if buttons_or_checkboxes == 1 else 'B', on_activate_call=self._change_ui) + + v = c_height - 175 + if buttons_or_checkboxes == 1: + self._refresh_button = bui.buttonwidget( + parent=self.window_root, label='Stop Refresh' if is_refreshing else 'Start Refresh', + size=(c_width - 50, 50), position=(30, v), + color=(1, 0, 0) if is_refreshing else (0, 1, 0), on_activate_call=bs.WeakCall(self._toggle_refresh) + ) + else: + bui.checkboxwidget(parent=self.window_root, text='Stop Refresh', position=(c_height // 2, v), + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=not is_refreshing, + on_value_change_call=bs.WeakCall(self._toggle_refresh)) + + v -= v_ + if buttons_or_checkboxes == 1: + self._full_button = bui.buttonwidget( + parent=self.window_root, label='Hide Full Parties' if not hide_full else 'Show Full Parties', + size=(c_width - 50, 50), position=(30, v), + color=(1, 0, 0) if not hide_full else (0, 1, 0), on_activate_call=bs.WeakCall(self._toggle_full) + ) + else: + bui.checkboxwidget(parent=self.window_root, text='Hide Full Parties', position=(c_height // 2, v), + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_full, + on_value_change_call=bs.WeakCall(self._toggle_full)) + + v -= v_ + if buttons_or_checkboxes == 1: + self._empty_button = bui.buttonwidget( + parent=self.window_root, label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties', + size=(c_width - 50, 50), position=(30, v), + color=(1, 0, 0) if not hide_empty else (0, 1, 0), on_activate_call=bs.WeakCall(self._toggle_empty) + ) + else: + self._empty_checkbox = bui.checkboxwidget(parent=self.window_root, text='Hide Empty Parties', position=(c_height // 2, v), + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_empty, + on_value_change_call=bs.WeakCall(self._toggle_empty)) + + v -= v_ + if buttons_or_checkboxes == 1: + self._only_empty_button = bui.buttonwidget( + parent=self.window_root, label='Empty Parties' if not only_empty else 'All Parties', + size=(c_width - 50, 50), position=(30, v), + color=(1, 0, 0) if not only_empty else (0, 1, 0), on_activate_call=bs.WeakCall(self._toggle_only_empty) + ) + else: + self._only_empty_checkbox = bui.checkboxwidget(parent=self.window_root, text='Empty Parties', position=(c_height // 2, v), + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=only_empty, + on_value_change_call=bs.WeakCall(self._toggle_only_empty)) + + @override(PublicGatherTab) + def _close_window(self) -> None: + bui.getsound('shieldDown').play() + bui.containerwidget(edit=self.window_root, transition='out_scale') + + @override(PublicGatherTab) + def _change_ui(self) -> None: + global buttons_or_checkboxes + buttons_or_checkboxes = 1 if buttons_or_checkboxes == 2 else 2 + bui.screenmessage( + f"{'Buttons' if buttons_or_checkboxes == 1 else 'Checkboxes'} Mode", + color=(0, 0, 1) if buttons_or_checkboxes == 1 else (1, 1, 0) + ) + bui.buttonwidget(edit=self._change_ui_button, + color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), + label='C' if buttons_or_checkboxes == 1 else 'B') + self._close_window() + self._open_window() + + @override(PublicGatherTab) + def _toggle_refresh(self, _=None) -> None: + global is_refreshing + is_refreshing = not is_refreshing + bui.screenmessage(f"Refreshing {'Enabled' if is_refreshing else 'Disabled'}", + color=(0, 1, 0) if is_refreshing else (1, 0, 0)) + if buttons_or_checkboxes == 1: + bui.buttonwidget(edit=self._refresh_button, + color=(1, 0, 0) if is_refreshing else (0, 1, 0), + label='Stop Refresh' if is_refreshing else 'Start Refresh') + + @override(PublicGatherTab) + def _toggle_full(self, _=None) -> None: + global hide_full + hide_full = not hide_full + bui.screenmessage(f"{'Hiding' if hide_full else 'Showing'} Full Parties", + color=(0, 1, 0) if hide_full else (1, 0, 0)) + if buttons_or_checkboxes == 1: + bui.buttonwidget(edit=self._full_button, + color=(1, 0, 0) if not hide_full else (0, 1, 0), + label='Hide Full Parties' if not hide_full else 'Show Full Parties') + self._update_party_rows() + + @override(PublicGatherTab) + def _toggle_empty(self, _=None) -> None: + global hide_empty, only_empty + hide_empty = not hide_empty + if hide_empty: + only_empty = False + bui.screenmessage(f"{'Hiding' if hide_empty else 'Showing'} Empty Parties", + color=(0, 1, 0) if hide_empty else (1, 0, 0)) + if buttons_or_checkboxes == 1: + bui.buttonwidget(edit=self._empty_button, + color=(1, 0, 0) if not hide_empty else (0, 1, 0), + label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') + if hide_empty: + bui.buttonwidget(edit=self._only_empty_button, + color=(1, 0, 0) if not only_empty else (0, 1, 0), + label='Empty Parties' if not only_empty else 'All Parties') + else: + if hide_empty: + bui.checkboxwidget(edit=self._only_empty_checkbox, value=only_empty) + self._update_party_rows() + + @override(PublicGatherTab) + def _toggle_only_empty(self, _=None) -> None: + global only_empty, hide_empty + only_empty = not only_empty + if only_empty: + hide_empty = False + bui.screenmessage(f"{'Only' if only_empty else 'All'} Empty Parties", + color=(0, 1, 0) if only_empty else (1, 0, 0)) + if buttons_or_checkboxes == 1: + bui.buttonwidget(edit=self._only_empty_button, + color=(1, 0, 0) if not only_empty else (0, 1, 0), + label='Empty Parties' if not only_empty else 'All Parties') + if only_empty: + bui.buttonwidget(edit=self._empty_button, + color=(1, 0, 0) if not hide_empty else (0, 1, 0), + label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') + else: + if only_empty: + bui.checkboxwidget(edit=self._empty_checkbox, value=hide_empty) + self._update_party_rows() + + @override(PublicGatherTab) + def _update_party_rows(self) -> None: + self._parties_sorted = list(self._parties.items()) + if is_refreshing: + self._original__update_party_rows() + if hide_full: + self._parties_sorted = [p for p in self._parties_sorted if p[1].size < p[1].size_max] + if hide_empty: + self._parties_sorted = [p for p in self._parties_sorted if p[1].size > 0] + if only_empty: + self._parties_sorted = [p for p in self._parties_sorted if p[1].size == 0] + + +# ba_meta require api 8 +# ba_meta export babase.Plugin +class ByYelllow(babase.Plugin): + def on_app_running(self) -> None: + pass # Bruh From 09de3f2ad6a29d7edc9c2cc82a9648b05cf747bb Mon Sep 17 00:00:00 2001 From: Y-ellow <122377553+im-yellow@users.noreply.github.com> Date: Tue, 22 Oct 2024 22:15:34 +0100 Subject: [PATCH 08/12] Update utilities.json --- plugins/utilities.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index 9786b18..c32f1f8 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -22,6 +22,20 @@ } } }, + "party_filter": { + "description": "Adds Filters in the gather->public window.", + "external_url": "", + "authors": [ + { + "name": "Yelllow", + "email": "im.yellow.dev@gmail.com", + "discord": "y.lw" + } + ], + "versions": { + "1.0.0": {} + } + }, "sandbox": { "description": "Spawn, control and bots, change music, add teams, spawn objects, change game values in real time, and much more!", "external_url": "", @@ -1407,4 +1421,4 @@ } } } -} \ No newline at end of file +} From 118f06c6d7afa16c8468747fa1eab07e0bb1ac1c Mon Sep 17 00:00:00 2001 From: im-yellow Date: Tue, 22 Oct 2024 21:20:58 +0000 Subject: [PATCH 09/12] [ci] auto-format --- plugins/utilities/party_filter.py | 81 ++++++++++++++++--------------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/plugins/utilities/party_filter.py b/plugins/utilities/party_filter.py index ec3b153..5670f95 100644 --- a/plugins/utilities/party_filter.py +++ b/plugins/utilities/party_filter.py @@ -10,7 +10,7 @@ import bascenev1 as bs # Global state is_refreshing = True -hide_full = False +hide_full = False hide_empty = False only_empty = False buttons_or_checkboxes = 2 @@ -30,6 +30,8 @@ def override(cls: ClassType) -> Callable[[MethodType], MethodType]: return decorator # Enhanced Gather Tab + + class EnhancedPublicGatherTab(PublicGatherTab): @override(PublicGatherTab) def _build_join_tab(self, width: float, height: float) -> None: @@ -52,19 +54,19 @@ class EnhancedPublicGatherTab(PublicGatherTab): v_ = 65 if buttons_or_checkboxes == 1 else 50 bui.textwidget(parent=self.window_root, size=(0, 0), h_align='center', v_align='center', - text='Partiy Filter Menu', scale=1.5, color=(1, 1, 0.7), - maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 60)) + text='Partiy Filter Menu', scale=1.5, color=(1, 1, 0.7), + maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 60)) bui.textwidget(parent=self.window_root, size=(0, 0), h_align='center', v_align='center', - text='BY Yelllow', scale=0.8, color=(1, 1, 0), - maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 100)) + text='BY Yelllow', scale=0.8, color=(1, 1, 0), + maxwidth=c_width * 0.8, position=(c_width * 0.5, c_height - 100)) bui.buttonwidget(parent=self.window_root, position=(c_width * 0.1, c_height * 0.8), - size=(60, 60), scale=0.8, color=(1, 0.3, 0.3), label=babase.charstr(babase.SpecialChar.BACK), - button_type='backSmall', on_activate_call=self._close_window) + size=(60, 60), scale=0.8, color=(1, 0.3, 0.3), label=babase.charstr(babase.SpecialChar.BACK), + button_type='backSmall', on_activate_call=self._close_window) self._change_ui_button = bui.buttonwidget(parent=self.window_root, position=(c_width * 0.85, c_height * 0.8), - size=(60, 60), scale=0.8, color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), - label='C' if buttons_or_checkboxes == 1 else 'B', on_activate_call=self._change_ui) + size=(60, 60), scale=0.8, color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), + label='C' if buttons_or_checkboxes == 1 else 'B', on_activate_call=self._change_ui) v = c_height - 175 if buttons_or_checkboxes == 1: @@ -75,8 +77,8 @@ class EnhancedPublicGatherTab(PublicGatherTab): ) else: bui.checkboxwidget(parent=self.window_root, text='Stop Refresh', position=(c_height // 2, v), - size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=not is_refreshing, - on_value_change_call=bs.WeakCall(self._toggle_refresh)) + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=not is_refreshing, + on_value_change_call=bs.WeakCall(self._toggle_refresh)) v -= v_ if buttons_or_checkboxes == 1: @@ -87,8 +89,8 @@ class EnhancedPublicGatherTab(PublicGatherTab): ) else: bui.checkboxwidget(parent=self.window_root, text='Hide Full Parties', position=(c_height // 2, v), - size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_full, - on_value_change_call=bs.WeakCall(self._toggle_full)) + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_full, + on_value_change_call=bs.WeakCall(self._toggle_full)) v -= v_ if buttons_or_checkboxes == 1: @@ -99,9 +101,9 @@ class EnhancedPublicGatherTab(PublicGatherTab): ) else: self._empty_checkbox = bui.checkboxwidget(parent=self.window_root, text='Hide Empty Parties', position=(c_height // 2, v), - size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_empty, - on_value_change_call=bs.WeakCall(self._toggle_empty)) - + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=hide_empty, + on_value_change_call=bs.WeakCall(self._toggle_empty)) + v -= v_ if buttons_or_checkboxes == 1: self._only_empty_button = bui.buttonwidget( @@ -111,8 +113,8 @@ class EnhancedPublicGatherTab(PublicGatherTab): ) else: self._only_empty_checkbox = bui.checkboxwidget(parent=self.window_root, text='Empty Parties', position=(c_height // 2, v), - size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=only_empty, - on_value_change_call=bs.WeakCall(self._toggle_only_empty)) + size=(200, 30), autoselect=True, textcolor=(0.8, 0.8, 0.8), value=only_empty, + on_value_change_call=bs.WeakCall(self._toggle_only_empty)) @override(PublicGatherTab) def _close_window(self) -> None: @@ -128,8 +130,8 @@ class EnhancedPublicGatherTab(PublicGatherTab): color=(0, 0, 1) if buttons_or_checkboxes == 1 else (1, 1, 0) ) bui.buttonwidget(edit=self._change_ui_button, - color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), - label='C' if buttons_or_checkboxes == 1 else 'B') + color=(1, 1, 0) if buttons_or_checkboxes == 1 else (0, 0, 1), + label='C' if buttons_or_checkboxes == 1 else 'B') self._close_window() self._open_window() @@ -138,22 +140,22 @@ class EnhancedPublicGatherTab(PublicGatherTab): global is_refreshing is_refreshing = not is_refreshing bui.screenmessage(f"Refreshing {'Enabled' if is_refreshing else 'Disabled'}", - color=(0, 1, 0) if is_refreshing else (1, 0, 0)) + color=(0, 1, 0) if is_refreshing else (1, 0, 0)) if buttons_or_checkboxes == 1: bui.buttonwidget(edit=self._refresh_button, - color=(1, 0, 0) if is_refreshing else (0, 1, 0), - label='Stop Refresh' if is_refreshing else 'Start Refresh') + color=(1, 0, 0) if is_refreshing else (0, 1, 0), + label='Stop Refresh' if is_refreshing else 'Start Refresh') @override(PublicGatherTab) def _toggle_full(self, _=None) -> None: global hide_full hide_full = not hide_full bui.screenmessage(f"{'Hiding' if hide_full else 'Showing'} Full Parties", - color=(0, 1, 0) if hide_full else (1, 0, 0)) + color=(0, 1, 0) if hide_full else (1, 0, 0)) if buttons_or_checkboxes == 1: bui.buttonwidget(edit=self._full_button, - color=(1, 0, 0) if not hide_full else (0, 1, 0), - label='Hide Full Parties' if not hide_full else 'Show Full Parties') + color=(1, 0, 0) if not hide_full else (0, 1, 0), + label='Hide Full Parties' if not hide_full else 'Show Full Parties') self._update_party_rows() @override(PublicGatherTab) @@ -163,15 +165,15 @@ class EnhancedPublicGatherTab(PublicGatherTab): if hide_empty: only_empty = False bui.screenmessage(f"{'Hiding' if hide_empty else 'Showing'} Empty Parties", - color=(0, 1, 0) if hide_empty else (1, 0, 0)) + color=(0, 1, 0) if hide_empty else (1, 0, 0)) if buttons_or_checkboxes == 1: bui.buttonwidget(edit=self._empty_button, - color=(1, 0, 0) if not hide_empty else (0, 1, 0), - label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') + color=(1, 0, 0) if not hide_empty else (0, 1, 0), + label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') if hide_empty: - bui.buttonwidget(edit=self._only_empty_button, - color=(1, 0, 0) if not only_empty else (0, 1, 0), - label='Empty Parties' if not only_empty else 'All Parties') + bui.buttonwidget(edit=self._only_empty_button, + color=(1, 0, 0) if not only_empty else (0, 1, 0), + label='Empty Parties' if not only_empty else 'All Parties') else: if hide_empty: bui.checkboxwidget(edit=self._only_empty_checkbox, value=only_empty) @@ -184,15 +186,15 @@ class EnhancedPublicGatherTab(PublicGatherTab): if only_empty: hide_empty = False bui.screenmessage(f"{'Only' if only_empty else 'All'} Empty Parties", - color=(0, 1, 0) if only_empty else (1, 0, 0)) + color=(0, 1, 0) if only_empty else (1, 0, 0)) if buttons_or_checkboxes == 1: bui.buttonwidget(edit=self._only_empty_button, - color=(1, 0, 0) if not only_empty else (0, 1, 0), - label='Empty Parties' if not only_empty else 'All Parties') + color=(1, 0, 0) if not only_empty else (0, 1, 0), + label='Empty Parties' if not only_empty else 'All Parties') if only_empty: bui.buttonwidget(edit=self._empty_button, - color=(1, 0, 0) if not hide_empty else (0, 1, 0), - label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') + color=(1, 0, 0) if not hide_empty else (0, 1, 0), + label='Hide Empty Parties' if not hide_empty else 'Show Empty Parties') else: if only_empty: bui.checkboxwidget(edit=self._empty_checkbox, value=hide_empty) @@ -204,7 +206,8 @@ class EnhancedPublicGatherTab(PublicGatherTab): if is_refreshing: self._original__update_party_rows() if hide_full: - self._parties_sorted = [p for p in self._parties_sorted if p[1].size < p[1].size_max] + self._parties_sorted = [ + p for p in self._parties_sorted if p[1].size < p[1].size_max] if hide_empty: self._parties_sorted = [p for p in self._parties_sorted if p[1].size > 0] if only_empty: @@ -215,4 +218,4 @@ class EnhancedPublicGatherTab(PublicGatherTab): # ba_meta export babase.Plugin class ByYelllow(babase.Plugin): def on_app_running(self) -> None: - pass # Bruh + pass # Bruh From 23cef972bfc0f8f906df060a5e88647c2d2d031a Mon Sep 17 00:00:00 2001 From: im-yellow Date: Tue, 22 Oct 2024 21:20:59 +0000 Subject: [PATCH 10/12] [ci] apply-version-metadata --- plugins/utilities.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index c32f1f8..738e914 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -1421,4 +1421,4 @@ } } } -} +} \ No newline at end of file From 667397e7c3b9a1e50a233157feeba0f428dd5526 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Sun, 5 Jan 2025 00:27:52 +0530 Subject: [PATCH 11/12] ci fix --- plugins/utilities.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index 738e914..8b89ff7 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -33,7 +33,7 @@ } ], "versions": { - "1.0.0": {} + "1.0.0": null } }, "sandbox": { From 1b7d1962f013ab0835711b128d43f6ce67fd3f82 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Sat, 4 Jan 2025 18:58:22 +0000 Subject: [PATCH 12/12] [ci] apply-version-metadata --- plugins/utilities.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index 8b89ff7..fb8f993 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -33,7 +33,12 @@ } ], "versions": { - "1.0.0": null + "1.0.0": { + "api_version": 8, + "commit_sha": "667397e", + "released_on": "04-01-2025", + "md5sum": "b624ef90abf20588f21eb55291f9747d" + } } }, "sandbox": {