improve tween

This commit is contained in:
2026-06-02 10:44:32 +02:00
parent 05f24e5f89
commit 1f645129c9
2 changed files with 5 additions and 2 deletions

View File

@@ -131,13 +131,13 @@ func _on_photo_taken_started() -> void:
photo_mode_black_screen.scale = Vector2(1,1) photo_mode_black_screen.scale = Vector2(1,1)
photo_mode_black_screen.show() photo_mode_black_screen.show()
var tween = TweenFX.fade_in(photo_mode_black_screen, 0.06) var tween = TweenFX.fold_in(photo_mode_black_screen)
await tween.finished await tween.finished
await RenderingServer.frame_post_draw await RenderingServer.frame_post_draw
GameState.on_photo_taken_making.emit() GameState.on_photo_taken_making.emit()
func _on_photo_taken_finished() -> void: func _on_photo_taken_finished() -> void:
var tween = TweenFX.fade_out(photo_mode_black_screen, 0.06) var tween = TweenFX.fold_out(photo_mode_black_screen)
await tween.finished await tween.finished
photo_mode_black_screen.hide() photo_mode_black_screen.hide()

View File

@@ -146,6 +146,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
pivot_offset_ratio = Vector2(0.5, 0.5)
[node name="GameMenu" parent="GameMenuPanel" unique_id=2124096517 instance=ExtResource("4_jh36j")] [node name="GameMenu" parent="GameMenuPanel" unique_id=2124096517 instance=ExtResource("4_jh36j")]
unique_name_in_owner = true unique_name_in_owner = true
@@ -161,6 +162,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
pivot_offset_ratio = Vector2(0.5, 0.5)
[node name="PhotoModeTextureMask" type="TextureRect" parent="PhotoModeTexturePanel" unique_id=1377788813] [node name="PhotoModeTextureMask" type="TextureRect" parent="PhotoModeTexturePanel" unique_id=1377788813]
unique_name_in_owner = true unique_name_in_owner = true
@@ -184,6 +186,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
pivot_offset_ratio = Vector2(0.5, 0.5)
color = Color(0, 0, 0, 1) color = Color(0, 0, 0, 1)
[node name="PhotoTaken" parent="." unique_id=683693112 instance=ExtResource("8_t1xop")] [node name="PhotoTaken" parent="." unique_id=683693112 instance=ExtResource("8_t1xop")]