File tree 4 files changed +15
-2
lines changed 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Open your `game.project` file and add the following lines to the dependencies fi
39
39
** [ Druid] ( https://github.com/Insality/druid/ ) **
40
40
41
41
```
42
- https://github.com/Insality/druid/archive/refs/tags/1.1.2 .zip
42
+ https://github.com/Insality/druid/archive/refs/tags/1.1.3 .zip
43
43
```
44
44
45
45
** [ Defold Event] ( https://github.com/Insality/defold-event ) **
Original file line number Diff line number Diff line change @@ -117,7 +117,17 @@ function M:set_nodes(nodes)
117
117
nodes = gui .clone_tree (nodes ) --[[ @as table<hash, node>]]
118
118
end
119
119
120
+ -- When we use gui.clone_tree in inner template (template inside other template)
121
+ -- this nodes have no id. We have table: hash(correct_id) : hash("") or hash("_nodeX"
122
+ -- It's wrong and we use this hack to fix this
123
+ if nodes then
124
+ for id , node in pairs (nodes ) do
125
+ gui .set_id (node , id )
126
+ end
127
+ end
128
+
120
129
self ._meta .nodes = nodes
130
+
121
131
return self
122
132
end
123
133
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ update_frequency = 60
14
14
15
15
[project]
16
16
title = Druid
17
- version = 1.1.2
17
+ version = 1.1.3
18
18
publisher = Insality
19
19
developer = Maksim Tuprikov
20
20
custom_resources = /example/locales
Original file line number Diff line number Diff line change @@ -709,3 +709,6 @@ Please support me if you like this project! It will help me keep engaged to upda
709
709
#### Druid 1.1.2
710
710
- [ #310 ] Add data list matrix example (Grid 4 in row)
711
711
- [ Data List] Fix for data list element amounts issue
712
+
713
+ #### Druid 1.1.3
714
+ - Fix for node_id of cloned nodes with ` gui.clone_tree `
You can’t perform that action at this time.
0 commit comments