Print at Dec 19, 2025, 8:36:29 AM

Posted by Mitsaki at Aug 23, 2011, 5:35:46 PM
smile   Re: HomeTexture
Thanks for the advice. After a while, I found the solution.
for anyone interested:

String[] Wall_Ceiling_Text = {"Beige_Tiles","Blue_Tiles", "Box_Tree", "Marble", "Roughcast",
"Small_Bricks","Small_Red_Bricks","Small_White_Bricks", "Stone",
"Stone-2-","Stone-3-"};

int m;
for (m=0; m<11; m++)
{
if(Left_Wall_Texture.equals(Wall_Ceiling_Text[m]))
{

// Set as Texture image the selected texture
TextureImage Left_Texture_Image = preferences.getTexturesCatalog().getCategories().get(2).getTexture(m);

Left_Wall.setLeftSideTexture(new HomeTexture (Left_Texture_Image));

}
}


To select a texture from Wall Textures catalogue. smile

Really thank you Puybaret. My project seems to work finally:)))