I have tested a lot of DirectGui objects, but i still can’t figure how to organize them on the screen. Is there a “layout” or “matrix” object i can use a to align my objects ? Maybe you can point me to a “real world” example of DirectGUI interface ?
There really aren’t many layout tools for DirectGUI, as far as I’m aware.
Aside from just placing things by hand, there are the “a2d*” NodePaths–a set of NodePaths that provide convenient anchors for various parts of the screen. For example, if you want something placed relative to the bottom-left corner of the screen, you might attach it to “base.a2dBottomLeft”.
It looks like we don’t have much documentation on these in the manual (although Google search results seem to suggest that we perhaps used to have more?), but you should be able to find them by going to the API and searching for “a2d”. (Via the search-bar at the top-right.)
Otherwise, I believe that another forum-member made a graphical designer for DirectGUI–you should find it here:
I haven’t yet tried it myself, so I can’t vouch for or against it, but it might be worth looking at!