This repository has been archived on 2025-12-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
food-coop-waage/weight_info.gd
Felix 4b1796250c Initial commit
Half-baked state. Most of the UI is mostly done, but the integration
with Grist (or any other data provider) is still missing.
2025-05-11 19:19:24 +02:00

11 lines
347 B
GDScript

extends GridContainer
func _on_entry_updated():
$Label2.text = str(Global.scale_grams) + "g"
$Label4.text = str(Global.tara_grams) + "g"
$Label6.text = str(Global.current_entry.weight_grams) + "g"
$Label8.text = "%.2f" % (Global.current_entry.price_cents / 100.0)
func _ready() -> void:
Global.weights_updated.connect(_on_entry_updated)