diff --git a/src/ballistica/ui_v1/python/methods/python_methods_ui_v1.cc b/src/ballistica/ui_v1/python/methods/python_methods_ui_v1.cc index 765c719c..ca7d6862 100644 --- a/src/ballistica/ui_v1/python/methods/python_methods_ui_v1.cc +++ b/src/ballistica/ui_v1/python/methods/python_methods_ui_v1.cc @@ -2500,6 +2500,7 @@ static auto PySetPartyWindowOpen(PyObject* self, PyObject* args, // } // root_ui->set_party_window_open(static_cast(value)); + g_ui_v1->set_party_window_open(static_cast(value)); Py_RETURN_NONE; BA_PYTHON_CATCH; } diff --git a/src/ballistica/ui_v1/ui_v1.cc b/src/ballistica/ui_v1/ui_v1.cc index 0bc3846f..db224536 100644 --- a/src/ballistica/ui_v1/ui_v1.cc +++ b/src/ballistica/ui_v1/ui_v1.cc @@ -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) { diff --git a/src/ballistica/ui_v1/ui_v1.h b/src/ballistica/ui_v1/ui_v1.h index d962d6ae..1ecd406d 100644 --- a/src/ballistica/ui_v1/ui_v1.h +++ b/src/ballistica/ui_v1/ui_v1.h @@ -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 overlay_root_widget_; Object::Ref root_widget_; bool always_use_internal_on_screen_keyboard_{}; + bool party_window_open_{false}; int ui_lock_count_{}; int language_state_{}; };