metaforce/Runtime/GuiSys/CGuiHeadWidget.cpp

20 lines
519 B
C++
Raw Normal View History

2016-03-11 22:50:15 +00:00
#include "CGuiHeadWidget.hpp"
#include "CGuiFrame.hpp"
namespace urde
{
CGuiHeadWidget::CGuiHeadWidget(const CGuiWidgetParms& parms)
: CGuiWidget(parms) {}
std::shared_ptr<CGuiWidget> CGuiHeadWidget::Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp)
2016-03-11 22:50:15 +00:00
{
CGuiWidgetParms parms = ReadWidgetHeader(frame, in);
std::shared_ptr<CGuiHeadWidget> ret = std::make_shared<CGuiHeadWidget>(parms);
frame->SetHeadWidget(ret->shared_from_this());
2016-03-11 22:50:15 +00:00
ret->ParseBaseInfo(frame, in, parms);
return ret;
}
}