Re: HomeTexture

by Mitsaki » Tue Aug 23, 2011 5:35 pm

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-"};

Code: Select all

    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. [:)]

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