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:
Felix
2025-05-11 19:19:24 +02:00
commit 4b1796250c
106 changed files with 7092 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends Resource
class_name ArticleInfo
var id: String
var text: String
var icon: Texture
var price_cents_per_gram: float
func _init(p_id: String, p_text: String, p_icon: Texture, p_price_cents_per_gram: float) -> void:
id = p_id
text = p_text
icon = p_icon
price_cents_per_gram = p_price_cents_per_gram

View File

@@ -0,0 +1 @@
uid://2qj0o01450m0

View File

@@ -0,0 +1,10 @@
extends Resource
class_name CartEntry
var cart_index: int = -1
var article_info: ArticleInfo
var weight_grams: int
var price_cents: int
func _init(p_article_info: ArticleInfo) -> void:
article_info = p_article_info

View File

@@ -0,0 +1 @@
uid://bfu2qt8ra16d1