This commit is contained in:
2026-06-06 16:07:55 +02:00
parent 542e68d43d
commit dc2106f80d
7 changed files with 18 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ func _on_pressed() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.punch_in(self)
@@ -33,6 +34,7 @@ func _on_mouse_entered() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.breathe(self, 1)
@@ -40,3 +42,4 @@ func _on_mouse_exited() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0

View File

@@ -22,4 +22,5 @@ func _on_pressed() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.press_rotate(self)

View File

@@ -32,6 +32,7 @@ func select() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.press_rotate(self)
@@ -46,6 +47,7 @@ func _on_mouse_entered() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.breathe(self, 1)
@@ -53,3 +55,4 @@ func _on_mouse_exited() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0

View File

@@ -16,6 +16,7 @@ func _on_pressed() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.punch_in(self)
@@ -23,6 +24,7 @@ func _on_mouse_entered() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.breathe(self, 1)
@@ -30,3 +32,4 @@ func _on_mouse_exited() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0

View File

@@ -15,6 +15,7 @@ func _on_pressed() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.punch_in(self)
GameState.on_photo_highlighted.emit(texture_rect.texture)
@@ -24,6 +25,7 @@ func _on_mouse_entered() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.breathe(self, 1)
@@ -31,3 +33,4 @@ func _on_mouse_exited() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0

View File

@@ -21,15 +21,18 @@ func _on_mouse_entered() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.breathe(self, 1)
func _on_mouse_exited() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
func _on_pressed() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.press_rotate(self)

View File

@@ -72,6 +72,8 @@ func _input(event: InputEvent) -> void:
zoom_tween.parallel().tween_property(camera, "fov", target_size, zoom_time)
if event.is_action_pressed("toggle_photo_mode"):
if get_tree().paused:
return
if not is_active:
GameState.on_enable_photo_mode_request.emit()
else: