mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Tree::get_edited Fix in docs example code
This commit is contained in:
parent
8da8d44132
commit
9699bac7af
@ -100,7 +100,7 @@
|
||||
Returns the currently edited item. Can be used with [signal item_edited] to get the item that was modified.
|
||||
[codeblock]
|
||||
func _ready():
|
||||
$Tree.item_edited.connect(on_Tree_item_edited)
|
||||
$Tree.connect("item_edited", self, "on_Tree_item_edited")
|
||||
|
||||
func on_Tree_item_edited():
|
||||
print($Tree.get_edited()) # This item just got edited (e.g. checked).
|
||||
|
Loading…
Reference in New Issue
Block a user