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

Add coordinate conversion helper for GUI picking, & demo script #14

Merged
merged 1 commit into from Aug 20, 2023
Merged

Add coordinate conversion helper for GUI picking, & demo script #14

merged 1 commit into from Aug 20, 2023

Conversation

rgrams
Copy link
Contributor

@rgrams rgrams commented Aug 19, 2023

Solves issue #13.

Since the GUI is drawn to a render texture and then scaled in the render script, normal input coordinates don't work, and the conversion formula to get the correct coordinates is decidedly not obvious.

This pull request adds a small module to do that math for you, its minimal integration into the render script, and a sample script for the default example scene to show how it can be used.

- Credit to subsoap / Pkeod for commissioning this feature.
@britzl britzl merged commit 05dcd0f into britzl:master Aug 20, 2023
@britzl
Copy link
Owner

britzl commented Aug 20, 2023

Thanks! Great addition!

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.

None yet

2 participants