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

More CGuiSys and CFrontEndUI work

This commit is contained in:
Jack Andersen
2016-12-15 18:35:49 -10:00
parent 19a371c931
commit f665812d6e
20 changed files with 349 additions and 52 deletions

View File

@@ -3,23 +3,24 @@
namespace urde
{
CGuiTableGroup::CGuiTableGroup(const CGuiWidgetParms& parms, int a, int b, bool c)
CGuiTableGroup::CGuiTableGroup(const CGuiWidgetParms& parms, int elementCount,
int defaultSel, bool selectWraparound)
: CGuiCompoundWidget(parms),
xc0_(a), xc4_(b),
xc8_(b), xcc_(b),
xd0_(c)
xc0_elementCount(elementCount), xc4_userSelection(defaultSel),
xc8_prevUserSelection(defaultSel), xcc_defaultUserSelection(defaultSel),
xd0_selectWraparound(selectWraparound)
{}
CGuiTableGroup* CGuiTableGroup::Create(CGuiFrame* frame, CInputStream& in, bool flag)
{
CGuiWidgetParms parms = ReadWidgetHeader(frame, in, flag);
int a = in.readInt16Big();
int elementCount = in.readInt16Big();
in.readInt16Big();
in.readUint32Big();
int b = in.readInt16Big();
int defaultSel = in.readInt16Big();
in.readInt16Big();
bool c = in.readBool();
bool selectWraparound = in.readBool();
in.readBool();
in.readFloatBig();
in.readFloatBig();
@@ -30,7 +31,7 @@ CGuiTableGroup* CGuiTableGroup::Create(CGuiFrame* frame, CInputStream& in, bool
in.readInt16Big();
in.readInt16Big();
CGuiTableGroup* ret = new CGuiTableGroup(parms, a, b, c);
CGuiTableGroup* ret = new CGuiTableGroup(parms, elementCount, defaultSel, selectWraparound);
ret->ParseBaseInfo(frame, in, parms);
return ret;
}