Skip to content

Commit 082fe96

Browse files
committed
Wire up 'life' demo
1 parent 1e8c527 commit 082fe96

File tree

3 files changed

+593
-552
lines changed

3 files changed

+593
-552
lines changed

resources/ecs/examples.ecs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
module LifeModule
1414
div Life
1515
button ShowLife
16+
button ShowLifeDoc
1617
div Status
1718
variable Content
1819
variable Script
@@ -22,6 +23,7 @@
2223
replace `/SHOW-IMAGESWITCHER/` with `<button id="show-imageswitcher">Show</button>` in Content
2324
replace `/SHOW-USERCAPTURE/` with `<button id="show-usercapture">Show</button>` in Content
2425
replace `/SHOW-LIFE/` with `<button id="show-life">Show</button>` in Content
26+
replace `/LIFEDOC/` with `<button id="show-lifedoc">Here</button>` in Content
2527

2628
on message
2729
begin
@@ -62,12 +64,15 @@ Start:
6264
if LifeModule is not running
6365
begin
6466
wait 10 ticks
65-
rest get Script from `/resources/ecs/life.ecs`
67+
rest get Script from `/resources/ecs/lifedemo.ecs`
6668
run Script as LifeModule
6769
attach Life to `ex-life`
6870
attach ShowLife to `show-life`
6971
fork to InitLife
7072
end
73+
attach ShowLifeDoc to `show-lifedoc`
74+
on click ShowLifeDoc send `life` to parent
75+
7176
send to ImageSwitcherModule
7277
stop
7378

@@ -104,4 +109,4 @@ InitLife:
104109
on click ShowLife go to InitLife
105110
send `show` to LifeModule
106111
end
107-
stop
112+
stop

0 commit comments

Comments
 (0)