Hi,
I am looking for some help in creating my first addon. It is very simple (I think) yet I can't manage to work it out. I have experience in PHP programming, so I thought LUA would be 'easy' but I guess the basics elude me. Ok, enough chatter, here is my addon plans:
It is a simple addon that lets you sort trade skill recipes in your trade skill window by name (as is default) or by skill requirement. Basically, there should be two extra check boxes in the default trade skill window labeled "Sort by name" and "Sort by difficulty". "Sort by name" should be default.
Obviously it should then change the sorting of the trade skills based on what you click. Advanced Trade Skill Window (http://wowui.worldofwar.net/?p=mod&m=2092) has this feature, but also a lot of other stuff. I want to create an addon that just has the sorting options in the default trade skill window and nothing else.
I've looked at all the How'to and tutorials I could find. I've also read through other simple addons and read up on 'hooking' WoW functions, but I am at a loss.
Mainly, I can't figure out how to add two simple checkboxes to the default window. Also, I can't figure out what function to hook. Looking at http://www.wowwiki.com/World_of_Warcraft_API I think I need to alter GetTradeSkillInfo but I can't figure out how to 'loop' though them all and sort them differently. (Remember, I think PHP so looping seems natural).
I got the .toc file layed down, but other than that I am very confused to put it mildly.
Any help and nudges in the right direction will be greatly appreciated.|||Well, the toc is by far the easiest part to create. The addon you want to make is far from simple and not a good one to pick as your first addon project. As far as adding 2 edit boxes you might consider making a separate frame with the 2 edit boxes and making it so the frame is positioned relative to the Trade Skills window.|||I agree with Jumpy, this isn't an "easy" project:) If you don't care about making the addon and just want the functionality, you might try addons like Skillet (http://files.wowace.com/sw-s.html) (there are others out there as well). If you want to figure out the problem, you might start with AHSearch and AHSearchnext (both Ace files: http://files.wowace.com/cat-auction.html), which shows how to add a button frame to the Auction House window.|||Sorry for replying so late.
Thanks for your replies. I thought I had picked a simple addon to try out :(
I am mostly interested in the functionality and not so much in having made it (although it would be fun), so I'll check out the mods belloboomGD suggests and delve into LUA more when time permits :)
No comments:
Post a Comment