Revert "destructurising board of devs for easy child acess, this will get reverted"

This reverts commit 6bfead3573.
This commit is contained in:
betalars 2023-06-28 01:03:40 +02:00
parent 8e638a6317
commit 989a113c4e
1 changed files with 0 additions and 25 deletions

View File

@ -3,30 +3,6 @@
[ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="1_xrckx"] [ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="1_xrckx"]
[ext_resource type="PackedScene" uid="uid://vkcdj8c3ytbq" path="res://logic-scenes/board/post-it.tscn" id="2_ucudl"] [ext_resource type="PackedScene" uid="uid://vkcdj8c3ytbq" path="res://logic-scenes/board/post-it.tscn" id="2_ucudl"]
[sub_resource type="GDScript" id="GDScript_1ga1l"]
script/source = "extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
for scene in get_children():
for card in scene.get_children():
for child in card.get_children():
if child is PostIt:
card.remove_child(child)
add_child(child)
scene.remove_child(card)
add_child(card)
remove_child(scene)
func pop_child_by_text(text: String) -> Object:
for child in get_children():
if child.text == text:
remove_child(child)
return child
return null
"
[node name="board of devs" type="Control"] [node name="board of devs" type="Control"]
layout_mode = 3 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
@ -34,7 +10,6 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
script = SubResource("GDScript_1ga1l")
[node name="childhood" type="Control" parent="."] [node name="childhood" type="Control" parent="."]
anchors_preset = 0 anchors_preset = 0