Thread Tools Display Modes
03-30-08, 11:07 AM   #1
schnoggo
A Fallenroot Satyr
 
schnoggo's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 20
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?
  Reply With Quote
03-30-08, 02:30 PM   #2
Kaomie
A Scalebane Royal Guard
 
Kaomie's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 438
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...
__________________
Kaomie
"WE LOTS OF PEOPLE FROM STRONG SERVER GUILDS" - Trade Channel

Last edited by Kaomie : 03-30-08 at 02:46 PM.
  Reply With Quote
03-30-08, 03:30 PM   #3
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
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.
  Reply With Quote
03-30-08, 03:36 PM   #4
Kaomie
A Scalebane Royal Guard
 
Kaomie's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 438
Originally Posted by Tekkub View Post
Ace addons (Omen) use a library to make their config panels... so ripping apart their code might not help much.
I never said to stop at the addons themselves, just mentioning somewhere to start as it is being done Those are the only two that I use so far that popped-up in my addons configuration tab, but I am sure there are more and will be a lot more soon. I guess you do need to go and look into the libraries to see how it is actually done, I have not checked inside at all.
__________________
Kaomie
"WE LOTS OF PEOPLE FROM STRONG SERVER GUILDS" - Trade Channel

Last edited by Kaomie : 03-30-08 at 03:42 PM.
  Reply With Quote
03-30-08, 03:44 PM   #5
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
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.
  Reply With Quote
03-30-08, 04:13 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Other addons that make use of the new options system are OmniCC and Bongos3.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-31-08, 01:44 PM   #7
schnoggo
A Fallenroot Satyr
 
schnoggo's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 20
All good suggestions. I'll take a peek at what Bongos is doing while I unpack the client
  Reply With Quote
03-31-08, 01:50 PM   #8
Tekkub
A Molten Giant
 
Tekkub's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 960
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)
f.name = "My addon"
f:Hide()
f:SetScript("OnShow", function(self)
  -- Make your frames
  self:SetScript("OnShow", nil)
end
InterfaceOptions_AddCategory(f)
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Any Resources for the Addon Settings Panels?


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