31-07-2007, 07:49 PM
After searching the forum and the FAQ's, things are pretty clear to me how to solve the demand for customizable buttons for various functions (like
the seatbelt, serve food and so on).
It is clear that the part of the code that interacts with the FsPassengers.dll must be implemented in C. And not only that, Dan probably has to
compile it since it has to be linked against that very dll.
However, that doesn't mean that the C gauge code also has to do the graphics, mouse events and so on. C gauges and XML gauges can exchange information
via L: variables. And gauges in general are invisible if they don't have any image objects at all. So what is needed is an invisible gauge in the
FsPassengers2004.gau that just monitors and eventually updates several L: variables via execute_calculator_code(). If it detects a change in the L:
variable caused by an XML gauge, it changes the corresponding data in FsPassengers.dll and visa versa.
If there is any interest in this, I'd be happy to do the XML and C legwork on this (except for the FsPassenger interaction part). I'm all alone and
off work this week, so just say the word.
Jan
the seatbelt, serve food and so on).
It is clear that the part of the code that interacts with the FsPassengers.dll must be implemented in C. And not only that, Dan probably has to
compile it since it has to be linked against that very dll.
However, that doesn't mean that the C gauge code also has to do the graphics, mouse events and so on. C gauges and XML gauges can exchange information
via L: variables. And gauges in general are invisible if they don't have any image objects at all. So what is needed is an invisible gauge in the
FsPassengers2004.gau that just monitors and eventually updates several L: variables via execute_calculator_code(). If it detects a change in the L:
variable caused by an XML gauge, it changes the corresponding data in FsPassengers.dll and visa versa.
If there is any interest in this, I'd be happy to do the XML and C legwork on this (except for the FsPassenger interaction part). I'm all alone and
off work this week, so just say the word.
Jan
--
Anyone who trades liberty for security deserves neither
liberty nor security. -- Benjamin Franklin
Anyone who trades liberty for security deserves neither
liberty nor security. -- Benjamin Franklin