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