projects
/
The Cutests To-Do List.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cff5c5
)
fix blank tasks being able to be checked & some refactor
author
Eduardo
<
[email protected]
>
Sat, 30 Sep 2023 12:34:16 +0000
(14:34 +0200)
committer
Eduardo
<
[email protected]
>
Sat, 30 Sep 2023 12:34:16 +0000
(14:34 +0200)
custom_elements/todo_list_elements/todo_element.gd
patch
|
blob
|
history
diff --git
a/custom_elements/todo_list_elements/todo_element.gd
b/custom_elements/todo_list_elements/todo_element.gd
index 4aa10247c2f8c3ededea78ccc17699d3b0423e05..7a703290180c4842f999dc46e2e043db52c40dfb 100644
(file)
--- a/
custom_elements/todo_list_elements/todo_element.gd
+++ b/
custom_elements/todo_list_elements/todo_element.gd
@@
-22,12
+22,9
@@
func set_stars(how_many: int):
three_star.set_visible(false)
match how_many:
- 1:
- one_star.set_visible(true)
- 2:
- two_star.set_visible(true)
- 3:
- three_star.set_visible(true)
+ 1: one_star.set_visible(true)
+ 2: two_star.set_visible(true)
+ 3: three_star.set_visible(true)
func set_priority(priority: int):
set_stars(priority)
@@
-36,6
+33,7
@@
func set_text(text: String):
check_box.text = text
func hide_checkBox():
+ check_box.queue_free()
check_box_square.queue_free()
func destroy_self():