Wowpedia
Advertisement
Wowpedia
240,475
pages

Returns the distance from the bottom-left corner of the screen to the center of a Region, using the region's own coordinate space (ie, dependent on effective scale).

x,y = GetCenter()

Returns

The following returns only apply if the region has a defined position and size (nil otherwise).

Number - Distance between the region's center and the left edge of the screen (negative values are further left of the screen edge)
Number - Distance between the region's center and bottom edge of the screen (negative values are below the screen edge)

Patch changes

See also

  • Region:GetLeft() - Distance from the edge of the screen to only the left edge of the region
  • Region:GetBottom() - Distance from the edge of the screen to only the bottom edge of the region
  • Region:GetEffectiveScale() - The product of a region's scale with that of all its parents

References

Advertisement