improve ui and bug fix
This commit was merged in pull request #30.
This commit is contained in:
@@ -16,8 +16,14 @@ func _on_photo_highlighted(texture: Texture) -> void:
|
||||
photo.setup(texture)
|
||||
|
||||
|
||||
var is_closing: bool = false
|
||||
|
||||
func _on_panel_gui_input(event: InputEvent) -> void:
|
||||
if is_closing:
|
||||
return
|
||||
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
|
||||
is_closing = true
|
||||
await TweenFX.fold_out(photo).finished
|
||||
photo.texture_rect.texture = null
|
||||
hide()
|
||||
is_closing = false
|
||||
|
||||
Reference in New Issue
Block a user