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:
16
providers/debug_data.gd
Normal file
16
providers/debug_data.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Node
|
||||
|
||||
func load_articles() -> Dictionary[String, ArticleInfo]:
|
||||
var article_infos: Dictionary[String, ArticleInfo] = {}
|
||||
|
||||
for i in range(10):
|
||||
var id = "default_" + var_to_str(i)
|
||||
var info = ArticleInfo.new(
|
||||
id,
|
||||
"Artikel " + var_to_str(i),
|
||||
load("res://icon.svg"),
|
||||
0.1 * i
|
||||
)
|
||||
article_infos[id] = info
|
||||
|
||||
return article_infos
|
||||
1
providers/debug_data.gd.uid
Normal file
1
providers/debug_data.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bdhsniaj50y82
|
||||
8
providers/debug_scale.gd
Normal file
8
providers/debug_scale.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
# This function should eventually set up the connection to the scale
|
||||
# and make the updates flow accordingly
|
||||
# For now, the DebugScaleSlider does that
|
||||
|
||||
func start():
|
||||
pass
|
||||
1
providers/debug_scale.gd.uid
Normal file
1
providers/debug_scale.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://d31aicu0r3gob
|
||||
Reference in New Issue
Block a user