View Single Post
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!!!