What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Jun 28, 2008 by jaliborc
Labels: Featured
BongosMinimap_Advanced  
Advanced features for addons developers and art creators

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:

  1. 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:
  2. ## OptionalDeps: Bongos_Minimap
  3. Now, call the following code after the Saved Variables have been loaded:
  4. if BongosMinimap then
        BongosMinimap:RegisterButtons(frame1, frame2,...)
    end

Notes

.

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.

  1. First of all, create your addon directory and TOC file. If you don't know how to do this, then read this page.
  1. Now, you must create your LUA file. This is the most important part of your addon:
  2. 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:


Sign in to add a comment