engine icon indicating copy to clipboard operation
engine copied to clipboard

Documentation around creating gui components?

Open celer opened this issue 6 years ago • 2 comments

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

celer avatar Dec 08 '19 18:12 celer

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.

stiray avatar Dec 17 '19 09:12 stiray

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.

danaugrs avatar Jun 18 '22 15:06 danaugrs