Hi guys.
I’m using nifty for my GUI (Java, not XML). I have two images. One, I want to display in the centre of the screen. I have done this. However I have a second image I want to be in the centre of the screen on the Y Axis, but on the left side of the screen for X (aka X=0). No matter what I change, the second image appears in the middle of the screen. Help!
Current Nifty code:
[java]layer(new LayerBuilder(“Layer”) {
{
childLayoutCenter(); // layer properties, add more…
// <panel>
panel(new PanelBuilder("Panel") {
{
childLayoutCenter(); // panel properties, add more...
// add image
image(new ImageBuilder() {
{
filename("Interface/open.png");
childLayoutCenter();
}
});
//.. add more GUI elements here
}
});
panel(new PanelBuilder("Panel1") {
{
childLayoutVertical(); // panel properties, add more...
// add image
image(new ImageBuilder() {
{
alignLeft();
valignCenter();
filename("Interface/open2.png");
//childLayoutCenter();
}
});
//.. add more GUI elements here
}
});
// </panel>
}
});
// </layer>[/java]
it looks like this:
I need the “Swansea university virtual campus” window on the left.
Thanks!