add hud.is_open(layoutid) --> bool
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -213,6 +213,8 @@ public:
|
||||
|
||||
void setAllowPause(bool flag);
|
||||
|
||||
bool isOpen(const std::string& layoutid) const;
|
||||
|
||||
static bool showGeneratorMinimap;
|
||||
|
||||
/// @brief Runtime updating debug visualization texture
|
||||
|
||||
Reference in New Issue
Block a user