I’m developing a plugin for Mission Planner, and part of this plugin involves modifying the visual elements of the HUD. I need to draw additional lines on the HUD, but I’m running into issues.
I’ve tried using:
myhud.Paint += ...
myhud.DrawLine(...)
However, I keep getting an error stating that access to memory is denied.
What is the correct way to modify the HUD and draw custom elements in a Mission Planner plugin? Any advice would be greatly appreciated!
I’m afraid it is not possible.
The HUD using openGL, and the graphics context is not public.
If you want to change the content of the HUD you must do it within the HUD.cs
So, if I understand correctly, I need to add the element I need to HUD.cs following the same principle as existing parameters like Roll, Pitch, or battery charge, and then build Mission Planner?