add hud.is_open(layoutid) --> bool

This commit is contained in:
MihailRis
2025-11-09 23:11:12 +03:00
parent 65bba0088b
commit db05527fcf
3 changed files with 18 additions and 0 deletions
+10
View File
@@ -756,3 +756,13 @@ void Hud::setAllowPause(bool flag) {
}
allowPause = flag;
}
bool Hud::isOpen(const std::string& layoutid) const {
for (const auto& element : elements) {
auto doc = element.getDocument();
if (doc && doc->getId() == layoutid) {
return true;
}
}
return false;
}