I might have got this wrong, but it seems that it should be possible to display .jpg images in the WEB UI by
- Dropping the image into ‘Resource Files’ in Workbench
- Adding a path so that the WebUI security allows it.
The code I’ve included to do this is:
vpath = static new RexPattern(’/ResourceFiles/’)
mapMenu: MenuItem ‘Pfister Pharmaceuticals Research Complex’;
- MenuItem ‘’;[/code]
However, when I run the game, all I see of the image when I call the menu is a small black box with an x in it.
There are a couple of other threads on this, but none of the solutions seem to work. If there are any other steps
I need to take to add an image, it’s not clear to me from the documentation what they are, at least, using Workbench
on Windows 10.
Many thanks if anyone has any ideas, or can spot something obvious that I’ve missed.
If unsure see linker messages about added files (only in production build - in debug build resources are not embedded in file and are served on the fly).
Thanks Tomas -
the method of setting up the ‘webuires’ directory in the source directory and adding files works perfectly.