dastrukar / hdest-hudcore

Kind of sounds hardcore!
0 stars 1 forks source link

so its like the core of the hud modification -my friend

What?

Basically a replacement of HDest's HUD, designed to be more modular for easier customisability.

On it's own, HUD Core is basically just the default HUD.
(though if you spot any oddities with the normal HUD stuff, please report it)

NOTE: Please don't copy the code of the modules, as they are poorly compiled through brute force scripting.

Usage

Just load it up with HDest, and it should run.
Again, you have to use addons that use HUD Core for anything to change.

Compiling

You should only do this if HUD Core doesn't work with the latest version or a specific version.

Anyhow, if you wish to compile HUD Core, just run compile.sh and pray it works. (make sure that you set the specific branch/commit for the hideousdestructor submodule)
For Windows users, you might want to grab Git Bash for this. (or anything that comes with Git and Bash)

Notice for Mac/BSD users

I wrote the compile script on Linux, which means that I used GNU sed.
Unfortunately, BSD sed doesn't have the substitution flag i, and therefore the script will fail.
The fix is simple: Use GNU sed :]
(no i'm not going to fix it, it's just going to make the script look even more worse than it already does)

Technical info

HUDElement

The generic class used by all HUD elements.

Variables:

Virtual functions:

Utility functions:

HUDItemOverrides

Used by elements that call an item's draw function. You most likely don't have to override this as all drawing is done by items. Instead, take a look at HCItemOverride.
Though, if you do end up overriding it, make sure to set the _OverrideType variable before calling Super.Init(). (see HCItemOverride for valid values)
Inherits from HUDElement.

HCItemOverride

Generic class used in HUDItemOverrides for overriding an item's draw function.

Variables:

Functions: