Thread Tools Display Modes
01-29-09, 10:08 PM   #1
BokTheGolem
A Defias Bandit
 
BokTheGolem's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 2
How do i make a minimap button

So i looked around, and im a fairly new addon writer, but i was wondering exactly how to make a minimap button. Now i read up but almost everything was written a while ago and is incomplete.
I know the basics but was wondering if anyone knew a could tutorial, or would take the time to post a short one on how to make the button.
Now im not a complete noob, im fairly sure i can make the button my self, my main problems would be getting it to stick to the minimap, but making it call a function and designing it seems easy enough ( although some specifics on the dimensions for the button and whatnot would be nice)

Also on a side note im trying to get one of my secure buttons hide another secure button when out of combat. Its set up now where i have one main button that never disappears, and has one child secure button anchored to it, along with a separate secure button anchored to it. I tried hooking the onclick function but this broke it. I know their are restrictions but all i want it to do is hide the two buttons out of combat. What would i need to do so when i click it out of combat it hides the other secure frames.

I have a good general idea on both these subjects, but i cannot pull it together and make it work.
  Reply With Quote
01-30-09, 03:50 AM   #2
Ravendwyr
A Flamescale Wyrmkin
 
Ravendwyr's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 139
The easiest way I feel is to use LibDataBroker-1.1 in conjunction with LibDBIcon-1.0 in your addon.

There is also a now outdated library called MyMinimapButton which you could look through (or use) for ideas.

Hope this helps.
__________________
Twitter | GitHub
  Reply With Quote
01-30-09, 04:14 AM   #3
twobits
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 38
You can only use LibDBIcon if you will GPL your code though since it is under the GPL.
  Reply With Quote
01-30-09, 04:40 AM   #4
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Have a look at this http://www.wowinterface.com/forums/s...hlight=minimap
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How do i make a minimap button


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off