Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow buttons to work on monitors #7

Closed
wants to merge 3 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Jan 31, 2024

I'm not actually sure how well this works, I'll have to test it more.

I've also made this in around 15 minutes, so it's not tested much.
Should this use the button component or be split into a different one?
Fixes #4 (i think)
Closes #5

Now it's actually tested.
Copy link

@tkbstudios tkbstudios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine and doesn't affect performance.

Copy link
Owner

@MCJack123 MCJack123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I forgor to submit my review for this. Looks good, but I just need a few tiny tweaks to smoothen it out.

button.lua Outdated Show resolved Hide resolved
button.lua Show resolved Hide resolved
button.lua Show resolved Hide resolved
button.lua Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Mar 25, 2024

Actually now it requires the monitor argument, should I leave it like that or see if the window is a monitor and use that?

@MCJack123
Copy link
Owner

True, I would prefer if you auto-detect monitors through pcalling peripheral.getName - that would make it less confusing for newcomers.

@ghost
Copy link
Author

ghost commented Mar 25, 2024

I love github mobile bugs.
Alright, but I'll have to do it tomorrow.

@ghost
Copy link
Author

ghost commented Mar 26, 2024

Finally got around to doing it, also fixed a typo that broke everything (oops).

@ghost ghost closed this by deleting the head repository Jun 1, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for rendering and interaction on monitor
2 participants