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); }
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()); }
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()); }
int GxTextRenderer::GetCharIndex(int x, int y, int cx, int cy) { y += GetOffsetY(myAlignV, myTextH); return myGetCharIndex(x, y, cx, cy); }
GxRecti GxTextRenderer::GetCharRect(int x, int y, int charIndex) { y += GetOffsetY(myAlignV, myTextH); return myGetCharRect((float)x, (float)y, charIndex); }
GxRecti GxTextRenderer::GetTextRect(int x, int y) { y += GetOffsetY(myAlignV, myTextH); x += GetOffsetX(myAlignH, myTextW); return GxRecti(x, y, myTextW, myTextH); }