Sets the offset for moving the button's label text when pushed. Moving the button's text while it is being clicked can provide an illusion of 3D depth for the button -- in the default UI's standard button templates, this offset matches the apparent movement seen in the difference between the buttons' normal and pushed textures.

Signature:

Button:SetPushedTextOffset(x, y)

Arguments:

  • x - Horizontal offset for the text (in pixels; values increasing to the right) (number)
  • y - Vertical offset for the text (in pixels; values increasing upward) (number)