I have a few questions to ask.
First, is there any GUI library that I can use alongside Panda3D instead of the PGItems ?
Second, if not, I will need to know a few things about those PGItems and how they work.
I’ve been playing with those things for a while but I still don’t know how the position and size system works. I do things at random, hoping my widget will end up more or less where I want him to be.
I have to ask : is there a way to handle those widgets size and position using pixels as a unit ?
That would save me a huge amount of work. Maybe there are formulas that can help in this task, but probably won’t be able to figure them out ,
I’d also like to know a few things…
When you set a position, it is supposed to be set from the center of the object (and not from the top-left corner), right ?
And the coordinates (0,0) are the center of the screen ?
However I didn’t find the interface to parent the GUI items to use with pixel2d.
I have a running RocketContext with a loaded document, but I just don’t know how to display it with Panda.
Also, I investigated pixel2d but it seems I didn’t get it right, here is my code :