From dc2106f80d8bfe43c946ffa4d68154484c42abfe Mon Sep 17 00:00:00 2001 From: "m.cirafisi" Date: Sat, 6 Jun 2026 16:07:55 +0200 Subject: [PATCH] bug fix --- core/game_menu/arrow_button.gd | 3 +++ core/game_menu/biome_picker.gd | 1 + core/game_menu/color_picker.gd | 3 +++ core/game_menu/option_menu_button.gd | 3 +++ core/game_menu/photo.gd | 3 +++ core/main_scene_ui/icon_button.gd | 3 +++ core/photo_mode/runtime/photo_mode_controller.gd | 2 ++ 7 files changed, 18 insertions(+) diff --git a/core/game_menu/arrow_button.gd b/core/game_menu/arrow_button.gd index 2abc76b..4756311 100644 --- a/core/game_menu/arrow_button.gd +++ b/core/game_menu/arrow_button.gd @@ -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 diff --git a/core/game_menu/biome_picker.gd b/core/game_menu/biome_picker.gd index e79ee4f..cb06f73 100644 --- a/core/game_menu/biome_picker.gd +++ b/core/game_menu/biome_picker.gd @@ -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) diff --git a/core/game_menu/color_picker.gd b/core/game_menu/color_picker.gd index bb0fb37..1a767ac 100644 --- a/core/game_menu/color_picker.gd +++ b/core/game_menu/color_picker.gd @@ -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 diff --git a/core/game_menu/option_menu_button.gd b/core/game_menu/option_menu_button.gd index 9baeaed..b7b2e74 100644 --- a/core/game_menu/option_menu_button.gd +++ b/core/game_menu/option_menu_button.gd @@ -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 diff --git a/core/game_menu/photo.gd b/core/game_menu/photo.gd index 68cebb4..f86804a 100644 --- a/core/game_menu/photo.gd +++ b/core/game_menu/photo.gd @@ -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 diff --git a/core/main_scene_ui/icon_button.gd b/core/main_scene_ui/icon_button.gd index 9b4c37b..a9d6056 100644 --- a/core/main_scene_ui/icon_button.gd +++ b/core/main_scene_ui/icon_button.gd @@ -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) diff --git a/core/photo_mode/runtime/photo_mode_controller.gd b/core/photo_mode/runtime/photo_mode_controller.gd index b517eb0..56ff512 100644 --- a/core/photo_mode/runtime/photo_mode_controller.gd +++ b/core/photo_mode/runtime/photo_mode_controller.gd @@ -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: