Implement asynchronous save manager with UI update optimizations and add tests for save functionality

This commit is contained in:
Kirill
2026-09-20 22:14:47 +03:00
parent a09e3df220
commit f25b77b605
12 changed files with 385 additions and 34 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ func _set_action_values(values: Array, displayed: Array) -> void:
for ind in range(0, 5):
action_values[ind] = values[ind]
# Keep the original request for execution; show the exact planned output.
action_labels[ind].text = Global.format_number(displayed[ind]) if displayed[ind] > 0 else ""
var text: String = Global.format_number(displayed[ind]) if displayed[ind] > 0 else ""
if action_labels[ind].text != text:
action_labels[ind].text = text
func _on_action_button_pressed(button_id: int) -> void:
+3 -1
View File
@@ -20,7 +20,9 @@ var item_type = ""
func set_label(value: float) -> void:
description.text = Global.format_number(value)
var text: String = Global.format_number(value)
if description.text != text:
description.text = text
#description.text = str(value)