Sign in to follow this  
Guest newmav

Blank Screen in Gauge Callback

Recommended Posts

Is there a way to black out the screen for a couple seconds from a gauge callback? I was going to just create a black gauge that is full screen, but I was wondering if there was a more efficient way to do this. Thanks for any help.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Well, in theory, you can do anything you want in a callback. However, it is not wish to do things that take to long or you will not allow FS to update.A couple of seconds is a very long time when FS is updating at 18 Hz.So you would probably pause the game, then make a window with DirectX and do what you want in it, then return and unpause the game.Patrick

Share this post


Link to post
Share on other sites

Thanks for your reply! Actually, all I want to do is black out the screen before I present an unusual attitude with FSUIPC. The black-out is meant to represent a period of time where the pilot is distracted by something else, and the plane automatically evades a threat. Is there an easier way to blank the screen than with Direct X? Thanks again.

Share this post


Link to post
Share on other sites

Oh, in that case, your original idea would be the simplest to accomplish. Create a 'full screen gauge' that simply toggles an opaque bitmap for however long you need it...

Share this post


Link to post
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
Sign in to follow this