Pyroxenium / Basalt

A UI Framework for CC:Tweaked
MIT License
194 stars 38 forks source link

bug: [TITLE]“onEvent”disable #111

Closed Dawekis closed 6 months ago

Dawekis commented 6 months ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Checklist

[ ] I am running the latest version. Tick the box if you are running the latest version!

Dawekis commented 6 months ago

I want use "onEvent" to create custom events, but, no effect, even following the case on the wiki.

Dawekis commented 6 months ago

{EC0602C6-CBB1-4250-BE7F-B731E314C5D3}

NoryiE commented 6 months ago

I've tested it and everything seems to work. Are you sure you are sending rednet events? Also if you want you can try

basalt.onEvent(function(event, side, ...)
basalt.debug(event)
end)

This should also work.

Dawekis commented 6 months ago

Thanks of NoryiE!