The bar in the Sync popup is now an AnimatedProgressBar: taller, with a darker track and the theme's accent fill (orange, frost blue in Nord, green with a gold shine for Christmas). It shows Godot's busy animation until the server reports progress, glides to each new value, has a soft highlight sweeping along the filled part inside its rounded corners, and fills and pops before the result shows. With Reduce animations it only jumps to its values. The styles are SyncProgressBar, SyncProgressBarFill and SyncProgressBarText in every theme. Anim.stop stops a keyed animation without starting an empty one. The server now sends sync times as "MM:SS"; the spec is updated from MusicServer develop (also the linux-package route), and the test data and screenshots use the new format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
867 B
GDScript
26 lines
867 B
GDScript
# Generated by tools/generate_api_types.gd from server/openapi.json.
|
|
# Do not edit; change the server and generate again.
|
|
class_name ProgressResponse
|
|
extends RefCounted
|
|
## The [code]ProgressResponse[/code] schema of the MusicServer API.
|
|
|
|
var progress: String
|
|
## How long the sync has been running, as minutes and seconds, e.g. "02:15"
|
|
var time_spent: String
|
|
|
|
|
|
## Reads the fields from parsed JSON. Missing fields keep their defaults.
|
|
static func from_dict(data: Dictionary) -> ProgressResponse:
|
|
var result: ProgressResponse = ProgressResponse.new()
|
|
result.progress = ApiJson.get_string(data, "progress", "")
|
|
result.time_spent = ApiJson.get_string(data, "time_spent", "")
|
|
return result
|
|
|
|
|
|
## Returns the fields under their JSON names, ready for [method JSON.stringify].
|
|
func to_dict() -> Dictionary:
|
|
return {
|
|
"progress": progress,
|
|
"time_spent": time_spent,
|
|
}
|