So, in the Lemur Getting Started page, it says to Put it somewhere that we will see it.
by using:
myWindow.setLocalTranslation(300, 300, 0);
But this places it in different positions depending on the resolution, i.e. the middle of a theoretical 600x600 display, but only in the top left corner of a theoretical 1200x1200 display. Those numbers are obviously bogus, but I feel they demonstrate what I’m getting at.
So my question is, setting things like adjusting the “center” of a panel for inset/margin aside, how would one modify this example to center the panel to the middle of the screen?
Or, more simply, would any of the solutions mentioned here to get screen size be applicable to this? Such as get screenSize/2 for screenCenter?
I feel this is a very prominent use case, as in my experience with HTML, hardcoding dimensions leads to massive breakage on different resolutions, and I definitely feel that, if available, centering panels like this would be used much for often than absolute positioning.
If I have missed something somewhere, please correct me