correctly deleting GUI rects when changing trading screens

This commit is contained in:
devZoGok
2024-05-25 20:19:09 +03:00
parent 83b9184812
commit 1274ba20f6
4 changed files with 20 additions and 2 deletions
+5 -1
View File
@@ -33,7 +33,11 @@ namespace battleship{
vector<Checkbox*> checkboxes{};
vector<Slider*> sliders{};
vector<Textbox*> textboxes{};
vector<Node*> guiRects = guiManager->getGuiRectangles();
vector<Node*> guiRects{
guiManager->getGuiRectangle("refineds"),
guiManager->getGuiRectangle("wealth"),
guiManager->getGuiRectangle("research"),
};
vector<Text*> texts{
guiManager->getText("depth"),
guiManager->getText("refineds"),