2016-03-11 00:23:16 +00:00
|
|
|
#include "CGuiTableGroup.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-12-16 04:35:49 +00:00
|
|
|
CGuiTableGroup::CGuiTableGroup(const CGuiWidgetParms& parms, int elementCount,
|
|
|
|
int defaultSel, bool selectWraparound)
|
2016-03-18 02:45:45 +00:00
|
|
|
: CGuiCompoundWidget(parms),
|
2016-12-16 04:35:49 +00:00
|
|
|
xc0_elementCount(elementCount), xc4_userSelection(defaultSel),
|
|
|
|
xc8_prevUserSelection(defaultSel), xcc_defaultUserSelection(defaultSel),
|
|
|
|
xd0_selectWraparound(selectWraparound)
|
2016-12-15 22:37:34 +00:00
|
|
|
{}
|
2016-03-11 00:23:16 +00:00
|
|
|
|
2016-03-18 02:45:45 +00:00
|
|
|
CGuiTableGroup* CGuiTableGroup::Create(CGuiFrame* frame, CInputStream& in, bool flag)
|
|
|
|
{
|
|
|
|
CGuiWidgetParms parms = ReadWidgetHeader(frame, in, flag);
|
|
|
|
|
2016-12-16 04:35:49 +00:00
|
|
|
int elementCount = in.readInt16Big();
|
2016-12-15 22:37:34 +00:00
|
|
|
in.readInt16Big();
|
|
|
|
in.readUint32Big();
|
2016-12-16 04:35:49 +00:00
|
|
|
int defaultSel = in.readInt16Big();
|
2016-12-15 22:37:34 +00:00
|
|
|
in.readInt16Big();
|
2016-12-16 04:35:49 +00:00
|
|
|
bool selectWraparound = in.readBool();
|
2016-12-15 22:37:34 +00:00
|
|
|
in.readBool();
|
|
|
|
in.readFloatBig();
|
|
|
|
in.readFloatBig();
|
|
|
|
in.readBool();
|
|
|
|
in.readFloatBig();
|
|
|
|
in.readInt16Big();
|
|
|
|
in.readInt16Big();
|
|
|
|
in.readInt16Big();
|
|
|
|
in.readInt16Big();
|
|
|
|
|
2016-12-16 04:35:49 +00:00
|
|
|
CGuiTableGroup* ret = new CGuiTableGroup(parms, elementCount, defaultSel, selectWraparound);
|
2016-03-18 02:45:45 +00:00
|
|
|
ret->ParseBaseInfo(frame, in, parms);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2016-03-11 00:23:16 +00:00
|
|
|
}
|