breaking: parody conversion of PostIt

This commit is contained in:
betalars 2023-06-28 12:18:00 +02:00
parent e72e7d01cb
commit c229e49b49
2 changed files with 14 additions and 16 deletions

View File

@ -1,6 +1,6 @@
@tool @tool
extends Control extends Area2D
class_name PostIt class_name PostIt
var sibling var sibling

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://vkcdj8c3ytbq"] [gd_scene load_steps=18 format=3 uid="uid://vkcdj8c3ytbq"]
[ext_resource type="Script" path="res://logic-scenes/board/post-it.gd" id="1_yvh5n"] [ext_resource type="Script" path="res://logic-scenes/board/post-it.gd" id="1_yvh5n"]
[ext_resource type="Texture2D" uid="uid://c8ckkjmdegyis" path="res://logic-scenes/board/card-textures/postitsheet.png" id="2_j17jn"] [ext_resource type="Texture2D" uid="uid://c8ckkjmdegyis" path="res://logic-scenes/board/card-textures/postitsheet.png" id="2_j17jn"]
@ -96,32 +96,28 @@ animations = [{
"speed": 5.0 "speed": 5.0
}] }]
[node name="post-it" type="Control"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ml4q7"]
layout_mode = 3 radius = 48.0
anchors_preset = 0 height = 312.0
offset_left = -150.0
offset_top = -50.0 [node name="post-it" type="Area2D"]
offset_right = 150.0
offset_bottom = 50.0
focus_mode = 2
script = ExtResource("1_yvh5n") script = ExtResource("1_yvh5n")
[node name="BackgroundSprite" type="AnimatedSprite2D" parent="."] [node name="BackgroundSprite" type="AnimatedSprite2D" parent="."]
position = Vector2(150, 50) 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 = 5 frame = 5
[node name="Label" type="Label" parent="."] [node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -139.5 offset_left = -38.0
offset_top = -50.0 offset_top = -50.0
offset_right = 137.5 offset_right = 239.0
offset_bottom = 47.0 offset_bottom = 47.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
@ -130,5 +126,7 @@ theme_type_variation = &"card_text"
vertical_alignment = 1 vertical_alignment = 1
autowrap_mode = 3 autowrap_mode = 3
[connection signal="focus_entered" from="." to="." method="_on_focus_entered"] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[connection signal="focus_exited" from="." to="." method="_on_focus_exited"] position = Vector2(99.5, 0)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_ml4q7")