2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-03-10 16:23:16 -08:00
|
|
|
|
2019-09-22 14:52:05 -07: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);
|
2019-08-09 05:45:18 -07:00
|
|
|
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();
|
2019-08-14 03:04:11 -07:00
|
|
|
const CGuiWidget* GetSelectedWidget() const;
|
2019-08-09 05:45:18 -07:00
|
|
|
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
|