Thread Tools Display Modes
09-19-05, 03:01 PM   #1
Jethal
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 4
Exclamation Sharing Layouts and Settings? - the return of the NightElf w3 UI

OK.. thanks to Discord Unitframes and Discord Art (YAY, WOO!!)
I was able to re-create my EverQuest W3 NightElf UI
now, my question is.. how can I sucessfully share my layout and settings in WOW for these addons?

Addons shown include...

BIBMod (Core, Windowmods, Toolbars - not bags)
CT (QuestLevels, UnitFrames, BuffMod, MasterMod, MailMod)
Discord Unit Frames
Discard Art, with myown w3 custom graphics
... and a hell of a list of other great mods that dont enter into the layout issue.
Attached Thumbnails
Click image for larger version

Name:	jethal_ui_new.jpg
Views:	316
Size:	278.9 KB
ID:	179  
 
09-19-05, 03:05 PM   #2
guice
A Cobalt Mageweaver
Join Date: Jan 2005
Posts: 236
Wow, very nicely done.
 
09-22-05, 12:51 AM   #3
farang
A Deviate Faerie Dragon
 
farang's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2005
Posts: 19
the only way the settings are stored are in the SavedVariables folder below your WTF/<Account> directory.

so by checking the corresponding lua files there, you should be able to find out what you need to copy to have the same effect.
 
09-22-05, 06:00 AM   #4
Beladona
A Molten Giant
 
Beladona's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 539
You could check a single common variable in the settings (maybe one for each separate addon) to see if they are different than the default, and the popup a small warning message stating that the user should accept your modification to the settings.

Once they his ok, it executes a script that resyncs all of the settings to what you need them to be to match your UI, and then executes a ReloadUI to make the changes show up.

That is how I would do it anyway. Here is an example:
Code:
function NEUI_Startup()
	if (DiscordSettings != "your settings") then 
		NEUI_WarningWindow:Show();
	end
end

function NEUI_WarningWindow_Execute()
	DiscordSettings = "whatever";
	MoreSettings = "whatever";
	ReloadUI();
end
When the mod start up, it checks to see if the settings it needs are present. If they are present but not set the way you need them, you can popup the warning window. When the user clicks the OK button on the warning window, it executes the next function which sets all of the settings the way they need to be, and then reloads the UI

I hope that explained it well enough. Best I could do in 5 minutes =P
 
09-22-05, 09:38 AM   #5
Genghiz Cohen
An Aku'mai Servant
 
Genghiz Cohen's Avatar
Premium Member
Join Date: Aug 2005
Posts: 34
That is seriously great work. I've fiddled with DiscordUnitframes/art and haven't managed to produce squat hehe. I just can't figure it out. But then, I'm a dork.

/applaud
 
 

WoWInterface » Developer Discussions » Mod Beta Testing » Sharing Layouts and Settings? - the return of the NightElf w3 UI

Thread Tools
Display Modes

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