UI - Add HUD Framework
When merged this pull request will:
- Add public API for drawing HUD Elements via
cutRscon postInit alongside ACE HUD Elements. - Port Advanced Fatigue Stamina Bar, Medical Feedback Indicators & UI Speed Indicator to HUD Framework.
- Cleanup some Advanced Fatigue code.
UI elements are drawn in postInit and have their conditions checked on ace_infoDisplayChanged event. They are hidden on featureCamera player event as well as when opening map, pause menu, group (Team Switch) menu, and debriefing screen in multiplayer.
Still very WIP. Posting to see community reaction & feedback. Ideally this should be able to handle most of the project's UI elements.
IMPORTANT
- [x] If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
- [x] Development Guidelines are read, understood and applied.
- [x] Title of this PR uses our standard template
Component - Add|Fix|Improve|Change|Make|Remove {changes}.
Framework seems way more fitting to live in a ui component.
Kept in common so as not to change dependencies for other components, though I do agree.
Is dependency a problem?
Internally, probably not. But it would hurt modularity if every component adding UI required ui. I don't personally know of any third-party builds that omit it, but they might exist.
If UI only provides framework and settings, there is zero problems with that. Custom packs are the responsibility of the packer, we have solid documentation on requirements.