Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-31-21, 07:58 AM   #1
mchwxj
A Fallenroot Satyr
Join Date: Jan 2013
Posts: 20
Could anyone help with old 1.12 script? Wanna create buttons, Thanks!

Trying to create new buttons on which I can bind spells and hotkeys. Have done a lot of search, trying to find old APIs, or addons to see how that was done. But got nothing.

Then tried to edit bindings-cache.wft, and it didn't work. Guess old 1.12 wasn't available for that.

Finally I tried to script it, but the best I can do is the following code. It did create a new button, but nothing happened while clicking it.

Code:
local aaa=CreateFrame("button", "aaa", UIParent, "ActionButtonTemplate");
aaa:SetPoint("CENTER", 30, 10)
aaa:SetScript("OnClick", CastSpellByName("Immolate"))
Anyone could help make it work, or tell me where I can get help on old 1.12 coding? Really appreciate!!!
 
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Could anyone help with old 1.12 script? Wanna create buttons, Thanks!


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