mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
Fixing a Party Window showing msg bug
This commit is contained in:
parent
74c4a6c357
commit
06174ef34c
@ -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;
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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_{};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user