- Messages
- 4
- Country

Hello,
Is there any way to make images show up in a guage in msfs using javascript or c++?
Thanks!
Is there any way to make images show up in a guage in msfs using javascript or c++?
Thanks!
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.







<div class="frog"></div> and your CSS contains .frog { background-image: "frog.jpg" } then the picture of a frog will appear in your gauge and you don't need any JS. WIth one line of JS you can translate or rotate that image, which is how every gauge works (also with one line of JS you can update a number displayed in the div).
"An image on a page," seems a somewhat pedestrian application, for the potential of web assembly. For your image, let's go ahead and substitute tonight's menu. Care to order, from the cockpit, video conference style? How about watching the Kentucky Derby, from Churchill Downs.lol C++/webassembly is an extremely odd choice to put an image on a page.




Can be satisfied by taking the GaugeAircraft sample and replacing the demo image, with a desired image, ok? This seems pretty simple.Is there any way to make images show up in a guage in msfs using javascript or c++?
Ok, let's be clear that this is something you "think." You are comparing comments in a forum, that is quickly adding scores, if not hundreds of lines, to it's position, as a single entity, against "lines of code," as some sort of multitude, in rebuttal. Please stop the nonsense. You actually have quite a few arguments in favor of WASM and you'd know them if you looked into the SDK. I am not "advocating" WASM, I answered a forum post and I provided personal anecdotes to support the idea.I think we have a hypothetical argument in favor of C++/webassembly on one side and hundreds of thousands of lines of html/js in real MSFS gauges on the other...

Surely if C++/webassembly is to be recommended there will be good examples in real MSFS aircraft somewhere?



I don't know how to write to a file (to save aircraft preferences) with html/css/js.
Include.addScript("/JS/dataStorage.js");SetStoredData("my_unique_var_name", "string value to save");var my_stored_value = GetStoredData("my_unique_var_name");There's no SimConnect API in html/js gauge support AFAIK. Subscribing to events and reading/writing simvars is ok via the gauge API, so that's what I've needed in my gauges that could have been either API, but I'm assuming there's something you might want to do in a gauge with SimConnect you'd struggle with in the gauge API.I also don't know how you would access simconnect with html/css/js.


I have been having issues with my installation and the samples folder is not showing up, I wanted to ask this before I delve any further in trying to make a guage.It can't be any plainer than the SDK. If someone refuses to confirm that something is "recommended," how could that person possibly be mistaken.
Can be satisfied by taking the GaugeAircraft sample and replacing the demo image, with a desired image, ok? This seems pretty simple.
Now I look at your "procedure" and I for one, am absolutely dead in the water, sorry to be so dumb and still developing. What I can make of it, looks very, very similar to the breakdown of WASM in the SDK, but since you won't read that document, or explore those tutorials, we're not able to relate on that level.
FYI, entering the conversation with conclusions about "us guys" and what we must know or not know, gives an impression one's mind is firmly made up.
Ok, let's be clear that this is something you "think." You are comparing comments in a forum, that is quickly adding scores, if not hundreds of lines, to it's position, as a single entity, against "lines of code," as some sort of multitude, in rebuttal. Please stop the nonsense. You actually have quite a few arguments in favor of WASM and you'd know them if you looked into the SDK. I am not "advocating" WASM, I answered a forum post and I provided personal anecdotes to support the idea.
I'm sure the OP is glad to learn your ideas, as well and I hope you can feel free to articulate them, without forcing everyone to abandon the SDK.