Fix a bug to set party icon to always visible in floater.py

This change seems necessary to always show party icon on game launch as
of 1.7.30.
This commit is contained in:
Rikko 2023-12-08 21:22:42 +05:30
parent 54b35309f4
commit 6ca93193d6
No known key found for this signature in database
2 changed files with 12 additions and 7 deletions

View file

@ -347,6 +347,7 @@
}
],
"versions": {
"2.0.1": null,
"2.0.0": {
"api_version": 8,
"commit_sha": "48f9302",
@ -911,4 +912,4 @@
}
}
}
}
}

View file

@ -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,9 +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 +285,14 @@ 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