bug fix
This commit is contained in:
@@ -26,6 +26,7 @@ func _on_pressed() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.punch_in(self)
|
TweenFX.punch_in(self)
|
||||||
|
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ func _on_mouse_entered() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.breathe(self, 1)
|
TweenFX.breathe(self, 1)
|
||||||
|
|
||||||
|
|
||||||
@@ -40,3 +42,4 @@ func _on_mouse_exited() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
|
|||||||
@@ -22,4 +22,5 @@ func _on_pressed() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.press_rotate(self)
|
TweenFX.press_rotate(self)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ func select() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.press_rotate(self)
|
TweenFX.press_rotate(self)
|
||||||
|
|
||||||
|
|
||||||
@@ -46,6 +47,7 @@ func _on_mouse_entered() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.breathe(self, 1)
|
TweenFX.breathe(self, 1)
|
||||||
|
|
||||||
|
|
||||||
@@ -53,3 +55,4 @@ func _on_mouse_exited() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ func _on_pressed() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.punch_in(self)
|
TweenFX.punch_in(self)
|
||||||
|
|
||||||
|
|
||||||
@@ -23,6 +24,7 @@ func _on_mouse_entered() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.breathe(self, 1)
|
TweenFX.breathe(self, 1)
|
||||||
|
|
||||||
|
|
||||||
@@ -30,3 +32,4 @@ func _on_mouse_exited() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ func _on_pressed() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.punch_in(self)
|
TweenFX.punch_in(self)
|
||||||
GameState.on_photo_highlighted.emit(texture_rect.texture)
|
GameState.on_photo_highlighted.emit(texture_rect.texture)
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ func _on_mouse_entered() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.breathe(self, 1)
|
TweenFX.breathe(self, 1)
|
||||||
|
|
||||||
|
|
||||||
@@ -31,3 +33,4 @@ func _on_mouse_exited() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
|
|||||||
@@ -21,15 +21,18 @@ func _on_mouse_entered() -> void:
|
|||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.breathe(self, 1)
|
TweenFX.breathe(self, 1)
|
||||||
|
|
||||||
func _on_mouse_exited() -> void:
|
func _on_mouse_exited() -> void:
|
||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
|
|
||||||
func _on_pressed() -> void:
|
func _on_pressed() -> void:
|
||||||
TweenFX.stop_all(self)
|
TweenFX.stop_all(self)
|
||||||
scale = Vector2.ONE
|
scale = Vector2.ONE
|
||||||
rotation = 0.0
|
rotation = 0.0
|
||||||
|
modulate.a = 1.0
|
||||||
TweenFX.press_rotate(self)
|
TweenFX.press_rotate(self)
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ func _input(event: InputEvent) -> void:
|
|||||||
zoom_tween.parallel().tween_property(camera, "fov", target_size, zoom_time)
|
zoom_tween.parallel().tween_property(camera, "fov", target_size, zoom_time)
|
||||||
|
|
||||||
if event.is_action_pressed("toggle_photo_mode"):
|
if event.is_action_pressed("toggle_photo_mode"):
|
||||||
|
if get_tree().paused:
|
||||||
|
return
|
||||||
if not is_active:
|
if not is_active:
|
||||||
GameState.on_enable_photo_mode_request.emit()
|
GameState.on_enable_photo_mode_request.emit()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user