KC Radial Buttons

KC Radial Buttons

Created by kaelten - Last updated on July 16 2005
Download
Version Compatible Translations Patch Release Date
KC Radial Buttons 0.75a (Beta) (Current) English English 0 July 16 2005
KC Radial Buttons .75 English English 0 June 25 2005 N/A
  • Description
  • Change Log
This is in some ways a hackpack for Insomniax's collection.

In his addons he included quite a few seperate addons that provided radial buttons around the minimap.

This addon replaces all of those plus adds support for other mods and makes it easy to add more.

Currently Supported addons-
Atlas
BankItems
Book of the Dead
Insomniax's CustomTooltip
ItemsMatrix
KillLog
LootLink
MonkeyBuddy
SCT

These buttons will NOT show up if you do not have the corresponding mod.

They are also moveable and the settings are saved per character.

This does rest ontop of the Ace arcitecture being developed by Turan, and if he wishes I'll pull this down until a futher date.

To install:

1) unzip both the KC_RadialButton and the Ace directories into your addon folders.

2) if you are currently using Insomniax's comp. Please delete the following folders in your addon dir or disable them in your addon menu.

Insomniax_Atlas_Shell
Insomniax_BankItems_Shell
Insomniax_CustomTooltip_Shell
Insomniax_IconMover
Insomniax_LootLink_Shell
Insomniax_KillLog_Shell
Insomniax_MonkeyBuddy_Shell
Insomniax_SCT_Shell

Note: it won't cause any conflicts if you fail to do this, but you will be having to copies of the buttons and most of the time they will be in the same place.

NEW FOR ADDON DEVELOPERS!
Now included is a easy to use API to create minmap icons.



Please leave me some feedback guys!

Thanks.

Kael
There is no dependency information for this file.
Updated to work with Ace RC4
XML Syndication
Current: 0.75a (Beta)

8290 downloads
(4 today)
Author's Website

Rate File

Comments

kaelten

May 21, 2005 - 12:03 am [ Reply ]

err was ment for zeeg rather.

Carados

May 20, 2005 - 9:34 pm [ Reply ]

Quote:
Originally Posted by kaelten
Hey Zeed I can't post in the forums.

Sorry, but I can't help it.

Obviously.

kaelten

May 20, 2005 - 12:05 pm [ Reply ]

Code:
Well guys got some news for you guys, this info can also be found in the txt file located in the directory. This is the standard setup of a button xml file. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML/UI.xsd"> <!-- Radial Buttons --> <Button name="KC_RadialButton_AuctionIt" parent="Minimap" toplevel="true" frameStrata="LOW"> <Size> <AbsDimension x="24" y="24"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> this:Hide(); </OnLoad> <OnShow> KC_RadialButton:InitialzeIcon(this, false, 0); this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); </OnShow> <OnClick> KC_RadialButton:Toggle(arg1, this, 0, AuctionItCfgFrame); </OnClick> <OnEnter> KC_RadialButton:ToolTipSetup(this, "~/ AuctionIt ~", "DESC1", "DESC2"); </OnEnter> <OnLeave> GameTooltip:Hide(); </OnLeave> </Scripts> <NormalTexture file="InterfaceAddOnsKC_RadialButtonimagesKC_RadialButto n_LootLink_Up"/> <PushedTexture file="InterfaceAddOnsKC_RadialButtonimagesKC_RadialButto n_LootLink_Down"/> <HighlightTexture file="InterfaceAddOnsKC_RadialButtonimagesKC_RadialButto n_Glow" alphaMode="ADD"/> </Button> </Ui> To make this work for your add on you need to do the following things: 1) Change the buttons name. Standard form for this is KC_RadialButton_YourAddon where YourAddon is the name of the addon. 2) On the first line in the Show block, the 0 I have there is the default angle that the button will appear at the first time its loaded. 3) In the OnClickBlock you need to change the 0 to match whatever number you have the 0 in step 2 changed to. Also ther eyou need to change AucitonItCfgFrame to whatever the frame name that you want this to show. NO QUOTES. One last thing to note is that there is an optional 5th argument that will take a subpanel for addons like KillLog. 4)In the OnEnter Block You should change AuctionIT to your addon's name and then you can enter as many strings as you want afterwords setup like DESC1 and DESC2. I prefer to keep them short so that they don't take up too much room. But what ever you put there will show up in the ToolTip. 5)The NormalTexture and PushedTextures need to be pointing to some tga files that contain the graphics for the button. There are several differnt ones in the KC_RadialButtonimages directory. Feel free to use them, but it would be pretty cool if people made there own, and even shared them with me so I can include them in the standard package. 6)Last but not least! I'm sure you've noticed that when this loads it hides itself. There are two funciton calls to KC_RadilButton that makes this thing go persay. In your block of code that runs AFTER everything has been loaded, which would be the Enable block for ace(d) addons or probably on a Variables_Loaded event for many others, you can place the register call. In the example shown above it would be: KC_RadialButton:RegisterIcon(KC_RadialButton_Aucti onIT, AuctionItCfgFrame); Your button would then show up within 1 second after this call goes through. Now to make your button go away, if you want, you can call KC_RadialButton:UnRegisterIcon(KC_RadialButton_Auc tionIT); And your button would vanish within a second. Q: What if I don't want to make KC_RadialButtons required for my addons. A: SIMPLE! just include this if clause around each call to either the Register or UnRegister functions. if (KC_RadialButton) then KC_RadialButton:RegisterIcon(KC_RadialButton_Aucti onIt, "AuctionItCfgFrame"); end if RadialButtons isn't installed then nothign happens. Q: Whats KC_ScheduleKeep and why should I bother with you or it. A: KC_ScheduleKeep is a lightweight schedular library that functions similar to Chronos in some ways. Its less code and runs through the ace architecture so its not nearly bulky as some other options. All it does is check on update if there are any scheduled events and if so will run any that are do to be ran. I plan on writing a help file on how to use KC_ScheduleKeep in the future. Right now its still slightly buggy and I'm looking for help testing it, but I think i've gotten out most of the bad bugs. ScheduleKeep is used to provide regular updating of buttons in Radialbuttons, its my hope that the schedular could actually be used to replace most peoples OnUpdate Blocks. Q: Ok what the *@#%$@# is Ace? A: Ace is a new type of architecture that offers several advantages over the standard coding practices for addons. Addons share resources, and don't have to include alot of code that would otherwise been copied in nearly EVERY addon. It will automatically tell you when things are loaded in completion and will make that data easily available. Also provided are several handy funcitons. There is more forthcoming about it soon as well.

kaelten

May 20, 2005 - 12:03 pm [ Reply ]

Hey Zeed I can't post in the forums.

kaelten

May 20, 2005 - 11:00 am [ Reply ]

I've got a new version coming out soon that will allow mod authors to setup show/hide buttons

to create on its only like 3 lines of code and a standard xml file.

zeeg

May 20, 2005 - 1:22 am [ Reply ]

Either Misc or Maps is all I can really come up with.. Maybe Libraries depending on how it functions

kaelten

May 19, 2005 - 11:33 pm [ Reply ]

Anyone give me a good suggestion on which section to put this in?

Post a comment

You must be registered and logged in to post a comment.

Username: Password:

Register

WoW Guru
Advertise on the MMO Guru Network!

Language
MMO Guru Network