Merge pull request #42 from devZoGok/imp-41-get-gui-rect

imp-41-get-gui-rect
This commit is contained in:
devZoGok
2024-05-28 17:24:25 +00:00
committed by GitHub
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;
+1
View File
@@ -36,6 +36,7 @@ namespace vb01Gui{
void addText(vb01::Text *t){texts.push_back(t);}
void removeText(vb01::Text*);
vb01::Text* getText(std::string);
vb01::Node* getGuiRectangle(std::string);
void removeSlider(Slider*);
void removeAllButtons(std::vector<Button*> = std::vector<Button*>{});
void removeAllListboxes(std::vector<Listbox*> = std::vector<Listbox*>{});