GUI utilities

This commit is contained in:
devZoGok
2024-09-27 17:28:05 +03:00
parent 4c7bc739e8
commit acac13d2ad
4 changed files with 15 additions and 5 deletions
+8
View File
@@ -154,6 +154,14 @@ namespace vb01Gui{
textboxes.push_back(t);
}
Button* AbstractGuiManager::getButton(string name){
for(Button *b : buttons)
if(b->getName() == name)
return b;
return nullptr;
}
void AbstractGuiManager::removeButton(Button *b) {
for (int i = 0; i < buttons.size(); i++) {
if (b == buttons[i]) {