- Messages
- 3
Hi,
for everyone interested in getting images to work in HTML gauges: It will work (at least it did for me) without any errors.
It is not my goal to contribute to the entire html/wasm discussion, please look at this post as if it was an answer to a question.
In the HTML, the path to the image is relative to html_ui/.
E.g.
Example HTML:
CSS:
Implement your own desired code.
For the most part, <img> -elements can be used just like <div> -elements in css.
JS:
<img> -elements can be used just like <div> -elements in js.
Just keep in mind that you won't be able to output text without using a div or equivalent, as this is no a feature of <img> -elements.
for everyone interested in getting images to work in HTML gauges: It will work (at least it did for me) without any errors.
It is not my goal to contribute to the entire html/wasm discussion, please look at this post as if it was an answer to a question.
In the HTML, the path to the image is relative to html_ui/.
E.g.
HTML:
/pages/vcockpit/instruments/generic/misc/your-custom-gauge/texture.png
Example HTML:
HTML:
<img id="your-img-id" src="/pages/vcockpit/instruments/generic/misc/your-custom-gauge/texture.png">
CSS:
Implement your own desired code.
For the most part, <img> -elements can be used just like <div> -elements in css.
JS:
<img> -elements can be used just like <div> -elements in js.
Just keep in mind that you won't be able to output text without using a div or equivalent, as this is no a feature of <img> -elements.