mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Update store events specials to API 8
This commit is contained in:
parent
33ff367f4f
commit
c41cc10665
2 changed files with 8 additions and 8 deletions
|
|
@ -272,6 +272,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"2.0.0": null,
|
||||||
"1.0.0": {
|
"1.0.0": {
|
||||||
"api_version": 7,
|
"api_version": 7,
|
||||||
"commit_sha": "63d674cf",
|
"commit_sha": "63d674cf",
|
||||||
|
|
|
||||||
|
|
@ -21,15 +21,14 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||||
For more information, please refer to <http://unlicense.org/>
|
For more information, please refer to <http://unlicense.org/>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ba_meta require api 7
|
# ba_meta require api 8
|
||||||
|
|
||||||
from typing import List, Dict, Any
|
from typing import List, Dict, Any
|
||||||
|
|
||||||
import ba
|
import babase
|
||||||
import ba._store
|
import bauiv1 as bui
|
||||||
import ba.internal
|
|
||||||
|
|
||||||
original_get_store_layout = ba._store.get_store_layout
|
original_get_store_layout = bui.app.classic.store.get_store_layout
|
||||||
|
|
||||||
|
|
||||||
def add_special_characters(layout:
|
def add_special_characters(layout:
|
||||||
|
|
@ -62,6 +61,6 @@ def modified_get_store_layout() -> Dict[str, List[Dict[str, Any]]]:
|
||||||
|
|
||||||
|
|
||||||
# ba_meta export plugin
|
# ba_meta export plugin
|
||||||
class Main(ba.Plugin):
|
class Main(babase.Plugin):
|
||||||
def on_app_running(self) -> None:
|
def on_app_running(self) -> None:
|
||||||
ba.internal.get_store_layout = modified_get_store_layout
|
bui.app.classic.store.get_store_layout = modified_get_store_layout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue