I want a "main menu" like GSX or FSLabs Spotlights on my print and a 2 sub-menus, and when the person clicks on them perform a action.
Thank for the clarification, I know understand what you are referring too.
1 - What you actually see under / inside the
[Add-ons] main_menu bar are
the P3D Add-ons that have been installed on that same computer.
2 - So If you want to create your own menu-entry inside that list, you need to find out the following things:
- Where, inside which files does P3D store its own information on which add-ons have been installed
- How do the installers of those add-ons actually work
- Which type of information is being added to the P3D add-ons configuration files
Why? When you start up P3D, if first reads those add-on configuration files, so the program is able to load them into memory
before the simulator shows its User interface and its menus on screen to you as the end_user
3 - Here are some links to get you started digging deeper into how P3D uses which types of configuration files "under-the-hood":
-
https://www.prepar3d.com/SDKv5/LearningCenter.php - P3D V5 SDK Online Learning Center
-
https://www.prepar3d.com/SDKv5/sdk/add-ons/add-ons_overview.html - Add-on development section
-
https://www.prepar3d.com/SDKv5/sdk/add-ons/add-on_packages.html - Creating add-on packages
-
https://www.prepar3d.com/SDKv5/sdk/add-ons/add-on_configuration_files.html - Add-on configuration file packages