View Single Post
08-03-10, 07:29 PM   #8
Ricowan
A Deviate Faerie Dragon
 
Ricowan's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 19
Take a look at the source for my minimap addon, I do what you're wanting to do. Feel free to use any of my code you'd like, I don't mind.

GetMinimapShape() is a global function that other addons can call so they can make sure their minimap icons conform to the shape of your minimap. This was initiated by developers using the ACE libraries, but it isn't limited to that group at all. The function should return a string containing one of the pre-defined shapes; mine returns "CORNER-BOTTOMLEFT", "SQUARE", or "ROUND" depending on the shape that's currently being used. I would suggest that all minimap addons that change the shape of the map should use this function, if it applies to your shapes.
  Reply With Quote