Thread Tools Display Modes
07-27-08, 02:53 PM   #1
LBXZero
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 61
Replacing an existing button

I currently have a spellbook mod that fully replaces the spell book. Unfortunately by doing so, it is incompatible with mods that directly add or change a part of the existing spell book.

So far, I got it to use the original spell book to help one part of the situation, but the other part is some of these mods also affect the original spell buttons. My modification to the spell book makes it so that each unique spell is listed only once, showing only the highest rank in the spell book. I could do this without replacing the spell button, but it will cause taint regardless what I do.

On the spell buttons, the only option I know is to fully replace the existing spell buttons. Is it possible to destroy the existing Blizzard button named SpellButton1 and create a new one with the same name?

After figuring out timing of loading the xml frames, setglobal is doing the job nicely.

Last edited by LBXZero : 07-27-08 at 05:58 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Replacing an existing 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