metaforce/Runtime/GuiSys/CGuiGroup.hpp

28 lines
771 B
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-03-10 16:23:16 -08:00
#include <memory>
#include "Runtime/GuiSys/CGuiCompoundWidget.hpp"
2016-03-10 16:23:16 -08:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2018-12-07 21:30:43 -08:00
class CGuiGroup : public CGuiCompoundWidget {
u32 xb8_workerCount = 0;
int xbc_selectedWorker;
bool xc0_b;
2016-03-10 16:23:16 -08:00
public:
2018-12-07 21:30:43 -08:00
CGuiGroup(const CGuiWidgetParms& parms, int defaultWorker, bool b);
FourCC GetWidgetTypeID() const override { return FOURCC('GRUP'); }
2016-03-15 20:37:51 -07:00
2018-12-07 21:30:43 -08:00
void SelectWorkerWidget(int workerId, bool setActive, bool setVisible);
CGuiWidget* GetSelectedWidget();
const CGuiWidget* GetSelectedWidget() const;
bool AddWorkerWidget(CGuiWidget* worker) override;
void OnActiveChange() override;
2016-03-15 20:37:51 -07:00
2018-12-07 21:30:43 -08:00
static std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
static void LoadWidgetFnMap();
2016-03-10 16:23:16 -08:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce