metaforce/Runtime/GuiSys/CAuiMeter.hpp

37 lines
869 B
C++
Raw Normal View History

2016-03-10 03:47:37 +00:00
#ifndef __URDE_CAUIMETER_HPP__
#define __URDE_CAUIMETER_HPP__
#include "CGuiGroup.hpp"
2016-03-10 03:47:37 +00:00
namespace urde
{
class CSimplePool;
2016-03-10 03:47:37 +00:00
class CAuiMeter : public CGuiGroup
2016-03-10 03:47:37 +00:00
{
bool xc4_noRoundUp;
s32 xc8_maxCapacity;
s32 xcc_capacity;
s32 xd0_value = 0;
std::vector<CGuiGroup*> xd4_workers;
void UpdateMeterWorkers();
2016-03-11 00:23:16 +00:00
public:
CAuiMeter(const CGuiWidgetParms& parms, bool noRoundUp,
u32 maxCapacity, u32 workerCount);
2017-01-29 03:58:16 +00:00
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 std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
2016-03-10 03:47:37 +00:00
};
}
#endif // __URDE_CAUIMETER_HPP__