So essentially it goes like this:
// Check to see if the value is a file and directory.
if(findtext(xml_var, ".png"))
xml_var = file("/gfx/[xml_var]")
datum.image = xml_var
winset(player, "window.label", "image='[datum.image]'")
(That's made up code which represents what I'm actually doing.)
However, in the end, the label's image doesn't change any. However, I can do a direct reference to the image from the RSC to the label, and it'll work just fine:
winset(player, "window.label", "image='['image.png']'")
Don't really know what I'm doing wrong at the moment. Any help?
Arg, but again, if you switch to using browse_rsc(), you have to have some kind of reference to your file or it won't be included.