- Joined
- Mar 28, 2008
- Messages
- 671
- Reaction score
- 32
- Points
- 43
Hello,
i want to know in which MFD i am (MFD_LEFT , MFD_RIGHT...), lets say inside the MFD2::Update(...) method...
Just for better understanding:
I have this code, but it just returns the first value, so if the LEFT_MFD is active, it always returns 0, but i want to have only the current MFD...
i want to know in which MFD i am (MFD_LEFT , MFD_RIGHT...), lets say inside the MFD2::Update(...) method...
Just for better understanding:
I have this code, but it just returns the first value, so if the LEFT_MFD is active, it always returns 0, but i want to have only the current MFD...
Code:
...
char name[] = "MyMFD";
int mfdId = oapiGetMFDModeSpecEx(name);
int mfd = -1;
for(int i = 0; i<MAXMFD;i++)
{
if (oapiGetMFDMode(i) == mfdId)
{
return i;
}
}
...
Last edited: