@onready var check_box = $MarginContainer/CheckBox
@onready var check_box_square = $MarginContainer/CheckSquare
+@onready var check_box_check = $MarginContainer/Line2D
@onready var one_star = $"1Star"
@onready var two_star = $"2Star"
func hide_checkBox():
check_box.queue_free()
check_box_square.queue_free()
+ check_box_check.queue_free()
func destroy_self():
queue_free()
+
+
+func _on_check_box_toggled(button_pressed):
+ check_box_check.set_visible(button_pressed)
-[gd_scene load_steps=4 format=3 uid="uid://cilxydvrxa3oj"]
+[gd_scene load_steps=3 format=3 uid="uid://cilxydvrxa3oj"]
[ext_resource type="Script" path="res://custom_elements/todo_list_elements/todo_element.gd" id="1_4t3br"]
[ext_resource type="Texture2D" uid="uid://crhn8w3ljpuv7" path="res://themes/default/resources/star_icon.png" id="1_xkf81"]
-[ext_resource type="Texture2D" uid="uid://bbus6xhechcey" path="res://custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png" id="2_m4flb"]
[node name="todo_element" type="Control"]
layout_mode = 3
text = "Pick the laundry and something else very long that canot enter the line"
text_overrun_behavior = 3
-[node name="guide_REMOVE_ME" type="TextureRect" parent="MarginContainer"]
-visible = false
-layout_mode = 2
-texture = ExtResource("2_m4flb")
-expand_mode = 1
-stretch_mode = 4
-
[node name="CheckSquare" type="Line2D" parent="MarginContainer"]
position = Vector2(11.8462, 21.5749)
scale = Vector2(0.6, 0.6)
round_precision = 32
antialiased = true
+[node name="Line2D" type="Line2D" parent="MarginContainer"]
+visible = false
+position = Vector2(2.67732, -1.25992)
+points = PackedVector2Array(29.9865, 50.0173, 43.2567, 66.2941, 50.1453, 58.6793, 53.6888, 54.8995, 59.7522, 49.7024, 73.5325, 40.4104)
+width = 8.0
+default_color = Color(0.545098, 0.827451, 0.776471, 1)
+joint_mode = 2
+begin_cap_mode = 2
+end_cap_mode = 2
+sharp_limit = 0.0
+round_precision = 32
+antialiased = true
+
[node name="1Star" type="Control" parent="."]
visible = false
layout_mode = 1
texture = ExtResource("1_xkf81")
expand_mode = 1
stretch_mode = 4
+
+[connection signal="toggled" from="MarginContainer/CheckBox" to="." method="_on_check_box_toggled"]
-[gd_resource type="Theme" load_steps=14 format=3 uid="uid://dk131w4mrmlyj"]
+[gd_resource type="Theme" load_steps=15 format=3 uid="uid://dk131w4mrmlyj"]
[ext_resource type="FontFile" uid="uid://cek5417mq2pbt" path="res://themes/default/fonts/BunnyCute-Regular.otf" id="1_ab6ib"]
shadow_size = 6
shadow_offset = Vector2(4, 4)
+[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_kg0eb"]
+
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_8510r"]
size = Vector2(0, 0)
CheckBox/colors/font_pressed_color = Color(0, 0, 0, 1)
CheckBox/constants/h_separation = 16
CheckBox/font_sizes/font_size = 64
+CheckBox/icons/checked = SubResource("PlaceholderTexture2D_kg0eb")
CheckBox/icons/unchecked = SubResource("PlaceholderTexture2D_8510r")
CheckBox/styles/disabled = SubResource("StyleBoxEmpty_6gma6")
CheckBox/styles/focus = SubResource("StyleBoxEmpty_vsss1")