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

Documentation around creating gui components? #157

Open
celer opened this issue Dec 8, 2019 · 2 comments
Open

Documentation around creating gui components? #157

celer opened this issue Dec 8, 2019 · 2 comments

Comments

@celer
Copy link

celer commented Dec 8, 2019

Hi,

I've been struggling a lot trying to figure out how to make a 2D drawing GUI component - my goal is to create a 2D drawing component to link to 3D objects. (Imagine a simple SVG like editor) I've spent a lot of time studying and reimplementing the charting component but it's still not apparent how to map 3D coordinates to GUI component coordinates - is there any documentation for this?

I think in general G3N has a really nice GUI component stack which isn't appreciated in the way of golang GUI options - but to make it really awesome it needs documentation.

Thanks

@stiray
Copy link

stiray commented Dec 17, 2019

celer: i had the same case, the events didnt come to my handler. I was subscribing to the message on wrong object, take a look into g3nd/other/raycast.go. You need to call subscribe on Application object and then calculate the object behind click.

@danaugrs
Copy link
Member

Hi @celer, I agree this needs more documentation. Unfortunately I don't currently have the bandwidth. I'm open to PRs if you or anyone is up for it.

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

No branches or pull requests

3 participants