mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
updated export plugin to babase.Plugin
This commit is contained in:
parent
1b54dc397b
commit
118bcc9571
48 changed files with 91 additions and 85 deletions
|
|
@ -2150,9 +2150,7 @@ class CustomAccountViewerWindow(viewer.AccountViewerWindow):
|
|||
except Exception:
|
||||
babase.print_exception('Error displaying account info.')
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class bySmoothy(babase.Plugin):
|
||||
def __init__(self):
|
||||
bs.connect_to_party = newconnect_to_party
|
||||
|
|
|
|||
|
|
@ -539,9 +539,7 @@ def on_begin(self, *args, **kwargs) -> None:
|
|||
self._stick_nub_image.opacity = 0.0
|
||||
return original_on_begin(self, *args, **kwargs)
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byHeySmoothy(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
bs._activity.Activity.on_begin = on_begin
|
||||
|
|
|
|||
|
|
@ -72,9 +72,7 @@ if TYPE_CHECKING:
|
|||
Only through experimentation you can forge a failure into a success.
|
||||
"""
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class AutoRun(babase.Plugin):
|
||||
# During my research and prototyping I figured I'd have to do some linear algebgra.
|
||||
# I didn't want to use libraries, since this is supposed to be a standalone mod.
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ from bascenev1lib.actor.bomb import Bomb
|
|||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class BombRadiusVisualizer(babase.Plugin):
|
||||
|
||||
# We use a decorator to add extra code to existing code, increasing mod compatibility.
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ if TYPE_CHECKING:
|
|||
pass
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class BotsCanAcceptPowerupsPlugin(babase.Plugin):
|
||||
def on_app_running(self) -> None:
|
||||
SpazBot.oldinit = SpazBot.__init__
|
||||
|
|
|
|||
|
|
@ -347,9 +347,7 @@ def _update_text(self) -> None:
|
|||
|
||||
self._text_node.text = text
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class HeySmoothy(babase.Plugin):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -748,9 +748,7 @@ def get_player(msg, activity):
|
|||
return player
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class bySmoothy(babase.Plugin):
|
||||
def __init__(self):
|
||||
_babase.import_character = import_character
|
||||
|
|
|
|||
|
|
@ -51,6 +51,6 @@ class NewBlast(bomb.Blast):
|
|||
bs.timer(13.0, scorch.delete)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class RandomColorsPlugin(babase.Plugin):
|
||||
bomb.Blast = NewBlast
|
||||
|
|
|
|||
|
|
@ -416,7 +416,7 @@ def load_plugin():
|
|||
load_colorscheme()
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class Main(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
load_plugin()
|
||||
|
|
|
|||
|
|
@ -37,6 +37,6 @@ def handlemessage(self, msg: Any) -> Any:
|
|||
return self.oldhandlemessage(msg)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class CustomDeath(babase.Plugin):
|
||||
Spaz.handlemessage = handlemessage
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@ class BombPickupMessage:
|
|||
# for bs.FreezeMessage
|
||||
freeze: bool = True
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class Plugin(babase.Plugin):
|
||||
|
||||
# there are two ways to ignore our team player hits
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ def new_chat_message(func):
|
|||
return wrapper
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class ByCrossJoy(babase.Plugin):
|
||||
def __init__(self):
|
||||
# Replace new chat func to the original game codes.
|
||||
|
|
|
|||
|
|
@ -727,7 +727,7 @@ class PartyQuickConnect(bui.Window):
|
|||
bui.containerwidget(edit=self._root_widget, transition='out_scale')
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class InitalRun(babase.Plugin):
|
||||
def __init__(self):
|
||||
replace()
|
||||
|
|
|
|||
|
|
@ -42,9 +42,7 @@ class FastEpicSwitcher(bauiv1lib.party.PartyWindow):
|
|||
bs.get_foreground_host_activity().globalsnode.slow_motion = 1.0 # Epic Mode (Slow)
|
||||
bui.screenmessage("Switched to Epic Mode!", color=(0, 1, 0))
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class ByANES(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
bauiv1lib.party.PartyWindow = FastEpicSwitcher
|
||||
|
|
|
|||
|
|
@ -348,9 +348,7 @@ def handle_download(url, path, callback):
|
|||
# bui.screenmessage(f'Error occured {e}')
|
||||
print(f"Error occurred: {e}")
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class bySmoothy(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -268,8 +268,7 @@ def new_chat_message(*args, **kwargs):
|
|||
|
||||
bs.chatmessage = new_chat_message
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
|
||||
class byFreaku(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ def new_handlemessage_spaz_(func):
|
|||
return wrapper
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class ByCrossJoy(babase.Plugin):
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ def equip_shields(self, decay: bool = False) -> None:
|
|||
self.shield.always_show_health_bar = True
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class InfinityShieldPlugin(babase.Plugin):
|
||||
Spaz.__init__ = __init__
|
||||
Spaz.equip_shields = equip_shields
|
||||
|
|
|
|||
|
|
@ -236,9 +236,7 @@ def _manual_camera(self, widget):
|
|||
|
||||
self.main_window_replace(Manual_camera_window(origin_widget=widget))
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class ByDroopy(babase.Plugin):
|
||||
def __init__(self):
|
||||
InGameMenuWindow._refresh_in_game = my_refresh_in_game
|
||||
|
|
|
|||
|
|
@ -337,9 +337,7 @@ def _restore_state(self) -> None:
|
|||
except Exception:
|
||||
babase.print_exception('Error restoring gather-win state.')
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class MaxPlayersPlugin(babase.Plugin):
|
||||
|
||||
def has_settings_ui(self) -> bool:
|
||||
|
|
|
|||
|
|
@ -289,9 +289,7 @@ old_fcm = bs.chatmessage
|
|||
bs.chatmessage = new_chat_message
|
||||
Map._old_init = Map.__init__
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class moodlight(babase.Plugin):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ if TYPE_CHECKING:
|
|||
pass
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class OnlyNight(babase.Plugin):
|
||||
GameActivity.old_on_transition_in = GameActivity.on_transition_in
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ class QuickChatPartyWindow(bauiv1lib.party.PartyWindow):
|
|||
bui.containerwidget(edit=win, transition='out_scale')
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class ByANES(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
bauiv1lib.party.PartyWindow = QuickChatPartyWindow
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import bascenev1lib
|
|||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
|
||||
|
||||
class Quickturn(babase.Plugin):
|
||||
|
|
|
|||
|
|
@ -30,9 +30,7 @@ from bascenev1lib.actor.spazfactory import SpazFactory
|
|||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class RagdollBGone(babase.Plugin):
|
||||
|
||||
# We use a decorator to add extra code to existing code, increasing mod compatibility.
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ def game_starter_factory(sessiontype: type[Session]):
|
|||
return on_run
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class RandomPlayPlugin(babase.Plugin):
|
||||
"""
|
||||
A plugin that allows you to play randomly generated FFA or Teams matches by selecting a random minigame and map for each round.
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ def R(s):
|
|||
return s(t, *f, **g)
|
||||
return w
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byBordd(v):
|
||||
def __init__(s):
|
||||
m._refresh_in_game = R(m._refresh_in_game)
|
||||
|
|
|
|||
|
|
@ -5928,9 +5928,8 @@ class CustomBotSet(SpazBotSet):
|
|||
# ba_meta require api 9
|
||||
# BroBordd touch grass
|
||||
# Copyright 2024, solely by BroBordd. All rights reserved.
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byBordd(ba.Plugin):
|
||||
def __init__(s):
|
||||
igm._refresh_in_game = Nice.Button(igm._refresh_in_game)
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ class ShareTab(WatchWindow):
|
|||
ShareTabUi(self.my_tab_container)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
|
||||
class Loup(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
|
|
|
|||
|
|
@ -60,9 +60,8 @@ class SorryPW(bauiv1lib.party.PartyWindow):
|
|||
bs.apptimer((i-10)/10, bs.Call(s._ok, i))
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byBordd(babase.Plugin):
|
||||
def __init__(s):
|
||||
bauiv1lib.party.PartyWindow = SorryPW
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ def modified_get_store_layout() -> Dict[str, List[Dict[str, Any]]]:
|
|||
return layout
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class Main(babase.Plugin):
|
||||
def on_app_running(self) -> None:
|
||||
bui.app.classic.store.get_store_layout = modified_get_store_layout
|
||||
|
|
|
|||
|
|
@ -195,9 +195,8 @@ def _on_tagwinbtn_press(self):
|
|||
)
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class Tag(babase.Plugin):
|
||||
def __init__(self) -> None:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ if TYPE_CHECKING:
|
|||
"""
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class TNTRespawnText(babase.Plugin):
|
||||
|
||||
# This clamping function will make sure a certain value can't go above or below a certain threshold.
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ from bascenev1 import gettexture as x, apptimer as z
|
|||
from bascenev1 import broadcastmessage as push, get_foreground_host_activity as ga, get_chat_messages as gcm
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byBordd(p):
|
||||
def ear(s):
|
||||
a = gcm()
|
||||
|
|
|
|||
|
|
@ -247,7 +247,8 @@ class TranslateWindow:
|
|||
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byFreaku(babase.Plugin):
|
||||
def __init__(self):
|
||||
bauiv1lib.party.PartyWindow = NewPW
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ def new_play_types(cls):
|
|||
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
# ba_meta export babase.Plugin
|
||||
class byFreaku(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
TowerD.get_play_types = new_play_types
|
||||
|
|
|
|||
|
|
@ -83,9 +83,8 @@ class VeryPW(party.PartyWindow):
|
|||
cw(edit=s._columnwidget, visible_child=txt)
|
||||
|
||||
# ba_meta require api 9
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class byBordd(Plugin):
|
||||
def __init__(s):
|
||||
party.PartyWindow = VeryPW
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ import babase
|
|||
|
||||
# ba_meta require api 9
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class WiggleDance(babase.Plugin):
|
||||
def add_dance_mechanic_to_spaz(spaz_class):
|
||||
"""Add dance mechanic to the Spaz class"""
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ def wave_emote():
|
|||
last_len_msg = len(bs.get_chat_messages())
|
||||
print(last_len_msg, "last_len_msg")
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class brostos(babase.Plugin):
|
||||
timer = bs.AppTimer(0.5, wave_emote, repeat=True)
|
||||
|
|
|
|||
|
|
@ -84,9 +84,7 @@ def replaceable_punch(self) -> None:
|
|||
SpazFactory.get().swish_sound, 0.8))
|
||||
self._turbo_filter_add_press('punch')
|
||||
|
||||
# ba_meta export plugin
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class ragingspeedhorn(babase.Plugin):
|
||||
try:
|
||||
oath = _babase.env()['python_directory_user'] + '/Saved XYZ'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue