I only wish implementing new panels was that easy!
Seriously, though, when it comes to implementing panels there is no "magic" to it: it requires custom C++ code to make each control on the panel work -- it takes a lot of work! You can see how it works by looking at how the stock DeltaGlider does it in this file: Orbitersdk\samples\DeltaGlider\DeltaGlider.cpp. In particular, look at the InitPanel, clbkLoadPanel, clbkPanelMouseEvent, and clbkPanelRedrawEvent methods: those methods handle the 2D instrument panels. Once you are familiar with 2D panels you can take a look at the 3D virtual cockpit code as well.
Of course, in order to implement a custom panel you will have to create a custom vessel to use it as well. So if you wanted a custom panel in the Shuttle PB, for example, you would have to create a new, custom version of the Shuttle PB that used your new panel.
well, if it has to be coded with c++ than i cant do anything about it because i dont have the programm you make c++ code and second i have no idea how to make c++ codes anyway thanks for the help.
well, if it has to be coded with c++ than i cant do anything about it because i dont have the programm you make c++ code and second i have no idea how to make c++ codes anyway thanks for the help.
I wonder if it would be possible to create a custom panels dll that would load predefined standard buttons and switches and was configurable via cfg file for positions colors which panel(upper center or lower) etc.
to be really handy it would be able to be used for any ship.
Making custom panel module that can applied to any ship is not possible AFAIK, besides I don't see a good reason for it - custom vessels abilities (even deploying gears) would be unacessible from that new panel.
But making a spacecraft.dll-like solution is possible. But there is the same trouble - The module that creates panels should be the same that creates vessel. So it's either expanding spacecraft.dll or making alternative one with panels.
Anyway, that's interesting task (from design point at least - writing config-reading routines was always boring/difficult for me $).
Damn, may be even some script for button logic should be implemented, so some complex vessel systems can be created
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.