|
@@ -99,7 +99,7 @@
|
|
Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified.
|
|
Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified.
|
|
[codeblock]
|
|
[codeblock]
|
|
func _ready():
|
|
func _ready():
|
|
- $Tree.item_edited.connect(on_Tree_item_edited)
|
|
|
|
|
|
+ $Tree.connect("item_edited", self, "on_Tree_item_edited")
|
|
|
|
|
|
func on_Tree_item_edited():
|
|
func on_Tree_item_edited():
|
|
print($Tree.get_edited()) # This item just got edited (e.g. checked).
|
|
print($Tree.get_edited()) # This item just got edited (e.g. checked).
|