Any Resources for the Addon Settings Panels?
My less-than-exhaustive search hasn't lead me to any mention of this new 2.4 feature.
Anyone have a good link to a forum post or some sample code? |
I think Omen2 and the new SCT are already hooking into the addons tab of the preferences, you might want to dig into their code.
As far as modifying the other game options tabs I haven't really seen anything yet. I guess if you run the official Blizz AddOnKit against the current client you should be able to browse the current code, maybe somewhere into OptionsFrame.xml/lua. Just some ideas... |
Ace addons (Omen) use a library to make their config panels... so ripping apart their code might not help much. I suggest you look at addons making basic frames first, learn that, then consider using libraries to make you job easier (I.E. understand HOW it's done before you use the lib).
Most of my addons that have been updated this weekend have hand-made panels. Go rip apart TourGuide or Squeenix or such. |
Quote:
|
Well I meant that libs can be less than friendly to read sometimes... but then I'm thinking of Ace2 there.
Anywho, the thing of it all, really, is that there is nothing fancy about this new system. All you do is make a frame, attach a "name" to it, and call one function to register it. That's all detailed in the thread linked from the 2.4 changes thread. The hard part is creating all the frames you want, and there's nothing new with regards to that in the patch. |
Other addons that make use of the new options system are OmniCC and Bongos3.
|
All good suggestions. I'll take a peek at what Bongos is doing while I unpack the client :)
|
I highly recommend that you create your frames via lua in the base frame's OnShow instead of via XML. That will delay the cost until the frame is actually shown instead of on login... since config frames are something that are not usually used every session.
That looks something like: Code:
local f = CreateFrame("Frame", nil, UIParent) |
All times are GMT -6. The time now is 11:58 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI