On Friday 27 January 2006 14:32, John Kluza wrote:
> Hi all,
> Is there a way to add panel instruments to a view besides the
> cockpit view? I made a mini instrument panel based on the
> C172's and would like to see it from outside the aircraft too.
> Thanks,
> John
You need to comment out a couple of lines in
src/Cockpit/panel.cxx
////////////////////////////////////////////////////////////////////////
// Global functions.
////////////////////////////////////////////////////////////////////////
bool
fgPanelVisible ()
{
if(globals->get_current_panel() == 0)
return false;
if(globals->get_current_panel()->getVisibility() == 0)
return false;
// if(globals->get_viewmgr()->get_current() != 0)
// return false;
if(globals->get_current_view()->getHeadingOffset_deg() *
SGD_DEGREES_TO_RADIANS != 0)
return false;
return true;
}
Note that the line-break in the condition after the commented
test is due to my e-mailer line-wrap.
One day I'll figure out how to make this settable(?) from the
property tree as I find it extremely useful while working on
aircraft.
LeeE
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel