Hi!
I don't know if it is possible to set or tweak the draw order of HUD elements directly. I want to make sure HUD element A gets drawn in front of HUD element B, provided I have the identifiers of those elements.
The bigger problem I face is that I don't know how to make sure a particular HUD element gets drawn over or behind a builtin statbar (health, breath). In relation to these HUD elements, the draw order seems pretty random/unpredictable, which makes it hard to design my HUD around the builtin statbars.
For example, if I want to make sure I can draw an image below the builtin health bar, I am unable to do it. :-(
Oddly, when I try to draw something in front of the builtin breath bar, I am also unable to do it (the breath bar is drawn above my custom HUD element).
If I can't set the draw order directly, can you maybe tell me some rules of how the draw order is determined? Maybe I can use these rules for the goal I want to achieve.
Any help is appreciated.