From af5ba5b57211acc7e2830768d763551c4531d359 Mon Sep 17 00:00:00 2001 From: elioat Date: Mon, 18 Dec 2023 20:18:05 -0500 Subject: * --- decker/viz.deck | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 decker/viz.deck diff --git a/decker/viz.deck b/decker/viz.deck new file mode 100644 index 0000000..dfeecef --- /dev/null +++ b/decker/viz.deck @@ -0,0 +1,51 @@ +{deck} +version:1 +card:1 +size:[512,342] +name:"viz.deck" + +{card:home} +{widgets} +grid1:{"type":"grid","size":[215,152],"pos":[39,53],"format":"sic","value":{"name":["kiwi","pineapple","watermelon","apple","banana"],"quantity":[33,15,28,78,100],"price":[3.99,8.55,5,0.99,0.89]}} + +{card:card1} +{widgets} +counter1:{"type":"contraption","size":[128,27],"pos":[368,16],"def":"counter","widgets":{"inc":{},"dec":{},"value":{"value":"22"}}} +canvas1:{"type":"canvas","size":[336,288],"pos":[16,32],"script":"card1.0","scale":1} + +{script:card1.0} +on click pos do + +end + +on drag pos do + +end + +on release pos do + +end +{end} + +{contraption:counter} +size:[128,27] +margin:[0,0,0,0] +description:"step counter" +attributes:{"name":["value"],"label":["Value"],"type":["number"]} +{widgets} +inc:{"type":"button","size":[22,20],"pos":[103,3],"script":"counter.0","text":"+"} +dec:{"type":"button","size":[22,20],"pos":[3,3],"script":"counter.1","text":"-"} +value:{"type":"field","size":[67,20],"pos":[30,3],"locked":1,"style":"plain","align":"center"} + +{script:counter.0} +on click do + value.text:value.text+1 +end +{end} + +{script:counter.1} +on click do + value.text:value.text-1 +end +{end} + -- cgit 1.4.1-2-gfad0