Tree::get_edited Fix in docs example code
(cherry picked from commit b0bcbcc094
)
This commit is contained in:
parent
4c5d2159f5
commit
3993510fc6
|
@ -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).
|
||||||
|
|
Loading…
Reference in New Issue