2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 04:45:23 +00:00

Implement CHudEnergyInterface

This commit is contained in:
Jack Andersen
2017-04-02 19:37:54 -10:00
parent a2b9bfb1a2
commit 67ed82bc52
10 changed files with 313 additions and 26 deletions

View File

@@ -47,6 +47,7 @@ public:
void Update(float dt);
void Draw(const CGuiWidgetDrawParms& drawParms) const;
float GetActualFraction() const { return xe0_maxEnergy == 0.f ? 0.f : xf4_setEnergy / xe0_maxEnergy; }
float GetFilledEnergy() const { return xf8_filledEnergy; }
void SetCurrEnergy(float e, ESetMode mode);
void SetCoordFunc(FCoordFunc func) { xd8_coordFunc = func; }
void SetEmptyColor(const zeus::CColor& c) { xcc_emptyColor = c; }