mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
Merge pull request #42 from devZoGok/imp-41-get-gui-rect
imp-41-get-gui-rect
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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*>{});
|
||||
|
||||
Reference in New Issue
Block a user