Thread: Mission menu
View Single Post
  #1  
Old 06-15-2012, 09:03 AM
moggel moggel is offline
Approved Member
 
Join Date: Mar 2011
Posts: 70
Default Mission menu

Hi again,

I'm currently fiddling with the mission menu and most if what I need works fine but I have a couple of questions:

1. Is there a way to "persist" a player's menu state?
2. How do I close the menu (from code)?

Guess the first question needs some explaining: If I call the gpSetOrderMissionMenu() method the whole menu seems to be replaced. I assume I'd need to make sure any state related to the pilot needs to be tracked by my own script but, before I spend time writing that code, is there any support for this built in?

The seconds question is hopefully a bit clearer: When the pilot selects one of the options I've presented to him/her the menu should disappear. I've tried sending in empty arrays and null values to the gpSetOrderMissionMenu() method but that actually makes the whole sim take a dive.

Thanks,
Mog
__________________
Core i7 3930K @ 4.8GHz; 16Gb DDR3 (Vengeance); nVidia GTX580; OS disk: 150Gb 10000rpm; SIM disk: 300Gb 10000rpm; Windows 7 x64 Ultimate
Reply With Quote