2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/GuiSys/CGuiHeadWidget.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
2016-03-11 22:50:15 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-03-11 22:50:15 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CGuiHeadWidget::CGuiHeadWidget(const CGuiWidgetParms& parms) : CGuiWidget(parms) {}
|
2016-03-11 22:50:15 +00:00
|
|
|
|
2018-12-08 05:30:43 +00: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 22:50:15 +00:00
|
|
|
}
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|