2019-09-22 14:52:05 -07:00
|
|
|
#include "Runtime/GuiSys/CGuiHeadWidget.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
2016-03-11 14:50:15 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2016-03-11 14:50:15 -08:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
CGuiHeadWidget::CGuiHeadWidget(const CGuiWidgetParms& parms) : CGuiWidget(parms) {}
|
2016-03-11 14:50:15 -08:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
std::shared_ptr<CGuiWidget> CGuiHeadWidget::Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp) {
|
|
|
|
CGuiWidgetParms parms = ReadWidgetHeader(frame, in);
|
|
|
|
std::shared_ptr<CGuiHeadWidget> ret = std::make_shared<CGuiHeadWidget>(parms);
|
|
|
|
frame->SetHeadWidget(ret->shared_from_this());
|
|
|
|
ret->ParseBaseInfo(frame, in, parms);
|
|
|
|
return ret;
|
2016-03-11 14:50:15 -08:00
|
|
|
}
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|