Refactor production request handling: implement queuing mechanism and improve production application logic
This commit is contained in:
@@ -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))):
|
||||
|
||||
Reference in New Issue
Block a user