Jump to content
The simFlight Network Forums

Draw line

Recommended Posts

19 minutes ago, neocode said:

Is there a way to draw a line in the screen using fsuipc libraries?

No. The plug-in Lua libraries don't offer any graphics facilities, and if you mean on the FSX or P3D screen, it would be very complex in any case with differences in full screen and windowed modes, docked and undocked windows,, etc.

20 minutes ago, neocode said:

I only saw functions for drawing text in the documentation.

Text display via SimConnect functions is supported. They are relatively trivial.

I don't think SimConnect offers any real graphics features. You might be able to insert objects, and design an object which just looks like a line, but that would appear in the 3D scenery view and not really be a line on the screen. You could also design a gauge with a graphic which is just a line, and have it loaded as part of an aircraft panel, but then again it isn't a "line on screen".

You'd probably be able to do it using normal Windows programming, external to the sim program, and make sure it is "on top", though doing that with the sim in genuine full screen mode (FSX) might be difficult.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.