Hey there.
I am cloning a node-tree (box with text and another sprite-box).
I’ll try to dynamiclly clone it to have couple of buttons based on a table/map.
simply works if I print out the returnvalue of the clone_tree, but where to find the unique-node-id of each element?
the return-table is like this:
DEBUG:SCRIPT:
{
hash: [buildmenu/text_buildstructure_base_title] = Headquater@(-35, -3, 0),
hash: [buildmenu/icon_buildstructure_base] = box@(-40, 0, 0),
hash: [buildmenu/text_buildstructure_base_description] = 100 Iron@(-35, -13, 0),
hash: [buildmenu/button_buildstructure_base] = box@(550, 360, 0),
}
DEBUG:SCRIPT:
{
hash: [buildmenu/text_buildstructure_base_title] = Headquater@(-35, -3, 0),
hash: [buildmenu/icon_buildstructure_base] = box@(-40, 0, 0),
hash: [buildmenu/text_buildstructure_base_description] = 100 Iron@(-35, -13, 0),
hash: [buildmenu/button_buildstructure_base] = box@(550, 360, 0),
}
DEBUG:SCRIPT:
{
hash: [buildmenu/text_buildstructure_base_title] = Headquater@(-35, -3, 0),
hash: [buildmenu/icon_buildstructure_base] = box@(-40, 0, 0),
hash: [buildmenu/text_buildstructure_base_description] = 100 Iron@(-35, -13, 0),
hash: [buildmenu/button_buildstructure_base] = box@(550, 360, 0),
}
- looks like all cloned nodes have the same names etc? is that possible ?
- how to access (where is the unique node-id) for changing text of childs and for positioning?

… will check that!
Got it. Sure without IDs (after my brain connected the right synapsis again).

