fixed background location

This commit is contained in:
Yvonne Schmidt 2024-11-26 00:25:31 +01:00
parent 170227c97f
commit c5e7ef855e

View File

@ -156,7 +156,7 @@ public class ChoosePartner extends Dialog {
Material backgroundMaterial = new Material(app.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md");
backgroundMaterial.setTexture("ColorMap", backgroundImage);
background.setMaterial(backgroundMaterial);
background.setLocalTranslation(0, 0, -1); // Position behind other GUI elements
background.setLocalTranslation(0, 0, 1); // Position behind other GUI elements
app.getGuiNode().attachChild(background);
}