2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:07:42 +00:00

AutoMapper work

This commit is contained in:
Jack Andersen
2017-03-19 19:09:53 -10:00
parent 6c9462e099
commit 8e7773aa94
63 changed files with 1181 additions and 145 deletions

View File

@@ -48,7 +48,7 @@ CLight CGuiLight::BuildLight() const
void CGuiLight::SetIsVisible(bool vis)
{
if (vis)
xb0_frame->AddLight(shared_from_this());
xb0_frame->AddLight(this);
else
xb0_frame->RemoveLight(this);
CGuiWidget::SetIsVisible(vis);
@@ -100,7 +100,8 @@ std::shared_ptr<CGuiWidget> CGuiLight::Create(CGuiFrame* frame, CInputStream& in
}
ret->ParseBaseInfo(frame, in, parms);
frame->AddLight(ret->shared_from_this());
frame->RegisterLight(ret->shared_from_this());
frame->AddLight(ret.get());
return ret;
}