mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Merge pull request #203 from rikkolovescats/fix-floater-party-icon-always-visible
Fix a bug to set party icon to always visible in floater.py
This commit is contained in:
commit
10d56a0bf8
2 changed files with 17 additions and 7 deletions
|
|
@ -347,6 +347,12 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"2.0.1": {
|
||||||
|
"api_version": 8,
|
||||||
|
"commit_sha": "1d45e69",
|
||||||
|
"released_on": "08-12-2023",
|
||||||
|
"md5sum": "e5ca160fd0c847697fbf61d53462a7cd"
|
||||||
|
},
|
||||||
"2.0.0": {
|
"2.0.0": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "48f9302",
|
"commit_sha": "48f9302",
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ from bascenev1lib.gameutils import SharedObjects
|
||||||
from bascenev1lib.actor.bomb import Bomb
|
from bascenev1lib.actor.bomb import Bomb
|
||||||
from bascenev1lib.actor.popuptext import PopupText
|
from bascenev1lib.actor.popuptext import PopupText
|
||||||
from bauiv1lib.party import PartyWindow
|
from bauiv1lib.party import PartyWindow
|
||||||
|
import bauiv1lib.mainmenu
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
@ -258,10 +259,6 @@ def assignFloInputs(clientID: int):
|
||||||
i.assigninput(babase.InputType.LEFT_RIGHT, floater.leftright)
|
i.assigninput(babase.InputType.LEFT_RIGHT, floater.leftright)
|
||||||
|
|
||||||
|
|
||||||
# Display chat icon, but if user open/close gather it may disappear
|
|
||||||
bui.set_party_icon_always_visible(True)
|
|
||||||
|
|
||||||
|
|
||||||
old_piv = bui.set_party_icon_always_visible
|
old_piv = bui.set_party_icon_always_visible
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -287,8 +284,15 @@ def new_chat_message(*args, **kwargs):
|
||||||
|
|
||||||
bs.chatmessage = new_chat_message
|
bs.chatmessage = new_chat_message
|
||||||
|
|
||||||
|
|
||||||
|
class NewMainMenuWindow(bauiv1lib.mainmenu.MainMenuWindow):
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
# Display chat icon, but if user open/close gather it may disappear
|
||||||
|
bui.set_party_icon_always_visible(True)
|
||||||
|
|
||||||
|
|
||||||
# ba_meta export plugin
|
# ba_meta export plugin
|
||||||
|
|
||||||
|
|
||||||
class byFreaku(babase.Plugin):
|
class byFreaku(babase.Plugin):
|
||||||
def __init__(self): pass
|
def on_app_running(self):
|
||||||
|
bauiv1lib.mainmenu.MainMenuWindow = NewMainMenuWindow
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue