Request AutoHideInfoText (was: General Info auto-on/off)

Way to go being too lazy to hit I.
I like it!

Consider the request seconded.
 
No auto-on/off... Accepted.

The other (and better) way:
"i" is the switch for ON
"Shift-i" for OFF

Since I would be more flexible.
 
This is perfect for a new autoilot. When it's finished? Next Tuesday? :P
 
This would revolutionize the way I fly my ships.
Only 300 lines of code to close a few hatches and take off :P
 
I'm searching an Addon that automatically turns OFF top-left&right-general_info if orbiter is in real time and ON if timewarp is active.

Does the "(CLOSED)" suffix in the title of this thread mean that it's no longer a request, and nobody is interested in such add-on?

I'm asking, because I may have such add-on for known versions of Orbiter.

Displaying the information text is controlled by 2 flags (addresses [in hex] shown in some semi-assembly way, but I can convert them to C if that's more readable):
Code:
060929:
Pause state:		byte [[004F4940]+3c7]
Date/time/FoV:		byte [[004F4994]+18c]

100830 inline:
Pause state:		byte [[0050493C]+28f]
Date/time/FoV:		byte [[00504E78]+23e]

101016 inline:
Pause state:		byte [[0050493C]+293]
Date/time/FoV:		byte [[00504E78]+23e]

Those addresses are hardcoded, so this add-on would work only for Orbiter versions I have. A couple of tests on a live example and not just in debugger, and I can attach a module to this thread, which will work with Orbiters: 060929, 100606, 100830, 100905 (after I install it) and 101016, or even with more (like 060504) after I'll download them and install.
 
Whilst I wouldn't want anyone to go through any trouble at all to get this done, it would be nice to have. No one might ever use it but it sure would help with those very late night orbiter sessions where a quick glance to see if I am in realtime fails because my mind just stopped at the 1 and omitted a few zeros.

If this keeps you at all from ninjaing or a cold one, please don't hassle yourself.
 
Last edited:
Would it be possible to add an API call to get the status of the "info" display mode so that graphics client could also hide any texts drawn by them when the "I" key is pressed.
 
Whilst I wouldn't want anyone to go through any trouble at all to get this done, it would be nice to have.
There it is. There was no problem to get this done, but to make it working in as many Orbiter versions, as there might be still being used. It's just a simple hack that uses values retrieved from debugger session, which are constant (hardcoded), but different for each build of Orbiter. :P


By the default, info text is being hidden by this plug-in in 1x acceleration and shown otherwise, but toggling off the info text manually ('I' key by default) inverts it, i.e. the information text at the top of window is being displayed in 1x time acceleration and hidden otherwise.

I can change the behavior or extend it if you want (for example by adding additional opcPause case when simulation is paused).

This plug-in is compatible with Orbiter versions:
  • 050116 (2005),
  • 050216 (2005-P1),
  • 060504 (2006),
  • 060929 (2006-P1),
  • 100606 (2010),
  • 100830 (2010-P1),
  • 100905 (post 2010-P1 beta),
  • 101016 (post 2010-P1 beta).
It's compatible with in-line graphics and external graphics Orbiter executables for the above versions.

When I download Orbiter versions from 2002 and 2003, I can make the plug-in compatible with them as well. :P

It isn't compatible with, and obsolete in Orbiter 110822 and newer (which implement built-in auto-hide feature for the information texts, and no longer use the toggle key).


For those more interested in how it works, sources are included in "Orbitersdk/projects/AutoHideInfoText", along with VS2005, VS2008, VS2010 solutions/projects using Orbiter 2010 property sheets (which can be used in earlier versions of Orbiter if you copy them there from Orbiter 2010), ready to build without additional configuration, if you just have the OrbiterDir user macro properly set.
 

Attachments

Back
Top