Hello,
I'm trying to get the MFD button labelling display in my Virtual Cockpit to be correct for any of the MFD resolution options of 256 / 512 / 1024.
I have this bit of code I stole from Atlantis.cpp that determines where the button labels are written on the MFD display when you press [SEL] button.
In clbkLoadVC section I have....
This works for MFD resolution 256, but not higher.
(The Atlantis.cpp used 512, and it works for that resolution but not 256 or 1024)
Question: Is there a way to get the MFD resolution in the OrbiterAPI?
I guess I could check the Orbiter.cfg and Orbiter_NG.cfg for the "VCMfdSize = xxx" line and use that - but is there an easier way in the API?
Many thanks,
Brian
I'm trying to get the MFD button labelling display in my Virtual Cockpit to be correct for any of the MFD resolution options of 256 / 512 / 1024.
I have this bit of code I stole from Atlantis.cpp that determines where the button labels are written on the MFD display when you press [SEL] button.
In clbkLoadVC section I have....
Code:
static EXTMFDSPEC mfds = { // common MFD specs
{0,0,0,0}, // pos
nmesh, // nmesh
0, // ngroup (to be filled)
MFD_SHOWMODELABELS, // flag
6, 6, // nbt1, nbt2
(int)(256/6), (int)(256/7) // bt_yofs, bt_ydist
};
(The Atlantis.cpp used 512, and it works for that resolution but not 256 or 1024)
Question: Is there a way to get the MFD resolution in the OrbiterAPI?
I guess I could check the Orbiter.cfg and Orbiter_NG.cfg for the "VCMfdSize = xxx" line and use that - but is there an easier way in the API?
Many thanks,
Brian