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.
This commit is contained in:
10
weight_info.gd
Normal file
10
weight_info.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user