about summary refs log tree commit diff stats
path: root/decker/global.deck
blob: f3716ac594e82765b043d5b69ba760c26e96c044 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{deck}
version:1
card:1
size:[512,342]
name:"global.deck"

{card:home}
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],"locked":1,"script":"home.3","show":"transparent","value":"20"}

{script:home.0}
on view do

end
{end}

{script:home.1}
on click do
 counter.text:counter.text+1
end
{end}

{script:home.2}
on click do
 counter.text:counter.text-1
end
{end}

{script:home.3}
on change val do
 
end
{end}

{card:banana}
script:"banana.0"
{widgets}
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
 warp.text:"Counter is ",home.widgets.counter.text
end
{end}

{script:banana.1}
on change do
 
end
{end}