KC_RadialButton help wanted
Hey guys!
I am trying to add my own mini-map buttons linked to addons (not included originally) using KC_RadialButton. I can (for the love of god) just not get them to show! Ohnestly, I have no idea what I am doing but usually I can atleast change/add/mod code to get it to work. I have read "RadialButton Walkthrough for Addon Makers.txt" over and over again but no. Nothing. :eek: If some of you superscripters have a minute extra - could you please post a supereasy guide made for retards like me, with example(s). Thanks Roger PS. A way to bind mini-map buttons to macros would be awesome too. |
hi, well I hate to say it but I changes some small things since I originally wrote that walkthrough.
the 'easy' way to get this to work is to do as follows take the following code: Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" Code:
<Button name="KC_RadialButton_BotD" parent="Minimap" toplevel="true" frameStrata="LOW"> Code:
KC_RadialButton:RegisterButton(this, "TFKillStatsFrame", 168); you can leave the 168 alone if you want - thats the default angle at which the button will show up. Code:
KC_RadialButton:ToolTipSetup(this, "~/ Book of the Dead \\~", "This addon collects and displays numeric data ", "relating to your pvp encounters."); Code:
<NormalTexture file="Interface\AddOns\KC_RadialButton\images\KC_RadialButton_BotD_Up"/> k now you'll save this in a xml file, say your where making one of these for auction it you'd save it as KC_RadialButton_AuctionIt.xml and place it inside the KC_RadialButton directory. now for the last part. you'll need to open the KC_RadialButton.toc and add the new file's name to the list there. and that should make the button show up. Now if your wanting to make a button to package with a mod for you to distribute there are other ways to do it, if you need to know let me know. In the back of my mind I've been playing with what I need to do with KCR and I have a new format thats going to come out in the .90 version thats due sometime in the next month or two. It will involve alot less scripting on the users part and people should even be able add buttons without ever writing a line of code(you'll still need to know the target frame's Name) well If you have any more questions let me know, Kaelten |
Wow! Thanks for the fast answer, I'll get on it right away :)
|
np anytime.
KC_Radialbuttons was written with the users and mind but was also meant to be extenable. when 0.90 comes out I think it'll be even more so. |
It works!
Thank you so much! :D Now I´m gonna open up The Gimp and make me some funky buttons too, you made my day :) |
Is there also a way to link "original" things like for example my Enchanting or Engineering?
|
Thanks
Thank you for helping out.
Abdo, please post or upload the buttons you make, im even more clueless in code and stuff than you are, but I love minimap buttons, it looks so neat and cool =D And they are useful of course. Like what is target frame's name? Im sooo looking forward to your 0.90 edition, I simply love the concept of this addon. |
Quote:
For example; for AutoDecline I used: Code:
KC_RadialButton:RegisterButton(this, "ADOptionsFrame", 168); It doesnt seem to work 100% though, like DefendYourself refused to work even though I tried with all the "frames" I could fine, but you cant have it all, hehe... I still dont know if one can use like /slash command, macros or "originals" and bind them to buttons on the mini-map but I dont think so. Good luck Garzu :rolleyes: EDIT: It would be so very neat if one could add /slash command to them, then it would be extreamly easy and all addons would work. |
All times are GMT -6. The time now is 08:29 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI