Hi,
In my GUI I create clones from the Node tree of a template I have.
In the Init function I have a function called draw() which handles the creation of the GUI at runtime. I save these cloned node trees in a table.
After the user buys upgrades for the game in this GUI I want to redraw the cloned node_trees to reflect the changes. So my approach would be to delete the cloned node_trees and then call the draw() function again.
The problem is if i delete the ID of one of the cloned node_trees it deletes all of them, even the one i use to create the clones from. When i check the table of the cloned_trees they all have the same hash ids.
Questions:
- Is my approach to relaod these created node trees correct by deleting and redrawing them.
- Do the cloned node_trees not have their own ID so i can adress them?
- Another approach would be cloned the nodes_tree in gui save it in a table and draw it on update? this may be the way to go or what would be best practice?