198
« on: April 25, 2016, 03:17:25 AM »
If the magic token for Category is: Shooter / Flying Vertical
I am not able to use a slash for naming the desired image. I started doing a find/replace for "Shooter /Flying Vertical" to Shooter_Flying_Vertical.png to display the images.
The code is simple for displaying using this renaming method, but I would prefer if the code would work with the original Category:
// Genre
local genre = PreserveImage("genre/[Category]",400,1075,368,368);
genre.set_fit_or_fill( "fit");
genre.set_anchor( ::Anchor.Center );
If you've read this far: Can I use something like if CATEGORY CONTAINS Flying Vertical then X=Shooter_Flying_Vertical