set anchor for post-it on card

This commit is contained in:
Adrian Schmid 2023-07-01 13:41:19 +02:00
parent ef93aafd9e
commit 27d3497fde
3 changed files with 10 additions and 15 deletions

View File

@ -146,7 +146,7 @@ func _process(_delta):
"
[node name="card" type="Area2D"]
rotation = -0.0714123
rotation = 0.00585123
script = ExtResource("1_emip0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
@ -158,6 +158,7 @@ shape = SubResource("CapsuleShape2D_foovg")
clip_children = 2
scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_ckivt")
frame = 1
script = SubResource("GDScript_8bs16")
[node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"]
@ -194,13 +195,8 @@ theme = ExtResource("3_rktsa")
theme_type_variation = &"card_text"
autowrap_mode = 3
[node name="postit anchor" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = 100.0
offset_top = 148.0
offset_right = 140.0
offset_bottom = 188.0
[node name="postit anchor" type="Node2D" parent="."]
position = Vector2(-65.6478, 60.3852)
[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]

View File

@ -40,13 +40,13 @@ mouse_filter = 1
[node name="card3" parent="HBoxContainer/dropzone" instance=ExtResource("3_mg053")]
z_as_relative = false
position = Vector2(371, 290)
rotation = 0.00712087
rotation = -0.0292664
collision_layer = 2147483649
is_dragable = true
[node name="card" parent="HBoxContainer/dropzone" instance=ExtResource("3_mg053")]
position = Vector2(640, 659)
rotation = 0.0714344
scale = Vector2(1, 1)
rotation = -0.0217244
is_dragable = true
[node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer"]
@ -111,7 +111,7 @@ shape = SubResource("CircleShape2D_x8rl2")
position = Vector2(-151, -107)
[node name="card2" parent="Node2D/RigidBody2D/ancor" instance=ExtResource("3_mg053")]
rotation = -0.0180459
rotation = 0.00128374
collision_layer = 2
[node name="RigidBody2D2" type="Area2D" parent="Node2D"]
@ -125,7 +125,7 @@ shape = SubResource("CircleShape2D_x8rl2")
position = Vector2(-151, -107)
[node name="card2" parent="Node2D/RigidBody2D2/ancor" instance=ExtResource("3_mg053")]
rotation = 0.0612526
rotation = 0.0767116
collision_layer = 2
[node name="RigidBody2D3" type="Area2D" parent="Node2D"]
@ -139,5 +139,5 @@ shape = SubResource("CircleShape2D_x8rl2")
position = Vector2(-151, -107)
[node name="card2" parent="Node2D/RigidBody2D3/ancor" instance=ExtResource("3_mg053")]
rotation = 0.0528008
rotation = 0.00437383
collision_layer = 2

View File

@ -103,7 +103,6 @@ animations = [{
[node name="post-it" type="Area2D"]
script = ExtResource("1_yvh5n")
highlight_color = Color(1.2, 1.2, 1.2, 1)
is_dragable = null
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(99.5, 0)