Thread Tools Display Modes
01-16-11, 10:55 PM   #1
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
addon profile loading??

hey guys.. got a quick question...

i want to set a coding/function to do the following

set a particular profile for an addon...upon load.

i know i need to do.....

if isIsAddOnLoaded("Addon") then


but i have no clue how to set a particular profile for the addon...
  Reply With Quote
01-17-11, 12:47 AM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
It totally depends on how the addon itself sets the profile and whether or not that section of the code is global or local.
__________________
"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
01-17-11, 03:38 AM   #3
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
yes... that much i know.

i guess i worded that wrong uptop..

i want to know the coding to load a specific profile, of an addon.

thats what i am getting at, to try to figure out...
  Reply With Quote
01-17-11, 03:58 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
There is no buildin-profile handling.
If you want to support profiles you have to create such handling.
There is an ace3 library available if you want a quick way.

Edit:
http://www.wowace.com/addons/ace3/pages/api/ace-db-3-0/
__________________
The cataclysm broke the world ... and the pandas could not fix it!

Last edited by Rilgamon : 01-17-11 at 04:01 AM.
  Reply With Quote
01-17-11, 10:22 AM   #5
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
more specifically:
  Reply With Quote
01-17-11, 01:17 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I assume he means the profiles of different addons due to the IsAddOnLoaded() bit. It still depends on how that addon creates and sets profiles. There's no real way to help you unless you wish to tell us which addons you're wishing to alter.
__________________
"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
01-17-11, 02:07 PM   #7
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
SLDataText... and DXE
  Reply With Quote
01-18-11, 12:08 PM   #8
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by barbol12 View Post
SLDataText... and DXE
SLDataText uses AceDBOptions-3.0 for the profiles, don't know about Deus Vox Encounters though ..
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » addon profile loading??


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