SDK Question New to Plugins

huddi

New member
Joined
Apr 20, 2009
Messages
38
Reaction score
0
Points
0
Hi!

I've created my own VESSEL2 vessel. I would like to put the
clbkDrawHUD function into a Plugin so that other Vessels can use
it as well.
Is this possible?

Thanks!
Huddi
 
I'm not sure I follow what you're asking here, but best guess is that you want to be able to export your custom HUD drawings to other vessels? Yes, you can do that in a plugin module, though this will do it for every vessel.

In essence, you can write a plugin which leverages the oapiGetFocusInterface call to give you a class interface for the vessel currently in focus in the simulation, and then define your custom HUD drawing within the plugin module as well.

The API reference PDF is your friend. :)
 
No, this doesn't work well... I think Launch MFD does something similar, but it has some disadvantages.

If you want to export this to other vessels, make a .lib of it.
 
Could you tell me where to find a tutorial how to do this?
Thanks!
 
i say, have a look at the launchMFD sources (its open, i think...)

there's no tutorial on this yet... perhaps it's too specific?... so we're stuck with browsing through other ppl's code for now :shrug:


there's also, a rotation-velocity plugin that does exactly that - it adds info to every craft's HUD... but i don't think it come with sources :huh:
 
ahh this explains why i didn't find anything on this :).

thanks for the tip with the mfd. maybe i can derive things from there.
 
Back
Top