diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:12:19 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:12:19 -0600 |
| commit | 5846a4fea8d6a993466a792977128d21a18587bc (patch) | |
| tree | f1c53d194fc11af1f354be91a78472bdf467175c /src/ui.moon | |
| parent | c39ff632b46c179709101c5b50a061ebd723689f (diff) | |
| download | ggj25-5846a4fea8d6a993466a792977128d21a18587bc.tar.gz ggj25-5846a4fea8d6a993466a792977128d21a18587bc.tar.bz2 ggj25-5846a4fea8d6a993466a792977128d21a18587bc.zip | |
Actual final commit
Diffstat (limited to 'src/ui.moon')
| -rw-r--r-- | src/ui.moon | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui.moon b/src/ui.moon index 3c45b80..862bec0 100644 --- a/src/ui.moon +++ b/src/ui.moon @@ -86,8 +86,8 @@ ui.node = am.group! has_fire = (obj) -> assert(obj.fire, obj.__class.__name .. " doesn't have a .fire method") -ui.dbg = am.translate(0,0)\append(am.circle(vec2(0,0),5,vec4(0,0,0,1)))\append(am.text("Hello, world!")) -ui.node\append(ui.dbg) +--ui.dbg = am.translate(0,0)\append(am.circle(vec2(0,0),5,vec4(0,0,0,1)))\append(am.text("Hello, world!")) +--ui.node\append(ui.dbg) ui.node\action(() -> pos = win\mouse_position() @@ -98,7 +98,7 @@ ui.node\action(() -> am.eval_js("CONT.loop()") cont_state = am.eval_js("CONT.last_state") -- Debugging for mouse position: - ui.dbg.position2d = pos + --ui.dbg.position2d = pos mo_tbl = event: "mouse_over" data: pos |
