From: Eduardo Date: Sat, 30 Sep 2023 12:33:17 +0000 (+0200) Subject: used set task call X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=6cff5c5ab00783a95c098532c12688ae04268ede;p=The%20Cutests%20To-Do%20List.git used set task call --- diff --git a/scenes/todo_list/ToDoList.gd b/scenes/todo_list/ToDoList.gd index 3aeb805..11d745c 100644 --- a/scenes/todo_list/ToDoList.gd +++ b/scenes/todo_list/ToDoList.gd @@ -35,8 +35,7 @@ func DEBUG_put_lots_of_tasks(how_many: int): for i in range(how_many): var el = load("res://custom_elements/todo_list_elements/todo_element.tscn").instantiate() reorderable_list.call_deferred("add_child", el) - el.call_deferred("set_priority", randi_range(1, 3)) - el.call_deferred("set_text", text_arr[randi_range(0, text_arr.size() - 1)]) + el.call_deferred("set_task", 0, text_arr[randi_range(0, text_arr.size() - 1)], false, 0, randi_range(1, 3), "", "") _add_empty_entry_at_bottom(3) @@ -48,7 +47,6 @@ func _add_empty_entry_at_bottom(how_many: int): el.call_deferred("set_text", "") el.call_deferred("hide_checkBox") - func _on_ready(): bg = Thread.new() bg.start(DEBUG_put_lots_of_tasks.bind(20))