about summary refs log tree commit diff stats
path: root/decker
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2023-12-04 16:19:20 -0500
committerelioat <hi@eli.li>2023-12-04 16:19:20 -0500
commit64fad616c3f5dd97961237a0ff88f2449395940c (patch)
tree270b03d7fa2a52f1f97a7445a61039d2fee1050d /decker
parenta11b25379447c206003f9603304d33902abd672d (diff)
downloaddecember-2023-64fad616c3f5dd97961237a0ff88f2449395940c.tar.gz
figuring out how to share state between cards
Diffstat (limited to 'decker')
-rw-r--r--decker/global.deck6
1 files changed, 3 insertions, 3 deletions
diff --git a/decker/global.deck b/decker/global.deck
index 50921a0..f3716ac 100644
--- a/decker/global.deck
+++ b/decker/global.deck
@@ -1,6 +1,6 @@
 {deck}
 version:1
-card:0
+card:1
 size:[512,342]
 name:"global.deck"
 
@@ -9,7 +9,7 @@ script:"home.0"
 {widgets}
 up:{"type":"button","size":[60,20],"pos":[272,123],"script":"home.1","text":"Up"}
 down:{"type":"button","size":[60,20],"pos":[272,160],"script":"home.2","text":"Down"}
-counter:{"type":"field","size":[100,20],"pos":[140,140],"script":"home.3","value":"10"}
+counter:{"type":"field","size":[100,20],"pos":[140,140],"locked":1,"script":"home.3","show":"transparent","value":"20"}
 
 {script:home.0}
 on view do
@@ -38,7 +38,7 @@ end
 {card:banana}
 script:"banana.0"
 {widgets}
-warp:{"type":"field","size":[100,20],"pos":[206,161],"script":"banana.1","value":"Counter is 10"}
+warp:{"type":"field","size":[100,20],"pos":[206,161],"locked":1,"script":"banana.1","show":"transparent","value":"Counter is 20"}
 
 {script:banana.0}
 on view do