2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 08:27:43 +00:00

Work on HUD interfaces

This commit is contained in:
Jack Andersen
2017-04-06 19:35:09 -10:00
parent dc781f5c67
commit d3c4f69e6f
26 changed files with 1184 additions and 66 deletions

View File

@@ -1,12 +1,37 @@
#ifndef __URDE_CHUDBALLINTERFACE_HPP__
#define __URDE_CHUDBALLINTERFACE_HPP__
#include "rstl.hpp"
#include "zeus/CVector3f.hpp"
namespace urde
{
class CGuiFrame;
class CGuiWidget;
class CGuiCamera;
class CGuiModel;
class CGuiTextPane;
class CHudBallInterface
{
CGuiCamera* x0_camera;
CGuiWidget* x4_basewidget_bombstuff;
CGuiWidget* x8_basewidget_bombdeco;
CGuiModel* xc_model_bombicon;
CGuiTextPane* x10_textpane_bombdigits;
rstl::reserved_vector<CGuiWidget*, 3> x14_group_bombfilled;
rstl::reserved_vector<CGuiWidget*, 3> x24_group_bombempty;
zeus::CVector3f x34_camPos;
int x40_bombAmount;
int x44_bombCapacity;
int x48_availableBombs;
bool x4c_hasPb;
void UpdatePowerBombReadoutColors();
public:
CHudBallInterface(CGuiFrame& selHud, int bombAmount, int bombCapacity,
int availableBombs, bool hasBombs, bool hasPb);
void SetBombParams(int bombAmount, int bombCapacity, int availableBombs,
bool hasBombs, bool hasPb, bool init);
void SetBallModeFactor(float t);
};