mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Fixing Build in a Plugin
This commit is contained in:
parent
833bdf0957
commit
d8bb90fa7e
1 changed files with 5 additions and 8 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
"""
|
"""
|
||||||
This is free and unencumbered software released into the public domain.
|
This is free and unencumbered software released into the public domain.
|
||||||
|
|
||||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||||
distribute this software, either in source code form or as a compiled
|
distribute this software, either in source code form or as a compiled
|
||||||
binary, for any purpose, commercial or non-commercial, and by any
|
binary, for any purpose, commercial or non-commercial, and by any
|
||||||
means.
|
means.
|
||||||
|
|
||||||
In jurisdictions that recognize copyright laws, the author or authors
|
In jurisdictions that recognize copyright laws, the author or authors
|
||||||
of this software dedicate any and all copyright interest in the
|
of this software dedicate any and all copyright interest in the
|
||||||
software to the public domain. We make this dedication for the benefit
|
software to the public domain. We make this dedication for the benefit
|
||||||
|
|
@ -13,7 +11,6 @@ of the public at large and to the detriment of our heirs and
|
||||||
successors. We intend this dedication to be an overt act of
|
successors. We intend this dedication to be an overt act of
|
||||||
relinquishment in perpetuity of all present and future rights to this
|
relinquishment in perpetuity of all present and future rights to this
|
||||||
software under copyright law.
|
software under copyright law.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
|
@ -21,7 +18,6 @@ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
For more information, please refer to <http://unlicense.org/>
|
For more information, please refer to <http://unlicense.org/>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -29,7 +25,6 @@ For more information, please refer to <http://unlicense.org/>
|
||||||
|
|
||||||
from typing import List, Dict, Any
|
from typing import List, Dict, Any
|
||||||
|
|
||||||
import _ba
|
|
||||||
import ba
|
import ba
|
||||||
import ba._store
|
import ba._store
|
||||||
import ba.internal
|
import ba.internal
|
||||||
|
|
@ -37,7 +32,8 @@ import ba.internal
|
||||||
original_get_store_layout = ba._store.get_store_layout
|
original_get_store_layout = ba._store.get_store_layout
|
||||||
|
|
||||||
|
|
||||||
def add_special_characters(layout: Dict[str, List[Dict[str, Any]]]) -> Dict[str, List[Dict[str, Any]]]:
|
def add_special_characters(layout:
|
||||||
|
Dict[str, List[Dict[str, Any]]]) -> Dict[str, List[Dict[str, Any]]]:
|
||||||
special_characters = [
|
special_characters = [
|
||||||
'characters.bunny',
|
'characters.bunny',
|
||||||
'characters.taobaomascot',
|
'characters.taobaomascot',
|
||||||
|
|
@ -48,7 +44,8 @@ def add_special_characters(layout: Dict[str, List[Dict[str, Any]]]) -> Dict[str,
|
||||||
layout['characters'][0]['items'].append(character)
|
layout['characters'][0]['items'].append(character)
|
||||||
|
|
||||||
|
|
||||||
def add_special_minigames(layout: Dict[str, List[Dict[str, Any]]]) -> Dict[str, List[Dict[str, Any]]]:
|
def add_special_minigames(layout:
|
||||||
|
Dict[str, List[Dict[str, Any]]]) -> Dict[str, List[Dict[str, Any]]]:
|
||||||
special_minigames = [
|
special_minigames = [
|
||||||
'games.easter_egg_hunt',
|
'games.easter_egg_hunt',
|
||||||
]
|
]
|
||||||
|
|
@ -67,4 +64,4 @@ 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(ba.Plugin):
|
||||||
def on_app_running(self) -> None:
|
def on_app_running(self) -> None:
|
||||||
ba.internal.get_store_layout = modified_get_store_layout
|
ba.internal.get_store_layout =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue