예제 #1
0
void MkWindowThemedNode::ChangeThemeName(const MkHashStr& srcThemeName, const MkHashStr& destThemeName)
{
	MkArray<MkHashStr> names(2);
	names.PushBack(srcThemeName);
	names.PushBack(destThemeName);
	MkDataNode argument;
	argument.CreateUnitEx(ArgKey_ChangeTheme, names);

	SendNodeCommandTypeEvent(ePA_SNE_ChangeTheme, &argument);
}
예제 #2
0
void MkWindowThemedNode::SetObjectTemplate(MkDataNode& node)
{
	MkVisualPatternNode::SetObjectTemplate(node);

	node.CreateUnit(ObjKey_ThemeName, MkStr::EMPTY);
	node.CreateUnit(ObjKey_ComponentType, MkStr::EMPTY);
	node.CreateUnit(ObjKey_CustomFormName, MkStr::EMPTY);
	node.CreateUnit(ObjKey_UseShadow, false);
	node.CreateUnitEx(ObjKey_ClientSize, MkFloat2::Zero);
	node.CreateUnit(ObjKey_FrameType, MkStr::EMPTY);
	
}
void MkCheckBoxControlNode::SaveObject(MkDataNode& node) const
{
	MkWindowBaseNode::SaveObject(node);

	// caption
	if (ChildExist(CaptionNodeName))
	{
		const MkWindowTagNode* captionNode = dynamic_cast<const MkWindowTagNode*>(GetChildNode(CaptionNodeName));
		if (captionNode != NULL)
		{
			node.CreateUnitEx(ObjKey_CaptionTextName, captionNode->GetTextName());
			node.SetData(ObjKey_CaptionString, m_CaptionString, 0);
		}
	}

	// check
	node.SetData(ObjKey_OnCheck, m_OnCheck, 0);
}
예제 #4
0
void MkLineShape::SetObjectTemplate(MkDataNode& node)
{
	// attribute
	MkBitField32 attr;
	attr.Assign(eRecordable, false);
	attr.Assign(eVisible, true);
	node.CreateUnit(ObjKey_Attribute, attr.m_Field);

	// local vertices
	MkArray<MkFloat2> fEmpty;
	node.CreateUnitEx(ObjKey_LocalVertices, fEmpty);

	// local depth
	node.CreateUnit(ObjKey_LocalDepth, 0.f);

	// indice
	MkArray<unsigned int> uiEmpty;
	node.CreateUnit(ObjKey_Indice, uiEmpty);

	// color
	node.CreateUnit(ObjKey_Color, MkColor::White.ConvertToD3DCOLOR());
}