setting minimum size for card to reduce transform weirdnes

This commit is contained in:
betalars 2023-06-27 13:51:55 +02:00
parent 5642df52dc
commit da247360bf
1 changed files with 5 additions and 3 deletions

View File

@ -142,12 +142,13 @@ func _process(_delta):
" "
[node name="card" type="Control"] [node name="card" type="Control"]
custom_minimum_size = Vector2(310, 210)
layout_mode = 3 layout_mode = 3
anchors_preset = 0 anchors_preset = 0
offset_left = -150.0 offset_left = -150.0
offset_top = -110.0 offset_top = -110.0
offset_right = 150.0 offset_right = 160.0
offset_bottom = 110.0 offset_bottom = 100.0
focus_mode = 2 focus_mode = 2
script = ExtResource("1_emip0") script = ExtResource("1_emip0")
@ -156,7 +157,8 @@ clip_children = 2
position = Vector2(150, 110) position = Vector2(150, 110)
scale = Vector2(0.6, 0.6) scale = Vector2(0.6, 0.6)
sprite_frames = SubResource("SpriteFrames_ckivt") sprite_frames = SubResource("SpriteFrames_ckivt")
frame = 4 frame = 2
frame_progress = 0.638341
script = SubResource("GDScript_8bs16") script = SubResource("GDScript_8bs16")
[node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"] [node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"]