Refactor production request handling: implement queuing mechanism and improve production application logic

This commit is contained in:
Kirill
2026-10-08 22:19:29 +03:00
parent 02c9843e1b
commit 00b6192d19
7 changed files with 107 additions and 39 deletions
+7
View File
@@ -58,6 +58,13 @@ func _set_action_values(values: Array, displayed: Array) -> void:
action_labels[ind].text = text
action_labels[ind].get_parent().get_node("TextureButton").disabled = E.le(values[ind], 0)
func mark_pending(amount: Variant) -> void:
for ind in range(5):
if not E.eq(action_values[ind], amount): continue
action_labels[ind].text = "…"
action_labels[ind].get_parent().get_node("TextureButton").disabled = true
return
func _format_action_value(value: Variant) -> String:
if ((E.lt(value, 1) or (not E.finite(value))) or E.ne(value, E.floor_value(value))):