updated export plugin to babase.Plugin

This commit is contained in:
Loup-Garou911XD 2025-06-24 00:55:09 +05:30
parent 1b54dc397b
commit 118bcc9571
48 changed files with 91 additions and 85 deletions

View file

@ -14,6 +14,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "4ccfc7b",

View file

@ -117,6 +117,6 @@ class ForestMap(bs.Map):
return x_adj * x_adj + z_adj * z_adj > 1.0
# ba_meta export plugin
# ba_meta export babase.Plugin
class EnableMe(babase.Plugin):
_map.register_map(ForestMap)

View file

@ -39,6 +39,7 @@
}
],
"versions": {
"2.0.1": null,
"2.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
@ -319,6 +320,7 @@
}
],
"versions": {
"3.0.1": null,
"3.0.0": {
"api_version": 9,
"commit_sha": "07f7a85",
@ -356,6 +358,7 @@
}
],
"versions": {
"3.0.1": null,
"3.0.0": {
"api_version": 9,
"commit_sha": "6bf081a",
@ -1370,6 +1373,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "17e968d",

View file

@ -208,7 +208,7 @@ class BotChaseGame(bs.TeamGameActivity[Player, Team]):
self.end(results=results)
# ba_meta export plugin
# ba_meta export babase.Plugin
class plugin(babase.Plugin):
def __init__(self):
## Campaign support ##

View file

@ -39,7 +39,7 @@ class IcyEmitsGame(MeteorShowerGame):
Bomb(position=bomb_position, velocity=velocity, bomb_type='ice').autoretain()
# ba_meta export plugin
# ba_meta export babase.Plugin
class byFreaku(babase.Plugin):
def __init__(self):
## Campaign support ##

View file

@ -995,7 +995,7 @@ class MGmap(bs.Map):
bs._map.register_map(MGmap)
# ba_meta export plugin
# ba_meta export babase.Plugin
class byFreaku(babase.Plugin):
def __init__(self):
## Campaign support ##

View file

@ -750,7 +750,7 @@ bs._map.register_map(VolleyBallMap)
bs._map.register_map(VolleyBallMapH)
# ba_meta export plugin
# ba_meta export babase.Plugin
class byFreaku(babase.Plugin):
def __init__(self):
# Reason of plugin:

View file

@ -64,6 +64,7 @@
}
],
"versions": {
"1.2.2": null,
"1.2.1": {
"api_version": 9,
"commit_sha": "f1917f7",
@ -89,6 +90,7 @@
}
],
"versions": {
"1.1.3": null,
"1.1.2": {
"api_version": 9,
"commit_sha": "1277ee0",
@ -126,6 +128,7 @@
}
],
"versions": {
"2.0.3": null,
"2.0.2": {
"api_version": 9,
"commit_sha": "2f1d9cd",
@ -157,6 +160,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bbd7753",
@ -182,6 +186,7 @@
}
],
"versions": {
"2.1.1": null,
"2.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -207,6 +212,7 @@
}
],
"versions": {
"1.1.2": null,
"1.1.1": {
"api_version": 9,
"commit_sha": "6aa11b7",
@ -274,6 +280,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "022f879",
@ -299,6 +306,7 @@
}
],
"versions": {
"1.4.1": null,
"1.4.0": {
"api_version": 9,
"commit_sha": "3a62e48",
@ -360,6 +368,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -391,6 +400,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "b52d84a",
@ -447,6 +457,7 @@
}
],
"versions": {
"1.0.3": null,
"1.0.2": {
"api_version": 9,
"commit_sha": "37914bb",
@ -508,6 +519,7 @@
}
],
"versions": {
"1.3.1": null,
"1.3.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -562,6 +574,7 @@
}
],
"versions": {
"2.2.1": null,
"2.2.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -623,6 +636,7 @@
}
],
"versions": {
"2.1.1": null,
"2.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -654,6 +668,7 @@
}
],
"versions": {
"2.1.1": null,
"2.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -685,6 +700,7 @@
}
],
"versions": {
"2.0.4": null,
"2.0.3": {
"api_version": 9,
"commit_sha": "6bf081a",
@ -734,6 +750,7 @@
}
],
"versions": {
"3.0.2": null,
"3.0.1": {
"api_version": 9,
"commit_sha": "a93fda3",
@ -783,6 +800,7 @@
}
],
"versions": {
"2.1.4": null,
"2.1.3": {
"api_version": 9,
"commit_sha": "0defd84",
@ -850,6 +868,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "8982f0e",
@ -881,6 +900,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -949,6 +969,7 @@
}
],
"versions": {
"2.2.1": null,
"2.2.0": {
"api_version": 9,
"commit_sha": "6fc165a",
@ -986,6 +1007,7 @@
}
],
"versions": {
"2.1.1": null,
"2.1.0": {
"api_version": 9,
"commit_sha": "94742b9",
@ -1122,6 +1144,7 @@
}
],
"versions": {
"3.0.3": null,
"3.0.2": {
"api_version": 9,
"commit_sha": "43b3a41",
@ -1153,6 +1176,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1184,6 +1208,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1215,6 +1240,7 @@
}
],
"versions": {
"2.2.1": null,
"2.2.0": {
"api_version": 9,
"commit_sha": "04b8460",
@ -1313,6 +1339,7 @@
}
],
"versions": {
"1.3.1": null,
"1.3.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1338,6 +1365,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1375,6 +1403,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1437,6 +1466,7 @@
}
],
"versions": {
"1.1.2": null,
"1.1.1": {
"api_version": 9,
"commit_sha": "3540260",
@ -1584,6 +1614,7 @@
}
],
"versions": {
"1.0.2": null,
"1.0.1": {
"api_version": 9,
"commit_sha": "ea64940",
@ -1609,6 +1640,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "85193fe",
@ -1634,6 +1666,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1659,6 +1692,7 @@
}
],
"versions": {
"2.1.1": null,
"2.1.0": {
"api_version": 9,
"commit_sha": "7d6ed3d",
@ -1684,6 +1718,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "e2c6477",
@ -1709,6 +1744,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "bb129cc",
@ -1778,6 +1814,7 @@
}
],
"versions": {
"1.5.1": null,
"1.5.0": {
"api_version": 9,
"commit_sha": "0db98e8",
@ -1797,6 +1834,7 @@
}
],
"versions": {
"1.1.1": null,
"1.1.0": {
"api_version": 9,
"commit_sha": "6e438dc",
@ -1822,6 +1860,7 @@
}
],
"versions": {
"1.0.1": null,
"1.0.0": {
"api_version": 9,
"commit_sha": "e6b0658",
@ -1841,6 +1880,7 @@
}
],
"versions": {
"1.0.1": null,
"1.0.0": {
"api_version": 9,
"commit_sha": "c4ea42b",

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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.

View file

@ -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__

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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()

View file

@ -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

View file

@ -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

View file

@ -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):

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -23,7 +23,7 @@ import bascenev1lib
if TYPE_CHECKING:
pass
# ba_meta export plugin
# ba_meta export babase.Plugin
class Quickturn(babase.Plugin):

View file

@ -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.

View file

@ -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.

View file

@ -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)

View file

@ -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)

View file

@ -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):

View file

@ -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

View file

@ -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

View file

@ -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:
"""

View file

@ -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.

View file

@ -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()

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"""

View file

@ -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)

View file

@ -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'