示例#1
0
GxRecti GxTextRenderer::DrawHighlight(int x, int y)
{
	y += GetOffsetY(myAlignV, myTextH);
	myDrawHighlight((float)x, (float)y);
	x += GetOffsetX(myAlignH, myTextW);
	return GxRecti(x, y, myTextW, myTextH);
}
示例#2
0
void PathBehavior::SerializeTo(gd::SerializerElement & element) const
{
    SerializePathsTo(element.AddChild("paths"));

    element.SetAttribute("currentPath", GetCurrentPathName());
    element.SetAttribute("speed", GetSpeed());
    element.SetAttribute("offsetX", GetOffsetX());
    element.SetAttribute("offsetY", GetOffsetY());
    element.SetAttribute("angleOffset", angleOffset);
    element.SetAttribute("reverseAtEnd", ReverseAtEnd());
    element.SetAttribute("stopAtEnd", StopAtEnd());
    element.SetAttribute("followAngle", FollowAngle());
}
示例#3
0
void CBullet::Render()
{
	RECT tRect;
	tRect.left = 0;
	tRect.top = 0;

	if(GetIsScrew())
	{
		tRect.right = tRect.left + 32;
		tRect.bottom = tRect.top + 32;
	}
	else
	{
		tRect.right = tRect.left + 16;
		tRect.bottom = tRect.top + 16;
	}


	TEXTUREMAN->DrawF(GetImageID(),GetPosX() - GetOffsetX(),GetPosY() - GetOffsetY(),-1.0f,1.0f,&tRect,1.0f,1.0f,GetRotation());
}
示例#4
0
int GxTextRenderer::GetCharIndex(int x, int y, int cx, int cy)
{
	y += GetOffsetY(myAlignV, myTextH);
	return myGetCharIndex(x, y, cx, cy);
}
示例#5
0
GxRecti GxTextRenderer::GetCharRect(int x, int y, int charIndex)
{
	y += GetOffsetY(myAlignV, myTextH);
	return myGetCharRect((float)x, (float)y, charIndex);
}
示例#6
0
GxRecti GxTextRenderer::GetTextRect(int x, int y)
{
	y += GetOffsetY(myAlignV, myTextH);
	x += GetOffsetX(myAlignH, myTextW);
	return GxRecti(x, y, myTextW, myTextH);
}