Claning up scene strucutre for cards and postIts

This commit is contained in:
betalars 2023-06-29 17:36:12 +02:00
parent 8859f2e23f
commit 1af6aea8cb
2 changed files with 12 additions and 13 deletions

View File

@ -6,6 +6,10 @@
[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/messy.theme" id="3_rktsa"] [ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/messy.theme" id="3_rktsa"]
[ext_resource type="Texture2D" uid="uid://bqilajx05t0eb" path="res://logic-scenes/board/particle_textures/void_nomotion.png" id="4_fwm1k"] [ext_resource type="Texture2D" uid="uid://bqilajx05t0eb" path="res://logic-scenes/board/particle_textures/void_nomotion.png" id="4_fwm1k"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_foovg"]
radius = 110.0
height = 336.0
[sub_resource type="AtlasTexture" id="AtlasTexture_ykk13"] [sub_resource type="AtlasTexture" id="AtlasTexture_ykk13"]
atlas = ExtResource("2_ioijn") atlas = ExtResource("2_ioijn")
region = Rect2(0, 0, 600, 440) region = Rect2(0, 0, 600, 440)
@ -141,19 +145,20 @@ func _process(_delta):
self.visible = State.reduce_motion and is_void self.visible = State.reduce_motion and is_void
" "
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_foovg"]
radius = 110.0
height = 336.0
[node name="card" type="Area2D"] [node name="card" type="Area2D"]
rotation = 0.197177 rotation = -0.0265383
script = ExtResource("1_emip0") script = ExtResource("1_emip0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
scale = Vector2(1, 1)
shape = SubResource("CapsuleShape2D_foovg")
[node name="BackgroundSprite" type="AnimatedSprite2D" parent="."] [node name="BackgroundSprite" type="AnimatedSprite2D" parent="."]
clip_children = 2 clip_children = 2
scale = Vector2(0.6, 0.6) scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_ckivt") sprite_frames = SubResource("SpriteFrames_ckivt")
frame = 3 frame = 1
script = SubResource("GDScript_8bs16") script = SubResource("GDScript_8bs16")
[node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"] [node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"]
@ -197,7 +202,3 @@ offset_left = 100.0
offset_top = 148.0 offset_top = 148.0
offset_right = 140.0 offset_right = 140.0
offset_bottom = 188.0 offset_bottom = 188.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("CapsuleShape2D_foovg")

View File

@ -102,7 +102,6 @@ animations = [{
[node name="post-it" type="Area2D"] [node name="post-it" type="Area2D"]
script = ExtResource("1_yvh5n") script = ExtResource("1_yvh5n")
text = "Test"
highlight_color = Color(1.2, 1.2, 1.2, 1) highlight_color = Color(1.2, 1.2, 1.2, 1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
@ -116,7 +115,7 @@ shape = SubResource("CapsuleShape2D_ml4q7")
position = Vector2(99.5, 0) position = Vector2(99.5, 0)
scale = Vector2(0.65, 0.65) scale = Vector2(0.65, 0.65)
sprite_frames = SubResource("SpriteFrames_2amsi") sprite_frames = SubResource("SpriteFrames_2amsi")
frame = 1 frame = 5
[node name="Label" type="Label" parent="Content"] [node name="Label" type="Label" parent="Content"]
anchors_preset = 8 anchors_preset = 8
@ -132,6 +131,5 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme = ExtResource("3_hu2as") theme = ExtResource("3_hu2as")
theme_type_variation = &"card_text" theme_type_variation = &"card_text"
text = "Test"
vertical_alignment = 1 vertical_alignment = 1
autowrap_mode = 3 autowrap_mode = 3