Hi,
I am trying to create an in-game panel for an addon that uses Simconnect. I can get the panel to appear in the menu, and I can also add images to the panel using an <img ..> tag. However, I when I try to create a background image using the css file, in the form
background-image: url("<dir>filname.png");
I never get the image to load, and I tried all sort of variations for the directory of the image. No path (just "filename.png") works for <img>, but not for CSS background-image. I do get a "file not found" error message from coherent in the console, but I still have to find the path that would work in CSS.
Does background-image work at all? If not, how would I get an image into the background, behind a bunch of buttons? html5 canvas?
Thanks,
Peter
I am trying to create an in-game panel for an addon that uses Simconnect. I can get the panel to appear in the menu, and I can also add images to the panel using an <img ..> tag. However, I when I try to create a background image using the css file, in the form
background-image: url("<dir>filname.png");
I never get the image to load, and I tried all sort of variations for the directory of the image. No path (just "filename.png") works for <img>, but not for CSS background-image. I do get a "file not found" error message from coherent in the console, but I still have to find the path that would work in CSS.
Does background-image work at all? If not, how would I get an image into the background, behind a bunch of buttons? html5 canvas?
Thanks,
Peter
