2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 01:47:43 +00:00

More GuiSys classes and fields

This commit is contained in:
Jack Andersen
2016-03-11 12:50:15 -10:00
parent cc4b5d3f98
commit 0e637156c2
16 changed files with 441 additions and 50 deletions

View File

@@ -1,4 +1,5 @@
#include "CGuiWidget.hpp"
#include "CGuiFrame.hpp"
namespace urde
{
@@ -16,6 +17,34 @@ void CGuiWidget::LoadWidgetFnMap()
WidgetFnMap.emplace(std::make_pair(12, &CGuiWidget::MAF_SetStateOfWidget));
}
CGuiWidget::CGuiWidget(const CGuiWidgetParms& parms)
{
}
CGuiWidget::CGuiWidgetParms
CGuiWidget::ReadWidgetHeader(CGuiFrame* frame, CInputStream& in, bool flag)
{
std::string name = in.readString(-1);
s16 selfId = frame->GetWidgetIdDB().AddWidget(name);
std::string parent = in.readString(-1);
s16 parentId = frame->GetWidgetIdDB().AddWidget(parent);
bool a = in.readBool();
bool d = in.readBool();
bool e = in.readBool();
bool f = in.readBool();
zeus::CColor color;
color.readRGBA(in);
EGuiModelDrawFlags df = EGuiModelDrawFlags(in.readUint32Big());
return CGuiWidget::CGuiWidgetParms(frame, a, selfId, parentId, d, e, f,
color, df, true, flag);
}
CGuiWidget* CGuiWidget::Create(CGuiFrame* frame, CInputStream& in, bool)
{
}
bool CGuiWidget::MAF_StartAnimationSet(CGuiFunctionDef* def, CGuiControllerInfo* info)
{
}