get method

This commit is contained in:
devZoGok
2024-05-28 20:22:17 +03:00
parent 79f3d6cd85
commit a6319e0f35
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -248,6 +248,18 @@ namespace vb01Gui{
return text;
}
Node* AbstractGuiManager::getGuiRectangle(string name){
Node *guiRect = nullptr;
for(Node *rect : guiRectangles)
if(rect->getName() == name){
guiRect = rect;
break;
}
return guiRect;
}
void AbstractGuiManager::removeAllButtons(vector<Button*> exceptions){
int targetId = 0;