2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 04:17:03 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -2,33 +2,29 @@
#include "CGuiGroup.hpp"
namespace urde
{
namespace urde {
class CSimplePool;
class CAuiMeter : public CGuiGroup
{
bool xc4_noRoundUp;
s32 xc8_maxCapacity;
s32 xcc_capacity;
s32 xd0_value = 0;
std::vector<CGuiGroup*> xd4_workers;
void UpdateMeterWorkers();
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'); }
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);
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);
static std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
};
}
} // namespace urde