|
|
Addon developers and art creators may benefit from some advanced features that Bongos3 Minimap provides. Here is what you can expect for now:
Register your own Minimap Buttons
You may register your addons minimap buttons using Bongos Minimap. Any registered frame will become movable and its position will be saved in the Bongos profiles. If you find this useful, then please follow these simple steps:
- First, you need to add an optional dependencie for Bongos Minimap, to make sure that it is loaded before your addon. So, add this line to your TOC file:
- Now, call the following code after the Saved Variables have been loaded:
## OptionalDeps: Bongos_Minimap
if BongosMinimap then
BongosMinimap:RegisterButtons(frame1, frame2,...)
endNotes
- You should be able to register any kind of frame here, but Bongos Minimap does not accept nameless frames!
- Please use this function carefully, because it will override the button's "OnDragStart" and "OnDragStop" scripts!
.
Add your own custom skins to Bongos Minimap
Bongos Minimap comes with a nice skins package included. But, if you want to use your own textures, then this tutorial should be helpful.
- First of all, create your addon directory and TOC file. If you don't know how to do this, then read this page.
- Now, you must create your LUA file. This is the most important part of your addon:
BongosMinimap:RegisterSkin(
"Skin Name",
"Round Border Texture",
"Square Border Texture",
"Thickness"
).
Why the Round/Square Textures?
Bongos Minimap provides a large number of minimap shapes. To do this without thousands of textures, Bongos Minimap 'cuts' the textures in 4 pieces and uses them alternately to create the various shapes. (ex: Corner-BottomLeft is done using 3 square pieces and 1 round)
What is the thickness?
Some textures are really thin (like the Tooltip one), but others may be really tick (like Blizzard). Bongos Minimap can't "guess" the thickness of the textures, but the Bongos minimap bar needs to be sized correctly. This is the way I found to solve the problem: you must provide a number (0 or higher) that represents the border thickness. Just try different numbers until you find the correct one! Here is the thickness of some default skins:
- Alliance: 18
- Blizzard: 14
- Tubular: 13
- Tooltip: 2
Sign in to add a comment
