Print at Dec 19, 2025, 3:53:48 PM

Posted by Mitsaki at Aug 18, 2011, 6:22:01 PM
confused   HomeTexture
Hello,

I would like to use the class room and modify the setFloorTexture, but the API says that my variable is of type HomeTexture. I am not very familiar with Java and I don't know how I can modify it...
Here is some of my code. What I have done already is to make an array of the values that I need and then save them in the variables. So, if str[16] = Beige_Tiles, I would like this value to be places in Floor_Texture and then use it to make my Room.

String Floor_Display = str[15];
HomeTexture Floor_Texture = str[16];

if (Floor_Display == "True") {
Parallelogram_Room.setFloorVisible(true);
Parallelogram_Room.setFloorTexture(Floor_Texture);
}

Any help would be very important crying