#8: Added functionality to cache more than one song
All checks were successful
Build / build (push) Successful in 1m25s
All checks were successful
Build / build (push) Successful in 1m25s
This commit is contained in:
@@ -74,22 +74,20 @@ func _ready() -> void:
|
||||
func _input(event: InputEvent) -> void:
|
||||
if self.visible == true:
|
||||
if event is InputEventMouseButton && event.is_pressed():
|
||||
print("Mouse Click/Unclick at: ", event.position)
|
||||
var evLocal = make_input_local(event)
|
||||
var evLocal: InputEvent = make_input_local(event)
|
||||
if !Rect2(Vector2(0, 0), sync_panel.size).has_point(evLocal.position):
|
||||
self.visible = false
|
||||
print("CLOSING")
|
||||
|
||||
func start_sync() -> void:
|
||||
print("start_sync")
|
||||
self.visible = true
|
||||
var sync_started: Callable = func sync_started() -> void:
|
||||
var sync_request_sent: Callable = func sync_request_sent() -> void:
|
||||
sync_timer.start(0.75)
|
||||
Settings.currently_syncing = true
|
||||
sync_started.emit()
|
||||
show_sync_progress()
|
||||
if !cool_down_ongoing && !Settings.currently_syncing:
|
||||
Settings.make_request2("/sync", sync_started, false)
|
||||
Settings.make_request2("/sync", sync_request_sent, false)
|
||||
|
||||
func _on_cool_down_timeout() -> void:
|
||||
print("_on_cool_down_timeout")
|
||||
|
||||
Reference in New Issue
Block a user