Updating character_maker.py to api 9

This commit is contained in:
Vishal 2025-01-22 00:21:44 +05:30 committed by GitHub
parent 98abd7b5c1
commit 94742b9a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 17 deletions

View file

@ -884,6 +884,7 @@
} }
], ],
"versions": { "versions": {
"2.1.0": null,
"2.0.1": { "2.0.1": {
"api_version": 8, "api_version": 8,
"commit_sha": "a3a48c2", "commit_sha": "a3a48c2",

View file

@ -1,6 +1,6 @@
# Released under the MIT License. See LICENSE for details. # Released under the MIT License. See LICENSE for details.
# ba_meta require api 8 # ba_meta require api 9
''' '''
@ -748,27 +748,11 @@ def get_player(msg, activity):
return player return player
old_piv = bui.set_party_icon_always_visible
def new_piv(*args, **kwargs):
old_piv(True)
bui.set_party_icon_always_visible = new_piv
class NewMainMenuWindow(bauiv1lib.mainmenu.MainMenuWindow):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
bui.set_party_icon_always_visible(True)
# ba_meta export plugin # ba_meta export plugin
class bySmoothy(babase.Plugin): class bySmoothy(babase.Plugin):
def __init__(self): def __init__(self):
bauiv1lib.mainmenu.MainMenuWindow = NewMainMenuWindow
_babase.import_character = import_character _babase.import_character = import_character
_babase.export_character = export_character _babase.export_character = export_character
_babase.spaz_to_json = spaz_to_json _babase.spaz_to_json = spaz_to_json