LibMMButton-1.0
From WowAce Wiki
| Summary | |
|---|---|
| Lib: MMButton-1.0 | |
| A library to handle a minimap button. | |
| TOC | 2.3 (20300) |
| Category | Libraries |
| Author | Pernicius |
| Details | |
| Links | |
| Betas | Ace SVN Zip |
| Changelog | FishEye |
Contents |
[edit]
API Documentation
Note: This documentation is auto-generated. Please note that direct modifications may be overwritten on next autogenerate.
[edit]
:CreateMMButton()
[edit]
Notes
- Creates a minimap button.
[edit]
Example
MyAddon:CreateMMButton()
[edit]
:HideMMButton()
[edit]
Notes
- Hide the button.
[edit]
Example
MyAddon:HideMMButton()
[edit]
:SetMMButtonIcon("path")
[edit]
Arguments
- "path"
- string - Path to the texture
[edit]
Notes
- Sets the button texture
- Default is "Interface\Icons\INV_Misc_QuestionMark"
[edit]
Example
MyAddon:SetMMButtonIcon("path\\to\\my\\texture")
integer integer
[edit]
:SetMMButtonPosition(angle [, radius] [, rounding])
[edit]
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.
[edit]
Notes
- Sets the position of the minimap button.
- Default angle is 0
- Default radius is 80
- Default rounding is 10
[edit]
Example
MyAddon:SetMMButtonPosition(180, 80, 10)
string
[edit]
:SetMMButtonTooltip("lineone" [, linetwo])
[edit]
Arguments
- "lineone"
- string - First line of the Tooltip.
- linetwo
- string - Second line of the Tooltip.
[edit]
Notes
- Sets the text of theTooltip.
[edit]
Example
MyAddon:SetMMButtonTooltip("foo", "bar")
[edit]
:ShowMMButton()
[edit]
Notes
- Show the button.
[edit]
Example
MyAddon:ShowMMButton()

