WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Could anyone help with old 1.12 script? Wanna create buttons, Thanks! (https://www.wowinterface.com/forums/showthread.php?t=58573)

mchwxj 01-31-21 07:58 AM

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!!!

Tim 01-31-21 09:50 AM

That old coding has to deal with private servers and this site doesn't support them.
Look through other addons that add buttons and see how it's done..

Seerah 01-31-21 01:45 PM

We are an official Blizzard Fan Site. Posts about private servers, beyond anything that is theoretical, are against Blizzard's rules as well as our own rules. Threads requesting assistance with private servers will be locked. Repeated requests will result in bans.


All times are GMT -6. The time now is 03:50 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI