Mission Controller 2

Mission Controller 2

32k Downloads

Add static string method to part specific parameters for external use

DMagic1 opened this issue ยท 1 comments

commented

If you can add something like this:

https://github.com/DMagic1/Orbital-Science/blob/Contracts_Further/Source/Parameters/DMCollectScience.cs#L67-L76

to your part-specific contract parameters, PartGoal is the only one I see, I can access it through reflection and display it in the contracts window. The static method and handling the type casting on your end simplify things and prevent anything from being changed or broken from my end.

The reflection methods I'm using for DMagic Orbital Science are here:

https://github.com/DMagic1/KSP_Contract_Window/blob/master/contractAssembly.cs

Editor Window

commented

Will be in the next version when released. Should be version 1.02 at some point. :)