All pastes #119317 Raw Edit

Untitled

public text v1 · immutable
·published 2006-08-06 19:49 UTC
rendered paste body
-------------------------------------------------
TOC Change -- Load the BartenderCustomDefauts.lua before the Core
--------------------------------------------------
[...]
Libs\AceDB-2.0\AceDB-2.0.lua
Libs\AceConsole-2.0\AceConsole-2.0.lua
Libs\Metrognome-2.0\Metrognome-2.0.lua
Libs\DewDrop-2.0\DewDrop-2.0.lua

CustomDefaults.lua
Bartender2.lua

----------------------------------------------------
BartenderCustomDefaults.lua -- Just copy and paste your scaed variables into the table
----------------------------------------------------
BartenderCustomDefaults = {
	["Bar3"] = {
		["PosY"] = 101.3801861056068,
		["PosX"] = 608.0499538545361,
		["Height"] = 44,
		["Padding"] = -1,
		["Width"] = 440,
	},
	["Bar6"] = {
		["PosY"] = 61.40006820805857,
		["PosX"] = 640.5503100450951,
		["Height"] = 38,
		["Padding"] = 0,
		["Width"] = 308,
	},
 -- etc, etc...you get the idea...
}

-------------------------------------------------------------
Bartender2.lua -- Change the registering of defaults to register the custom table if it exists.
-----------------------------------------------------------------

if BartenderCustomDefaults then
	Bartender:RegisterDefaults('profile', BartenderCustomDefaults )
else
	Bartender:RegisterDefaults('profile', {
				Extra = {},
				Bar1 = {},
				Bar2 = {},
				Bar3 = {},
				Bar4 = {},
				Bar5 = {},
				Bar6 = {},
				Bar7 = {},
				Bar8 = {},
				Bar9 = {},
				Bar10 = {},
	} )
end