2016-03-12 04:58:56 +00:00
|
|
|
#include "CGuiTextPane.hpp"
|
2016-03-14 00:58:19 +00:00
|
|
|
#include "CGuiAnimController.hpp"
|
|
|
|
#include "CGuiLogicalEventTrigger.hpp"
|
2016-03-12 04:58:56 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CGuiTextPane::CGuiTextPane(const CGuiWidgetParms& parms, float a, float b,
|
|
|
|
const zeus::CVector3f& vec, u32 c, const CGuiTextProperties& props,
|
|
|
|
const zeus::CColor& col1, const zeus::CColor& col2,
|
|
|
|
int, int)
|
|
|
|
: CGuiPane(parms, a, b, vec)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CGuiTextPane* CGuiTextPane::Create(CGuiFrame* frame, CInputStream& in, bool flag)
|
|
|
|
{
|
|
|
|
CGuiWidgetParms parms = ReadWidgetHeader(frame, in, flag);
|
|
|
|
float a = in.readFloatBig();
|
|
|
|
float b = in.readFloatBig();
|
|
|
|
zeus::CVector3f vec;
|
2016-03-14 00:58:19 +00:00
|
|
|
vec.readBig(in);
|
2016-03-12 04:58:56 +00:00
|
|
|
u32 c = in.readUint32Big();
|
|
|
|
bool d = in.readBool();
|
|
|
|
bool e = in.readBool();
|
|
|
|
EJustification justification = EJustification(in.readUint32Big());
|
|
|
|
EVerticalJustification vJustification = EVerticalJustification(in.readUint32Big());
|
2016-03-18 03:35:16 +00:00
|
|
|
CGuiTextProperties props(d, e, false, justification, vJustification);
|
2016-03-12 04:58:56 +00:00
|
|
|
zeus::CColor col1;
|
2016-03-14 00:58:19 +00:00
|
|
|
col1.readRGBABig(in);
|
2016-03-12 04:58:56 +00:00
|
|
|
zeus::CColor col2;
|
2016-03-14 00:58:19 +00:00
|
|
|
col2.readRGBABig(in);
|
2016-03-12 04:58:56 +00:00
|
|
|
int f = in.readFloatBig();
|
|
|
|
int g = in.readFloatBig();
|
|
|
|
return new CGuiTextPane(parms, a, b, vec, c, props, col1, col2, f, g);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|