mirror of https://github.com/AxioDL/metaforce.git
36 lines
825 B
C++
36 lines
825 B
C++
#ifndef __URDE_CAUIMETER_HPP__
|
|
#define __URDE_CAUIMETER_HPP__
|
|
|
|
#include "CGuiGroup.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
|
|
class CAuiMeter : public CGuiGroup
|
|
{
|
|
bool xc4_noRoundUp;
|
|
s32 xc8_maxCapacity;
|
|
s32 xcc_capacity;
|
|
s32 xd0_value = 0;
|
|
std::vector<CGuiGroup*> xd4_workers;
|
|
void UpdateMeterWorkers();
|
|
|
|
public:
|
|
CAuiMeter(const CGuiWidgetParms& parms, bool noRoundUp,
|
|
u32 maxCapacity, u32 workerCount);
|
|
FourCC GetWidgetTypeID() const {return FOURCC('METR');}
|
|
|
|
void OnVisibleChange();
|
|
void SetCurrValue(s32 val);
|
|
void SetCapacity(s32 cap);
|
|
void SetMaxCapacity(s32 cap);
|
|
CGuiWidget* GetWorkerWidget(int id) const;
|
|
bool AddWorkerWidget(CGuiWidget* worker);
|
|
|
|
static CAuiMeter* Create(CGuiFrame* frame, CInputStream& in, bool flag);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __URDE_CAUIMETER_HPP__
|