LibMMButton-1.0

From WowAce Wiki
Jump to: navigation, search

API Documentation

Note: This documentation is auto-generated. Please note that direct modifications may be overwritten on next autogenerate.

:CreateMMButton()

Notes

  • Creates a minimap button.

Example

MyAddon:CreateMMButton()

:HideMMButton()

Notes

  • Hide the button.

Example

MyAddon:HideMMButton()

:SetMMButtonIcon("path")

Arguments

"path"
string - Path to the texture

Notes

  • Sets the button texture
  • Default is "Interface\Icons\INV_Misc_QuestionMark"

Example

MyAddon:SetMMButtonIcon("path\\to\\my\\texture")

integer integer

:SetMMButtonPosition(angle [, radius] [, rounding])

Arguments

angle
integer - Angle of the button at the minimap.
radius
integer - Radius of the button relative to the minimap center.
rounding
integer - Rounding of the minimap edge if the shape of the minimap is not round.

Notes

  • Sets the position of the minimap button.
  • Default angle is 0
  • Default radius is 80
  • Default rounding is 10

Example

MyAddon:SetMMButtonPosition(180, 80, 10)

string

:SetMMButtonTooltip("lineone" [, linetwo])

Arguments

"lineone"
string - First line of the Tooltip.
linetwo
string - Second line of the Tooltip.

Notes

  • Sets the text of theTooltip.

Example

MyAddon:SetMMButtonTooltip("foo", "bar")

:ShowMMButton()

Notes

  • Show the button.

Example

MyAddon:ShowMMButton()