diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:21:55 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:21:55 -0600 |
| commit | f7a6cb3573957ae617bf88a05f72cb22bb912abd (patch) | |
| tree | 9bd8dabfcbd5808a74d995c93dc6f3f611da13f8 /src/ui.moon | |
| parent | 5846a4fea8d6a993466a792977128d21a18587bc (diff) | |
| download | ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.tar.gz ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.tar.bz2 ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.zip | |
Revert "final commit"
This reverts commit c39ff632b46c179709101c5b50a061ebd723689f.
Diffstat (limited to 'src/ui.moon')
| -rw-r--r-- | src/ui.moon | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/ui.moon b/src/ui.moon index 862bec0..3e3a974 100644 --- a/src/ui.moon +++ b/src/ui.moon @@ -5,7 +5,6 @@ util = require("util") Button = require("ui.button") Joystick = require("ui.joystick") Textbox = require("ui.textbox") -Checkbox = require("ui.checkbox") ui_world = hc.new(64) @@ -33,17 +32,6 @@ ui.button = (x,y,width,height,text,controller_binds) -> ui.events.controller[bind] = button button -ui.checkbox = (x,y,width,height,text,controller_binds) -> - controller_binds = controller_binds or {} - checkbox = Checkbox(x,y,width,height,text) - ui.node\append(checkbox.node) - bounds = ui_world\rectangle(x,y,width,height) - ui.events.touch[bounds] = checkbox - ui.events.mouse[bounds] = checkbox - for bind in *controller_binds - ui.events.controller[bind] = checkbox - checkbox - ui.click = (x,y) -> ui_world\shapesAt(x,y) |
