Fixing a Party Window showing msg bug

This commit is contained in:
Vishal 2024-09-02 21:25:32 +05:30 committed by GitHub
parent 74c4a6c357
commit 06174ef34c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -2500,6 +2500,7 @@ static auto PySetPartyWindowOpen(PyObject* self, PyObject* args,
// }
// root_ui->set_party_window_open(static_cast<bool>(value));
g_ui_v1->set_party_window_open(static_cast<bool>(value));
Py_RETURN_NONE;
BA_PYTHON_CATCH;
}

View File

@ -102,7 +102,7 @@ bool UIV1FeatureSet::PartyWindowOpen() {
// if (auto* r = root_ui()) {
// return r->party_window_open();
// }
return false;
return party_window_open_;
}
void UIV1FeatureSet::Draw(base::FrameDef* frame_def) {

View File

@ -131,6 +131,9 @@ class UIV1FeatureSet : public FeatureSetNativeComponent,
auto always_use_internal_on_screen_keyboard() const {
return always_use_internal_on_screen_keyboard_;
}
auto set_party_window_open(bool value) {
party_window_open_ = value;
}
auto HasQuitConfirmDialog() -> bool override;
void ConfirmQuit(QuitType quit_type) override;
@ -142,6 +145,7 @@ class UIV1FeatureSet : public FeatureSetNativeComponent,
Object::Ref<ContainerWidget> overlay_root_widget_;
Object::Ref<RootWidget> root_widget_;
bool always_use_internal_on_screen_keyboard_{};
bool party_window_open_{false};
int ui_lock_count_{};
int language_state_{};
};