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
|
|
@ -21,6 +21,7 @@ from bascenev1lib.gameutils import SharedObjects
|
|||
from bascenev1lib.actor.bomb import Bomb
|
||||
from bascenev1lib.actor.popuptext import PopupText
|
||||
from bauiv1lib.party import PartyWindow
|
||||
import bauiv1lib.mainmenu
|
||||
if TYPE_CHECKING:
|
||||
from typing import Optional
|
||||
|
||||
|
|
@ -258,10 +259,6 @@ def assignFloInputs(clientID: int):
|
|||
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
|
||||
|
||||
|
||||
|
|
@ -287,8 +284,15 @@ def new_chat_message(*args, **kwargs):
|
|||
|
||||
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
|
||||
|
||||
|
||||
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