Install.lua 106 KB
Newer Older
fgprodigal's avatar
fgprodigal committed
1 2 3 4 5
local RayUI, E, L, V, P, G = unpack(select(2, ...))

-- Cache global variables
-- Lua functions
local _G = _G
fgprodigal's avatar
fgprodigal committed
6
local ceil, format, ipairs, checkTable = ceil, string.format, ipairs, next
fgprodigal's avatar
fgprodigal committed
7 8 9
local tinsert, twipe, tsort, tconcat = table.insert, table.wipe, table.sort, table.concat
-- WoW API / Variables
local ADDONS = ADDONS
fgprodigal's avatar
fgprodigal committed
10
local ChatFrame_RemoveAllMessageGroups = ChatFrame_RemoveAllMessageGroups
fgprodigal's avatar
fgprodigal committed
11 12 13 14 15 16 17 18
local FCF_DockFrame = FCF_DockFrame
local FCF_GetChatWindowInfo = FCF_GetChatWindowInfo
local FCF_SavePositionAndDimensions = FCF_SavePositionAndDimensions
local FCF_SetChatWindowFontSize = FCF_SetChatWindowFontSize
local FCF_SetLocked = FCF_SetLocked
local FCF_SetWindowName = FCF_SetWindowName
local FCF_StopDragging = FCF_StopDragging
local FCF_UnDockFrame = FCF_UnDockFrame
fgprodigal's avatar
fgprodigal committed
19 20 21
local FCF_ResetChatWindows = FCF_ResetChatWindows
local FCF_OpenNewWindow = FCF_OpenNewWindow
local GetLocale = GetLocale
fgprodigal's avatar
fgprodigal committed
22 23 24
local GetAddOnMetadata = GetAddOnMetadata
local IsAddOnLoaded = IsAddOnLoaded
local LOOT = LOOT
fgprodigal's avatar
fgprodigal committed
25
local WHISPER = WHISPER
fgprodigal's avatar
fgprodigal committed
26 27 28
local ReloadUI = ReloadUI
local SetCVar = SetCVar
local TRADE = TRADE
fgprodigal's avatar
fgprodigal committed
29 30
local GUILD_EVENT_LOG = GUILD_EVENT_LOG
local GENERAL = GENERAL
fgprodigal's avatar
fgprodigal committed
31 32 33 34

-- Global variables that we don"t cache, list them here for the mikk"s Find Globals script
-- GLOBALS: PluginInstallFrame, InstallStepComplete, PluginInstallStepComplete, NUM_CHAT_WINDOWS, LeftChatToggleButton
-- GLOBALS: ChatFrame1, ChatFrame3, ChatFrame_RemoveChannel, ChatFrame_AddChannel, ChatFrame_AddMessageGroup
fgprodigal's avatar
fgprodigal committed
35
-- GLOBALS: ToggleChatColorNamesByClassGroup, Skada, SkadaDB, BigWigs3DB, RayUIDataPerChar
fgprodigal's avatar
fgprodigal committed
36

fgprodigal's avatar
fgprodigal committed
37
function RayUI:SetupCVars()
fgprodigal's avatar
fgprodigal committed
38 39 40
	-- Setup CVar
	SetCVar("profanityFilter", 0)
	SetCVar("overrideArchive", 0)
fgprodigal's avatar
fgprodigal committed
41
	SetCVar("rawMouseEnable", 1)
fgprodigal's avatar
fgprodigal committed
42 43
	SetCVar("nameplateSelectedScale", 1)
	SetCVar("nameplateLargerScale", 1)
fgprodigal's avatar
fgprodigal committed
44
	SetCVar("nameplateOccludedAlphaMult", 0.2)
fgprodigal's avatar
fgprodigal committed
45
	SetCVar("countdownForCooldowns", 1)
fgprodigal's avatar
fgprodigal committed
46 47 48 49 50 51 52
	SetCVar("alwaysCompareItems", 1)
	SetCVar("floatingCombatTextCombatDamage", 1)
	SetCVar("floatingCombatTextCombatLogPeriodicSpells", 1)
	SetCVar("floatingCombatTextCombatHealing", 1)
	SetCVar("floatingCombatTextCombatHealingAbsorbTarget", 1)
	SetCVar("floatingCombatTextSpellMechanics", 1)
	SetCVar("floatingCombatTextSpellMechanicsOther", 1)
fgprodigal's avatar
fgprodigal committed
53 54 55 56 57 58 59 60 61

	-- if RayUI:IsDeveloper() and RayUI:IsDeveloperRealm() then
		-- SetCVar("scriptErrors", 1)
		-- SetCVar("taintLog", 1)
	-- else
		-- SetCVar("scriptErrors", 0)
		-- SetCVar("taintLog", 0)
	-- end

fgprodigal's avatar
fgprodigal committed
62
	PluginInstallStepComplete.message = self.Title..L["CVars Set"]
fgprodigal's avatar
fgprodigal committed
63 64 65
	PluginInstallStepComplete:Show()
end

fgprodigal's avatar
fgprodigal committed
66
function RayUI:SetupChat()
fgprodigal's avatar
fgprodigal committed
67 68 69 70 71
	FCF_ResetChatWindows() -- Monitor this
	FCF_SetLocked(_G.ChatFrame1, 1)
	FCF_DockFrame(_G.ChatFrame2)
	FCF_SetLocked(_G.ChatFrame2, 1)

fgprodigal's avatar
fgprodigal committed
72 73
	FCF_OpenNewWindow(WHISPER)
	FCF_DockFrame(_G.ChatFrame3)
fgprodigal's avatar
fgprodigal committed
74 75 76
	FCF_SetLocked(_G.ChatFrame3, 1)
	_G.ChatFrame3:Show()

fgprodigal's avatar
fgprodigal committed
77 78 79 80 81
	FCF_OpenNewWindow(LOOT)
	FCF_UnDockFrame(_G.ChatFrame4)
	FCF_SetLocked(_G.ChatFrame4, 1)
	_G.ChatFrame4:Show()

fgprodigal's avatar
fgprodigal committed
82 83 84 85 86 87 88
	for i = 1, NUM_CHAT_WINDOWS do
		local frame = _G[format('ChatFrame%s', i)]

		-- move general bottom left
		if i == 1 then
			frame:ClearAllPoints()
			frame:Point('BOTTOMLEFT', _G.LeftChatToggleButton, 'TOPLEFT', 1, 3)
fgprodigal's avatar
fgprodigal committed
89
		elseif i == 4 then
fgprodigal's avatar
fgprodigal committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
			frame:ClearAllPoints()
			frame:Point('BOTTOMLEFT', _G.RightChatDataPanel, 'TOPLEFT', 1, 3)
		end

		FCF_SavePositionAndDimensions(frame)
		FCF_StopDragging(frame)

		-- set default Elvui font size
		FCF_SetChatWindowFontSize(nil, frame, 13)

		-- rename windows general because moved to chat #3
		if i == 1 then
			FCF_SetWindowName(frame, GENERAL)
		elseif i == 2 then
			FCF_SetWindowName(frame, GUILD_EVENT_LOG)
		elseif i == 3 then
fgprodigal's avatar
fgprodigal committed
106 107
			FCF_SetWindowName(frame, WHISPER)
		elseif i == 4 then
fgprodigal's avatar
fgprodigal committed
108 109 110 111 112 113 114 115 116 117 118
			FCF_SetWindowName(frame, LOOT..' / '..TRADE)
		end
	end

	-- keys taken from `ChatTypeGroup` but doesnt add: 'OPENING', 'TRADESKILLS', 'PET_INFO', 'COMBAT_MISC_INFO', 'COMMUNITIES_CHANNEL', 'PET_BATTLE_COMBAT_LOG', 'PET_BATTLE_INFO', 'TARGETICONS'
	local chatGroup = { 'SYSTEM', 'CHANNEL', 'SAY', 'EMOTE', 'YELL', 'WHISPER', 'PARTY', 'PARTY_LEADER', 'RAID', 'RAID_LEADER', 'RAID_WARNING', 'INSTANCE_CHAT', 'INSTANCE_CHAT_LEADER', 'GUILD', 'OFFICER', 'MONSTER_SAY', 'MONSTER_YELL', 'MONSTER_EMOTE', 'MONSTER_WHISPER', 'MONSTER_BOSS_EMOTE', 'MONSTER_BOSS_WHISPER', 'ERRORS', 'AFK', 'DND', 'IGNORED', 'BG_HORDE', 'BG_ALLIANCE', 'BG_NEUTRAL', 'ACHIEVEMENT', 'GUILD_ACHIEVEMENT', 'BN_WHISPER', 'BN_INLINE_TOAST_ALERT' }
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame1)
	for _, v in ipairs(chatGroup) do
		ChatFrame_AddMessageGroup(_G.ChatFrame1, v)
	end

fgprodigal's avatar
fgprodigal committed
119 120 121 122
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame3)
	ChatFrame_AddMessageGroup(_G.ChatFrame3, 'WHISPER')
	ChatFrame_AddMessageGroup(_G.ChatFrame3, 'BN_WHISPER')

fgprodigal's avatar
fgprodigal committed
123 124
	-- keys taken from `ChatTypeGroup` which weren't added above to ChatFrame1
	chatGroup = { 'COMBAT_XP_GAIN', 'COMBAT_HONOR_GAIN', 'COMBAT_FACTION_CHANGE', 'SKILL', 'LOOT', 'CURRENCY', 'MONEY' }
fgprodigal's avatar
fgprodigal committed
125
	ChatFrame_RemoveAllMessageGroups(_G.ChatFrame4)
fgprodigal's avatar
fgprodigal committed
126
	for _, v in ipairs(chatGroup) do
fgprodigal's avatar
fgprodigal committed
127
		ChatFrame_AddMessageGroup(_G.ChatFrame4, v)
fgprodigal's avatar
fgprodigal committed
128 129 130 131
	end

	ChatFrame_AddChannel(_G.ChatFrame1, GENERAL)
	ChatFrame_RemoveChannel(_G.ChatFrame1, TRADE)
fgprodigal's avatar
fgprodigal committed
132
	ChatFrame_AddChannel(_G.ChatFrame4, TRADE)
fgprodigal's avatar
fgprodigal committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156

	-- set the chat groups names in class color to enabled for all chat groups which players names appear
	chatGroup = { 'SAY', 'EMOTE', 'YELL', 'WHISPER', 'PARTY', 'PARTY_LEADER', 'RAID', 'RAID_LEADER', 'RAID_WARNING', 'INSTANCE_CHAT', 'INSTANCE_CHAT_LEADER', 'GUILD', 'OFFICER', 'ACHIEVEMENT', 'GUILD_ACHIEVEMENT', 'COMMUNITIES_CHANNEL' }
	for i = 1, _G.MAX_WOW_CHAT_CHANNELS do
		tinsert(chatGroup, 'CHANNEL'..i)
	end
	for _, v in ipairs(chatGroup) do
		ToggleChatColorNamesByClassGroup(true, v)
	end

	if E.Chat then
		E.Chat:PositionChat(true)
		if E.db.RightChatPanelFaded then
			_G.RightChatToggleButton:Click()
		end

		if E.db.LeftChatPanelFaded then
			_G.LeftChatToggleButton:Click()
		end
	end

	--[[----------------------------------
	--	ProfileDB - Chat
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
157
	E.db["chat"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
158 159
	E.db["chat"]["tabFontOutline"] = "OUTLINE"
	E.db["chat"]["keywordSound"] = "Whisper Alert"
fgprodigal's avatar
fgprodigal committed
160
	E.db["chat"]["tabFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
161 162 163
	E.db["chat"]["editBoxPosition"] = "ABOVE_CHAT"
	E.db["chat"]["panelTabTransparency"] = true
	E.db["chat"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
164
	E.db["chat"]["panelWidthRight"] = 400
fgprodigal's avatar
fgprodigal committed
165 166 167 168 169
	E.db["chat"]["socialQueueMessages"] = true
	E.db["chat"]["customTimeColor"]["r"] = 0
	E.db["chat"]["customTimeColor"]["g"] = 0.75
	E.db["chat"]["customTimeColor"]["b"] = 0.98
	E.db["chat"]["keywords"] = "%MYNAME%, ElvUI, MerathilisUI, RayUI"
fgprodigal's avatar
fgprodigal committed
170 171
	E.db["chat"]["panelHeightRight"] = 174
	E.db["chat"]["panelHeight"] = 174
fgprodigal's avatar
fgprodigal committed
172
	E.db["chat"]["timeStampFormat"] = "%H:%M "
fgprodigal's avatar
fgprodigal committed
173
	E.db["chat"]["tapFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
174
	E.db["chat"]["panelWidth"] = 400
fgprodigal's avatar
fgprodigal committed
175
	E.db["mui"]["chat"]["panelHeight"] = 174
fgprodigal's avatar
fgprodigal committed
176 177 178
	E.db["mui"]["chat"]["hidePlayerBrackets"] = false
	E.db["mui"]["chat"]["chatButton"] = false
	E.db["mui"]["chat"]["isExpanded"] = false
fgprodigal's avatar
fgprodigal committed
179 180
	E.db["chat"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["chat"]["tabFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
181

fgprodigal's avatar
fgprodigal committed
182 183
	self:SetMoverPosition("LeftChatMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 50)
	self:SetMoverPosition("RightChatMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 50)
fgprodigal's avatar
fgprodigal committed
184 185 186

	E:StaggeredUpdateAll(nil, true)

fgprodigal's avatar
fgprodigal committed
187
	PluginInstallStepComplete.message = self.Title..L["Chat Set"]
fgprodigal's avatar
fgprodigal committed
188 189 190
	PluginInstallStepComplete:Show()
end

fgprodigal's avatar
fgprodigal committed
191 192 193 194
function RayUI:SetupLayout(layout)
	if layout == "dps" then		
		E.db["actionbar"]["bar1"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar2"]["inheritGlobalFade"] = true
fgprodigal's avatar
fgprodigal committed
195
		E.db["actionbar"]["bar3"]["backdrop"] = true
fgprodigal's avatar
fgprodigal committed
196
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
fgprodigal's avatar
fgprodigal committed
197 198 199
		E.db["actionbar"]["bar3"]["buttons"] = 10
		E.db["actionbar"]["bar3"]["buttonspacing"] = 3
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 12
fgprodigal's avatar
fgprodigal committed
200 201
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
fgprodigal's avatar
fgprodigal committed
202
		E.db["actionbar"]["bar4"]["widthMult"] = 1
fgprodigal's avatar
fgprodigal committed
203 204
		E.db["unitframe"]["smartRaidFilter"] = true
		E.db["unitframe"]["units"]["party"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
205
		E.db["unitframe"]["units"]["raid"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
206
		E.db["unitframe"]["units"]["raid"]["orientation"] = "LEFT"
fgprodigal's avatar
fgprodigal committed
207
		E.db["unitframe"]["units"]["raid"]["width"] = 79
fgprodigal's avatar
fgprodigal committed
208
		E.db["unitframe"]["units"]["raid40"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
209
		E.db["unitframe"]["units"]["raid40"]["orientation"] = "LEFT"
fgprodigal's avatar
fgprodigal committed
210
		E.db["unitframe"]["units"]["raid40"]["width"] = 79
fgprodigal's avatar
fgprodigal committed
211
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "TIME_REMAINING"
fgprodigal's avatar
fgprodigal committed
212 213 214
		
		E:StaggeredUpdateAll(nil, true)
		
fgprodigal's avatar
fgprodigal committed
215
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
fgprodigal's avatar
fgprodigal committed
216 217 218
		self:SetMoverPosition("ElvAB_1", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
		self:SetMoverPosition("ElvAB_2", "BOTTOM", E.UIParent, "BOTTOM", 0, 184)
		self:SetMoverPosition("ElvAB_3", "BOTTOM", E.UIParent, "BOTTOM", 0, 40)
fgprodigal's avatar
fgprodigal committed
219
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
220
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
221
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
fgprodigal's avatar
fgprodigal committed
222
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 257, 307)
fgprodigal's avatar
fgprodigal committed
223
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
224
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
fgprodigal's avatar
fgprodigal committed
225
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 122)
fgprodigal's avatar
fgprodigal committed
226
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -244, 340)
fgprodigal's avatar
fgprodigal committed
227
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 307)
fgprodigal's avatar
fgprodigal committed
228
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 307)
fgprodigal's avatar
fgprodigal committed
229
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
fgprodigal's avatar
fgprodigal committed
230 231 232 233 234
		self:SetMoverPosition("ElvUF_TargetCastbarMover", "TOP", _G.ElvUF_Target, "BOTTOM", 0, -17)
		self:SetMoverPosition("ElvUF_TargetMover", "BOTTOM", E.UIParent, "BOTTOM", 244, 340)
		self:SetMoverPosition("ElvUF_TargetTargetMover", "LEFT", _G.ElvUF_Target, "RIGHT", 2, 0)
		self:SetMoverPosition("PetAB", "BOTTOM", E.UIParent, "BOTTOM", 0, 81)
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 273)
fgprodigal's avatar
fgprodigal committed
235 236 237
	elseif layout == "healer" then
		E.db["actionbar"]["bar1"]["inheritGlobalFade"] = false
		E.db["actionbar"]["bar2"]["inheritGlobalFade"] = false
fgprodigal's avatar
fgprodigal committed
238
		E.db["actionbar"]["bar3"]["backdrop"] = false
fgprodigal's avatar
fgprodigal committed
239
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
fgprodigal's avatar
fgprodigal committed
240
		E.db["actionbar"]["bar3"]["buttons"] = 12
fgprodigal's avatar
fgprodigal committed
241
		E.db["actionbar"]["bar3"]["buttonsize"] = 29
fgprodigal's avatar
fgprodigal committed
242 243
		E.db["actionbar"]["bar3"]["buttonspacing"] = 4
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 1
fgprodigal's avatar
fgprodigal committed
244 245
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
fgprodigal's avatar
fgprodigal committed
246
		E.db["actionbar"]["bar4"]["widthMult"] = 2
fgprodigal's avatar
fgprodigal committed
247 248
		E.db["unitframe"]["smartRaidFilter"] = false
		E.db["unitframe"]["units"]["party"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
249
		E.db["unitframe"]["units"]["raid"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
250
		E.db["unitframe"]["units"]["raid"]["orientation"] = "MIDDLE"
fgprodigal's avatar
fgprodigal committed
251
		E.db["unitframe"]["units"]["raid"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
252
		E.db["unitframe"]["units"]["raid40"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
253
		E.db["unitframe"]["units"]["raid40"]["orientation"] = "MIDDLE"
fgprodigal's avatar
fgprodigal committed
254
		E.db["unitframe"]["units"]["raid40"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
255
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "PLAYER"
fgprodigal's avatar
fgprodigal committed
256 257 258
		
		E:StaggeredUpdateAll(nil, true)
		
fgprodigal's avatar
fgprodigal committed
259
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
fgprodigal's avatar
fgprodigal committed
260 261
		self:SetMoverPosition("ElvAB_1", "BOTTOM", E.UIParent, "BOTTOM", 0, 41)
		self:SetMoverPosition("ElvAB_2", "BOTTOM", E.UIParent, "BOTTOM", 0, 80)
fgprodigal's avatar
fgprodigal committed
262
		self:SetMoverPosition("ElvAB_3", "RIGHT", E.UIParent, "RIGHT", -42, 0)
fgprodigal's avatar
fgprodigal committed
263
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
264
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
265
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
fgprodigal's avatar
fgprodigal committed
266
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 257, 307)
fgprodigal's avatar
fgprodigal committed
267
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
268
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
fgprodigal's avatar
fgprodigal committed
269
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 120)
fgprodigal's avatar
fgprodigal committed
270
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -320, 340)
fgprodigal's avatar
fgprodigal committed
271
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
fgprodigal's avatar
fgprodigal committed
272
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
fgprodigal's avatar
fgprodigal committed
273
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
fgprodigal's avatar
fgprodigal committed
274 275 276 277 278
		self:SetMoverPosition("ElvUF_TargetCastbarMover", "TOP", _G.ElvUF_Target, "BOTTOM", 0, -17)
		self:SetMoverPosition("ElvUF_TargetMover", "BOTTOM", E.UIParent, "BOTTOM", 320, 340)
		self:SetMoverPosition("ElvUF_TargetTargetMover", "LEFT", _G.ElvUF_Target, "RIGHT", 2, 0)
		self:SetMoverPosition("PetAB", "BOTTOMRIGHT", E.UIParent, "BOTTOM", -240, 6)
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 273)
fgprodigal's avatar
fgprodigal committed
279
	end
fgprodigal's avatar
fgprodigal committed
280 281 282 283 284 285 286 287
	self:SetMoverPosition("AlertFrameMover", "TOP", E.UIParent, "TOP", 0, -140)
	self:SetMoverPosition("AltPowerBarMover", "TOP", E.UIParent, "TOP", 0, -45)
	self:SetMoverPosition("AutoButtonAnchor2Mover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 42)
	self:SetMoverPosition("AutoButtonAnchor3Mover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 1)
	self:SetMoverPosition("AutoButtonAnchorMover", "BOTTOMLEFT", _G.RightChatPanel, "TOPLEFT", 0, 83)
	self:SetMoverPosition("AzeriteBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 24)
	self:SetMoverPosition("BelowMinimapContainerMover", "TOPLEFT", E.UIParent, "TOPLEFT", 45, -211)
	self:SetMoverPosition("BNETMover", "TOP", E.UIParent, "TOP", 0, -50)
fgprodigal's avatar
fgprodigal committed
288
	self:SetMoverPosition("BossButton", "TOPRIGHT", E.UIParent, "TOPRIGHT", -381, -516)
fgprodigal's avatar
fgprodigal committed
289 290
	self:SetMoverPosition("BuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -18)
	self:SetMoverPosition("DebuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -161)
fgprodigal's avatar
fgprodigal committed
291
	self:SetMoverPosition("DurabilityFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -4, -283)
fgprodigal's avatar
fgprodigal committed
292 293 294 295
	self:SetMoverPosition("ElvNP_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 360)
	self:SetMoverPosition("ElvUF_FocusCastbarMover", "TOP", _G.ElvUF_Focus, "BOTTOM", 0, -17)
	self:SetMoverPosition("ElvUF_FocusMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -450, -350)
	self:SetMoverPosition("ElvUIBagMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -28, 50)
fgprodigal's avatar
fgprodigal committed
296
	self:SetMoverPosition("ElvUIBankMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 50)
fgprodigal's avatar
fgprodigal committed
297
	self:SetMoverPosition("ExperienceBarMover", "TOP", _G.LeftChatMover, "BOTTOM", 0, -1)
fgprodigal's avatar
fgprodigal committed
298
	self:SetMoverPosition("GMMover", "TOPLEFT", E.UIParent, "TOPLEFT", 229, -20)
fgprodigal's avatar
fgprodigal committed
299
	self:SetMoverPosition("HonorBarMover", "TOP", _G.RightChatPanel, "BOTTOM", 0, -1)
fgprodigal's avatar
fgprodigal committed
300
	self:SetMoverPosition("LootFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -495, -457)
fgprodigal's avatar
fgprodigal committed
301
	self:SetMoverPosition("MER_LocPanel_Mover", "TOP", E.UIParent, "TOP", 0, 0)
fgprodigal's avatar
fgprodigal committed
302 303 304 305 306 307 308
	self:SetMoverPosition("MER_MicroBarMover", "TOP", E.UIParent, "TOP", 0, -19)
	self:SetMoverPosition("MER_SquareMinimapButtonBarMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 198)
	self:SetMoverPosition("MicrobarMover", "TOPLEFT", E.UIParent, "TOPLEFT", 4, -4)
	self:SetMoverPosition("MinimapMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -11, -17)
	self:SetMoverPosition("mUI_RaidMarkerBarAnchor", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -277, 178)
	self:SetMoverPosition("mUIMiddleDTPanelMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 6)
	self:SetMoverPosition("ObjectiveFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -135, -315)
fgprodigal's avatar
fgprodigal committed
309
	self:SetMoverPosition("PlayerPowerBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 250)
fgprodigal's avatar
fgprodigal committed
310 311 312 313 314
	self:SetMoverPosition("QuestTimerFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -232, -241)
	self:SetMoverPosition("ReputationBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 32)
	self:SetMoverPosition("SpecializationBarMover", "BOTTOM", E.UIParent, "BOTTOM", 243, 4)
	self:SetMoverPosition("SquareMinimapButtonBarMover", "TOPRIGHT", _G.Minimap, "BOTTOMRIGHT", 1, -1)
	self:SetMoverPosition("TalkingHeadFrameMover", "TOP", E.UIParent, "TOP", 0, -80)
fgprodigal's avatar
fgprodigal committed
315
	self:SetMoverPosition("TaxiButtonMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 202)
fgprodigal's avatar
fgprodigal committed
316 317
	self:SetMoverPosition("TimeManagerFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -39, -231)
	self:SetMoverPosition("TooltipMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 280)
fgprodigal's avatar
fgprodigal committed
318
	self:SetMoverPosition("TopCenterContainerMover", "TOP", E.UIParent, "TOP", 0, -60)
fgprodigal's avatar
fgprodigal committed
319
	self:SetMoverPosition("VehicleSeatMover", "BOTTOMRIGHT", _G.RightChatPanel, "BOTTOMLEFT", -59, 0)
fgprodigal's avatar
fgprodigal committed
320 321
	self:SetMoverPosition("ZoneAbbility", "TOPRIGHT", E.UIParent, "TOPRIGHT", -381, -516)

fgprodigal's avatar
fgprodigal committed
322
	self:SetMoverPosition("OzCooldownsMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 430)
fgprodigal's avatar
fgprodigal committed
323 324
	self:SetMoverPosition("iFilger_ItemCooldownsMover", "BOTTOM", E.UIParent, "BOTTOM", 270, 184)
	self:SetMoverPosition("iFilger_BuffsMover", "BOTTOM", E.UIParent, "BOTTOM", -135, 470)
fgprodigal's avatar
fgprodigal committed
325 326 327 328 329 330

	PluginInstallStepComplete.message = self.Title..L["Layout Set"]
	PluginInstallStepComplete:Show()
end

function RayUI:SetupVariables(colorMode)
fgprodigal's avatar
fgprodigal committed
331
	local color = E.myclass == 'PRIEST' and E.PriestColors or (_G.CUSTOM_CLASS_COLORS and _G.CUSTOM_CLASS_COLORS[E.myclass] or _G.RAID_CLASS_COLORS[E.myclass])
fgprodigal's avatar
fgprodigal committed
332
	local classColor = colorMode == "classColor"
fgprodigal's avatar
fgprodigal committed
333 334
	local nameColorTag = classColor and "" or "[namecolor]"

fgprodigal's avatar
fgprodigal committed
335 336 337 338 339
	--[[----------------------------------
	--	GlobalDB
	--]]----------------------------------
	E.global["general"]["animateConfig"] = false
	E.global["general"]["autoScale"] = true
fgprodigal's avatar
fgprodigal committed
340
	E.global["general"]["commandBarSetting"] =  "ENABLED_RESIZEPARENT"
fgprodigal's avatar
fgprodigal committed
341 342 343
	if GetLocale() == "zhCN" then
		E.global["general"]["numberPrefixStyle"] = "CHINESE"
	end
fgprodigal's avatar
fgprodigal committed
344 345
	E.global["general"]["showMissingTalentAlert"] = true
	E.global["general"]["smallerWorldMap"] = false
fgprodigal's avatar
fgprodigal committed
346 347 348 349

	--[[----------------------------------
	--	PrivateDB
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
350
	E.private["general"]["chatBubbleFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
351
	E.private["general"]["chatBubbleFontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
352
	E.private["general"]["chatBubbleFontSize"] = 13
fgprodigal's avatar
fgprodigal committed
353
	E.private["general"]["chatBubbleName"] = true
fgprodigal's avatar
fgprodigal committed
354
	E.private["general"]["dmgfont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
355
	E.private["general"]["glossTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
356 357
	E.private["general"]["namefont"] = E.Libs.LSM.DefaultMedia["font"]
	E.private["general"]["normTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
358
	E.private["skins"]["blizzard"]["losscontrol"] = false
fgprodigal's avatar
fgprodigal committed
359
	E.private["skins"]["parchmentRemover"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
360 361 362 363 364 365 366 367 368 369 370 371
	E.private["theme"] = "default"
	if IsAddOnLoaded("XLoot") then
		E.private["general"]["loot"] = false
		E.private["general"]["lootRoll"] = false
	else
		E.private["general"]["loot"] = true
		E.private["general"]["lootRoll"] = true
	end

	--[[----------------------------------
	--	ProfileDB - General
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
372
	E.db["general"]["altPowerBar"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
373 374 375 376 377
	E.db["general"]["altPowerBar"]["fontSize"] = 12
	E.db["general"]["altPowerBar"]["smoothbars"] = true
	E.db["general"]["altPowerBar"]["statusBar"] = E.Libs.LSM.DefaultMedia["statusbar"]
	E.db["general"]["altPowerBar"]["statusBarColorGradient"] = true
	E.db["general"]["altPowerBar"]["textFormat"] = "NAMECURMAXPERC"
fgprodigal's avatar
fgprodigal committed
378
	E.db["general"]["autoAcceptInvite"] = true
fgprodigal's avatar
fgprodigal committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
	E.db["general"]["autoRepair"] = "PLAYER"
	E.db["general"]["autoRoll"] = true
	E.db["general"]["backdropcolor"] = { r = 0.17, g = 0.17, b = 0.17 }
	E.db["general"]["backdropfadecolor"] = { r = 0.17, g = 0.17, b = 0.17, a = 0.4 }
	E.db["general"]["bonusObjectivePosition"] = "AUTO"
	E.db["general"]["bordercolor"]["b"] = 0
	E.db["general"]["bordercolor"]["g"] = 0
	E.db["general"]["bordercolor"]["r"] = 0
	E.db["general"]["bottomPanel"] = false
	E.db["general"]["decimalLenght"] = 0
	E.db["general"]["displayCharacterInfo"] = true
	E.db["general"]["displayInspectInfo"] = true
	E.db["general"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["general"]["fontSize"] = 12
	E.db["general"]["hideErrorFrame"] = false
	E.db["general"]["interruptAnnounce"] = "RAID"
	E.db["general"]["itemLevel"]["itemLevelFont"] = "PT Sans Narrow"
	E.db["general"]["loginmessage"] = false
	E.db["general"]["minimap"]["icons"]["mail"]["position"] = "BOTTOMLEFT"
	E.db["general"]["minimap"]["icons"]["mail"]["xOffset"] = 0
	E.db["general"]["minimap"]["icons"]["mail"]["yOffset"] = -5
	E.db["general"]["minimap"]["icons"]["ticket"]["position"] = "TOP"
	E.db["general"]["minimap"]["icons"]["ticket"]["scale"] = 0.75
	E.db["general"]["minimap"]["locationFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
403
	E.db["general"]["minimap"]["locationFontSize"] = 10
fgprodigal's avatar
fgprodigal committed
404
	E.db["general"]["minimap"]["locationText"] = "HIDE"
fgprodigal's avatar
fgprodigal committed
405 406 407
	E.db["general"]["minimap"]["resetZoom"]["enable"] = true
	E.db["general"]["minimap"]["resetZoom"]["time"] = 5
	E.db["general"]["minimap"]["size"] = 200
fgprodigal's avatar
fgprodigal committed
408 409
	E.db["general"]["resurrectSound"] = true
	E.db["general"]["smoothingAmount"] = 0.25
fgprodigal's avatar
fgprodigal committed
410
	E.db["general"]["talkingHeadFrameBackdrop"] = true
fgprodigal's avatar
fgprodigal committed
411
	E.db["general"]["talkingHeadFrameScale"] = 0.9
fgprodigal's avatar
fgprodigal committed
412 413 414
	E.db["general"]["threat"]["enable"] = false
	E.db["general"]["threat"]["textOutline"] = "OUTLINE"
	E.db["general"]["topPanel"] = false
fgprodigal's avatar
fgprodigal committed
415
	E.db["general"]["totems"]["size"] = 36
fgprodigal's avatar
fgprodigal committed
416
	E.db["general"]["valuecolor"] = { r = color.r, g = color.g, b = color.b }
fgprodigal's avatar
fgprodigal committed
417 418 419 420 421
	E.db["general"]["vehicleSeatIndicatorSize"] = 76

	--[[----------------------------------
	--	ProfileDB - Databars
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
422 423 424 425
	E.db["databars"]["azerite"]["enable"] = true
	E.db["databars"]["azerite"]["height"] = 8
	E.db["databars"]["azerite"]["orientation"] = "HORIZONTAL"
	E.db["databars"]["azerite"]["width"] = 355
fgprodigal's avatar
fgprodigal committed
426
	E.db["databars"]["experience"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
427
	E.db["databars"]["experience"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
428
	E.db["databars"]["experience"]["orientation"] = "HORIZONTAL"
fgprodigal's avatar
fgprodigal committed
429
	E.db["databars"]["experience"]["textSize"] = 10
fgprodigal's avatar
fgprodigal committed
430
	E.db["databars"]["experience"]["width"] = 400
fgprodigal's avatar
fgprodigal committed
431 432 433 434 435 436 437 438 439 440
	E.db["databars"]["honor"]["enable"] = false
	E.db["databars"]["honor"]["height"] = 8
	E.db["databars"]["honor"]["hideOutsidePvP"] = true
	E.db["databars"]["honor"]["orientation"] = "HORIZONTAL"
	E.db["databars"]["honor"]["width"] = 400
	E.db["databars"]["reputation"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["databars"]["reputation"]["height"] = 8
	E.db["databars"]["reputation"]["orientation"] = "HORIZONTAL"
	E.db["databars"]["reputation"]["textSize"] = 10
	E.db["databars"]["reputation"]["width"] = 355
fgprodigal's avatar
fgprodigal committed
441 442 443 444 445

	--[[----------------------------------
	--	ProfileDB - Auras
	--]]----------------------------------
	E.db["auras"]["buffs"]["countFontsize"] = 14
fgprodigal's avatar
fgprodigal committed
446 447
	E.db["auras"]["buffs"]["durationFontSize"] = 14
	E.db["auras"]["buffs"]["horizontalSpacing"] = 5
fgprodigal's avatar
fgprodigal committed
448
	E.db["auras"]["buffs"]["size"] = 40
fgprodigal's avatar
fgprodigal committed
449 450 451
	E.db["auras"]["buffs"]["verticalSpacing"] = 15
	E.db["auras"]["buffs"]["wrapAfter"] = 10
	E.db["auras"]["cooldown"]["checkSeconds"] = true
fgprodigal's avatar
fgprodigal committed
452 453 454
	E.db["auras"]["cooldown"]["daysColor"]["g"] = 0.4
	E.db["auras"]["cooldown"]["daysColor"]["r"] = 0.4
	E.db["auras"]["cooldown"]["hoursColor"]["r"] = 0.4
fgprodigal's avatar
fgprodigal committed
455 456 457 458
	E.db["auras"]["cooldown"]["mmssThreshold"] = 90
	E.db["auras"]["cooldown"]["override"] = true
	E.db["auras"]["cooldown"]["secondsColor"]["b"] = 0
	E:CopyTable(E.db["auras"]["cooldown"]["daysIndicator"], E.db["auras"]["cooldown"]["daysColor"])
fgprodigal's avatar
fgprodigal committed
459
	E:CopyTable(E.db["auras"]["cooldown"]["expireIndicator"], E.db["auras"]["cooldown"]["expiringColor"])
fgprodigal's avatar
fgprodigal committed
460
	E:CopyTable(E.db["auras"]["cooldown"]["hhmmColor"], E.db["auras"]["cooldown"]["minutesColor"])
fgprodigal's avatar
fgprodigal committed
461
	E:CopyTable(E.db["auras"]["cooldown"]["hoursIndicator"], E.db["auras"]["cooldown"]["hoursColor"])
fgprodigal's avatar
fgprodigal committed
462
	E:CopyTable(E.db["auras"]["cooldown"]["minutesIndicator"], E.db["auras"]["cooldown"]["minutesColor"])
fgprodigal's avatar
fgprodigal committed
463
	E:CopyTable(E.db["auras"]["cooldown"]["mmssColor"], E.db["auras"]["cooldown"]["secondsColor"])
fgprodigal's avatar
fgprodigal committed
464 465 466 467 468 469 470 471
	E:CopyTable(E.db["auras"]["cooldown"]["secondsIndicator"], E.db["auras"]["cooldown"]["secondsColor"])
	E.db["auras"]["debuffs"]["countFontsize"] = 14
	E.db["auras"]["debuffs"]["durationFontSize"] = 14
	E.db["auras"]["debuffs"]["horizontalSpacing"] = 5
	E.db["auras"]["debuffs"]["size"] = 42
	E.db["auras"]["fadeThreshold"] = 10
	E.db["auras"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["auras"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
472 473 474 475

	--[[----------------------------------
	--	ProfileDB - Tooltip
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
476
	E.db["tooltip"]["alwaysShowRealm"] = true
fgprodigal's avatar
fgprodigal committed
477 478 479 480 481
	if colorMode == "transparent" then
		E.db["tooltip"]["colorAlpha"] = 0.4
	else
		E.db["tooltip"]["colorAlpha"] = 0.8
	end
fgprodigal's avatar
fgprodigal committed
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
	E.db["tooltip"]["cursorAnchor"] = true
	E.db["tooltip"]["cursorAnchorType"] = "ANCHOR_CURSOR_RIGHT"
	E.db["tooltip"]["cursorAnchorY"] = 10
	E.db["tooltip"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["tooltip"]["fontSize"] = 13
	E.db["tooltip"]["headerFontSize"] = 13
	E.db["tooltip"]["healthBar"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["tooltip"]["healthBar"]["fontSize"] = 12
	E.db["tooltip"]["healthBar"]["height"] = 4
	E.db["tooltip"]["healthBar"]["height"] = 8
	E.db["tooltip"]["healthBar"]["statusPosition"] = "TOP"
	E.db["tooltip"]["npcID"] = false
	E.db["tooltip"]["smallTextFontSize"] = 13
	E.db["tooltip"]["style"] = "inset"
	E.db["tooltip"]["textFontSize"] = 13
fgprodigal's avatar
fgprodigal committed
497 498 499 500

	--[[----------------------------------
	--	ProfileDB - UnitFrame
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
501
	E.db["unitframe"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
502
	E.db["unitframe"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
503
	E.db["unitframe"]["cooldown"]["fonts"]["font"] = "RayUI Roadway"
fgprodigal's avatar
fgprodigal committed
504 505 506 507
	E.db["unitframe"]["units"]["targettarget"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
508 509 510 511
			["font"] = E.Libs.LSM.DefaultMedia["font"],
			["fontOutline"] = "OUTLINE",
			["justifyH"] = "RIGHT",
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
512
			["text_format"] = nameColorTag .. "[name:veryshort:translit]",
fgprodigal's avatar
fgprodigal committed
513
			["xOffset"] = -3,
fgprodigal's avatar
fgprodigal committed
514
			["yOffset"] = 23,
fgprodigal's avatar
fgprodigal committed
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673
		},
	}
	E.db["unitframe"]["colors"]["castClassColor"] = not classColor
	E.db["unitframe"]["colors"]["classpower_backdrop"]["b"] = 0.11
	E.db["unitframe"]["colors"]["classpower_backdrop"]["g"] = 0.11
	E.db["unitframe"]["colors"]["classpower_backdrop"]["r"] = 0.11
	E.db["unitframe"]["colors"]["colorhealthbyvalue"] = colorMode == "dark"
	E.db["unitframe"]["colors"]["health"] = { r = 0, g = 0, b = 0 }
	E.db["unitframe"]["colors"]["healthclass"] = classColor
	E.db["unitframe"]["colors"]["powerclass"] = not classColor
	E.db["unitframe"]["colors"]["useDeadBackdrop"] = true
	if colorMode == "transparent" then
		E.db["chat"]["panelColor"]["a"] = 0
		E.db["chat"]["panelColorConverted"] = true
		E.db["unitframe"]["colors"]["classbackdrop"] = true
		E.db["unitframe"]["colors"]["colorhealthbyvalue"] = false
		E.db["unitframe"]["colors"]["customcastbarbackdrop"] = false
		E.db["unitframe"]["colors"]["customhealthbackdrop"] = false
		E.db["unitframe"]["colors"]["frameGlow"]["targetGlow"]["class"] = true
		E.db["unitframe"]["colors"]["frameGlow"]["targetGlow"]["enable"] = true
		E.db["unitframe"]["colors"]["health_backdrop_dead"] = { r = 0.48, g = 0, b = 0 }
		E.db["unitframe"]["colors"]["health_backdrop"]= { r = 0.84, g = 0.84, b = 0.84 }
		E.db["unitframe"]["colors"]["health"] = { r = 0.2, g = 0.2, b = 0.2 }
		E.db["unitframe"]["colors"]["healthMultiplier"] = 0.75
		E.db["unitframe"]["colors"]["invertCastbar"] = true
		E.db["unitframe"]["colors"]["transparentCastbar"]= true
		E.db["unitframe"]["colors"]["transparentHealth"]= true
	else
		E.db["chat"]["panelColor"]["a"] = 0.45
		E.db["chat"]["panelColorConverted"] = true
		E.db["unitframe"]["colors"]["classbackdrop"]= false
		E.db["unitframe"]["colors"]["customcastbarbackdrop"] = true
		E.db["unitframe"]["colors"]["frameGlow"]["targetGlow"]["enable"] = false
		E.db["unitframe"]["colors"]["health_backdrop_dead"] = { r = 0.5, g = 0.5, b = 0.5 }
		E.db["unitframe"]["colors"]["health_backdrop"]= { r = 0, g = 0, b = 0 }
		E.db["unitframe"]["colors"]["health"] = { r = 0, g = 0, b = 0 }
		E.db["unitframe"]["colors"]["healthMultiplier"] = 0.2
		E.db["unitframe"]["colors"]["invertCastBar"] = false
		E.db["unitframe"]["colors"]["transparentCastbar"]= false
		E.db["unitframe"]["colors"]["transparentHealth"]= false
	end
	E.db["unitframe"]["colors"]["auraBarDebuff"]["b"] = 0.2
	E.db["unitframe"]["colors"]["auraBarDebuff"]["g"] = 0.2
	E.db["unitframe"]["colors"]["auraBarDebuff"]["r"] = 0.78
	E.db["unitframe"]["colors"]["castbar_backdrop"]["b"] = 0.04
	E.db["unitframe"]["colors"]["castbar_backdrop"]["g"] = 0.04
	E.db["unitframe"]["colors"]["castbar_backdrop"]["r"] = 0.04
	E.db["unitframe"]["colors"]["castColor"]["b"] = 0.2
	E.db["unitframe"]["colors"]["castColor"]["g"] = 0.78
	E.db["unitframe"]["colors"]["castColor"]["r"] = 0.2
	E.db["unitframe"]["colors"]["castNoInterrupt"]["b"] = 0.2
	E.db["unitframe"]["colors"]["castNoInterrupt"]["g"] = 0.2
	E.db["unitframe"]["colors"]["castNoInterrupt"]["r"] = 0.78
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][1]["b"] = 0.2
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][1]["g"] = 0.2
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][1]["r"] = 0.78
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][2]["b"] = 0.2
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][2]["g"] = 0.86
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][2]["r"] = 0.86
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][3]["b"] = 0.2
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][3]["g"] = 0.78
	E.db["unitframe"]["colors"]["classResources"]["comboPoints"][3]["r"] = 0.2
	E.db["unitframe"]["colors"]["classResources"]["WARLOCK"]["b"] = 0.92
	E.db["unitframe"]["colors"]["classResources"]["WARLOCK"]["g"] = 0.52
	E.db["unitframe"]["colors"]["classResources"]["WARLOCK"]["r"] = 0.52
	E.db["unitframe"]["colors"]["debuffHighlight"]["Curse"]["a"] = 1
	E.db["unitframe"]["colors"]["debuffHighlight"]["Disease"]["a"] = 1
	E.db["unitframe"]["colors"]["debuffHighlight"]["Magic"]["a"] = 1
	E.db["unitframe"]["colors"]["debuffHighlight"]["Poison"]["a"] = 1
	E.db["unitframe"]["colors"]["frameGlow"]["mainGlow"]["class"] = true
	E.db["unitframe"]["colors"]["frameGlow"]["mouseoverGlow"]["color"] = { r = 1, g = 1, b = 1, a = 0.1}
	E.db["unitframe"]["colors"]["frameGlow"]["mouseoverGlow"]["enable"] = true
	E.db["unitframe"]["colors"]["frameGlow"]["mouseoverGlow"]["texture"] = "ElvUI Blank"
	E.db["unitframe"]["colors"]["healPrediction"]["absorbs"] = {r = 0.66, g = 1, b = 1, a = 0.7}
	E.db["unitframe"]["colors"]["healPrediction"]["overabsorbs"] = {r = 0.66, g = 1, b = 1, a = 0.7}
	E.db["unitframe"]["colors"]["power_backdrop"]["b"] = 0.04
	E.db["unitframe"]["colors"]["power_backdrop"]["g"] = 0.04
	E.db["unitframe"]["colors"]["power_backdrop"]["r"] = 0.04
	E.db["unitframe"]["colors"]["power"]["ENERGY"]["b"] = 0.2
	E.db["unitframe"]["colors"]["power"]["ENERGY"]["g"] = 0.86
	E.db["unitframe"]["colors"]["power"]["ENERGY"]["r"] = 0.86
	E.db["unitframe"]["colors"]["power"]["FOCUS"]["b"] = 0.25
	E.db["unitframe"]["colors"]["power"]["FOCUS"]["g"] = 0.50
	E.db["unitframe"]["colors"]["power"]["FOCUS"]["r"] = 1
	E.db["unitframe"]["colors"]["power"]["MANA"]["b"] = 1
	E.db["unitframe"]["colors"]["power"]["MANA"]["g"] = 0.50
	E.db["unitframe"]["colors"]["power"]["MANA"]["r"] = 0
	E.db["unitframe"]["colors"]["power"]["RAGE"]["b"] = 0.2
	E.db["unitframe"]["colors"]["power"]["RAGE"]["g"] = 0.2
	E.db["unitframe"]["colors"]["power"]["RAGE"]["r"] = 0.78
	E.db["unitframe"]["colors"]["reaction"]["BAD"]["b"] = 0.2
	E.db["unitframe"]["colors"]["reaction"]["BAD"]["g"] = 0.2
	E.db["unitframe"]["colors"]["reaction"]["BAD"]["r"] = 0.78
	E.db["unitframe"]["colors"]["reaction"]["GOOD"]["b"] = 0.12
	E.db["unitframe"]["colors"]["reaction"]["GOOD"]["g"] = 0.78
	E.db["unitframe"]["colors"]["reaction"]["GOOD"]["r"] = 0.12
	E.db["unitframe"]["colors"]["reaction"]["NEUTRAL"]["b"] = 0.2
	E.db["unitframe"]["colors"]["reaction"]["NEUTRAL"]["g"] = 0.86
	E.db["unitframe"]["colors"]["reaction"]["NEUTRAL"]["r"] = 0.86
	E.db["unitframe"]["colors"]["selection"][0]["b"] = 0.2
	E.db["unitframe"]["colors"]["selection"][0]["g"] = 0.2
	E.db["unitframe"]["colors"]["selection"][0]["r"] = 0.78
	E.db["unitframe"]["colors"]["selection"][1]["b"] = 0.2
	E.db["unitframe"]["colors"]["selection"][1]["g"] = 0.6
	E.db["unitframe"]["colors"]["selection"][2]["b"] = 0.2
	E.db["unitframe"]["colors"]["selection"][2]["g"] = 0.86
	E.db["unitframe"]["colors"]["selection"][2]["r"] = 0.86
	E.db["unitframe"]["colors"]["selection"][3]["b"] = 0.2
	E.db["unitframe"]["colors"]["selection"][3]["g"] = 0.78
	E.db["unitframe"]["colors"]["selection"][3]["r"] = 0.2
	E.db["unitframe"]["colors"]["selection"][8]["b"] = 0.2
	E.db["unitframe"]["colors"]["selection"][8]["g"] = 0.78
	E.db["unitframe"]["colors"]["selection"][8]["r"] = 0.2
	E.db["unitframe"]["colors"]["transparentAurabars"] = true
	E.db["unitframe"]["cooldown"]["daysColor"]["g"] = 0.4
	E.db["unitframe"]["cooldown"]["daysColor"]["r"] = 0.4
	E.db["unitframe"]["cooldown"]["fonts"]["enable"] = true
	E.db["unitframe"]["cooldown"]["hoursColor"]["r"] = 0.4
	E.db["unitframe"]["cooldown"]["secondsColor"]["b"] = 0
	E:CopyTable(E.db["unitframe"]["cooldown"]["daysIndicator"], E.db["unitframe"]["cooldown"]["daysColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["expireIndicator"], E.db["unitframe"]["cooldown"]["expiringColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["hhmmColor"], E.db["unitframe"]["cooldown"]["minutesColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["hoursIndicator"], E.db["unitframe"]["cooldown"]["hoursColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["minutesIndicator"], E.db["unitframe"]["cooldown"]["minutesColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["mmssColor"], E.db["unitframe"]["cooldown"]["secondsColor"])
	E:CopyTable(E.db["unitframe"]["cooldown"]["secondsIndicator"], E.db["unitframe"]["cooldown"]["secondsColor"])
	E.db["unitframe"]["debuffHighlighting"] = "GLOW"
	E.db["unitframe"]["fontOutline"] = "OUTLINE"
	E.db["unitframe"]["smartRaidFilter"] = false
	E.db["unitframe"]["smoothbars"] = true
	E.db["unitframe"]["statusbar"] = E.Libs.LSM.DefaultMedia["statusbar"]
	
	E.db["unitframe"]["units"]["player"]["aurabar"]["enable"] = false
	E.db["unitframe"]["units"]["player"]["buffs"]["anchorPoint"] = "TOPRIGHT"
	E.db["unitframe"]["units"]["player"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["player"]["buffs"]["countFontSize"] = 14
	E.db["unitframe"]["units"]["player"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["buffs"]["maxDuration"] = 60
	E.db["unitframe"]["units"]["player"]["buffs"]["priority"] = "Blacklist,blockNoDuration,MER_RaidCDs,Personal"
	E.db["unitframe"]["units"]["player"]["buffs"]["sizeOverride"] = 35
	E.db["unitframe"]["units"]["player"]["buffs"]["yOffset"] = 5
	E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 21
	E.db["unitframe"]["units"]["player"]["castbar"]["iconAttached"] = false
	E.db["unitframe"]["units"]["player"]["castbar"]["iconAttachedTo"] = "Castbar"
	E.db["unitframe"]["units"]["player"]["castbar"]["iconXOffset"] = -5
	E.db["unitframe"]["units"]["player"]["castbar"]["insideInfoPanel"] = false
	E.db["unitframe"]["units"]["player"]["castbar"]["overlayOnFrame"] = "None"
	E.db["unitframe"]["units"]["player"]["castbar"]["tickColor"]["a"] = 0.70186564326286
	E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 425
	E.db["unitframe"]["units"]["player"]["classbar"]["detachFromFrame"] = true
	E.db["unitframe"]["units"]["player"]["classbar"]["height"] = 15
	E.db["unitframe"]["units"]["player"]["classbar"]["timeToHold"] = 0.8
	E.db["unitframe"]["units"]["player"]["CombatIcon"]["customTexture"] = ""
	E.db["unitframe"]["units"]["player"]["CombatIcon"]["size"] = 22
	E.db["unitframe"]["units"]["player"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
674
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
675 676 677 678 679 680 681 682 683 684 685 686
			["justifyH"] = "LEFT",
			["size"] = 13,
			["text_format"] = nameColorTag .. "[name]",
			["xOffset"] = 3,
			["yOffset"] = 23,
		},
		["Life"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
			["font"] = E.Libs.LSM.DefaultMedia["font"],
			["fontOutline"] = "OUTLINE",
			["justifyH"] = "RIGHT",
fgprodigal's avatar
fgprodigal committed
687
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
688 689 690 691 692 693 694
			["text_format"] = nameColorTag .. "[rayui-health:percent-current]",
			["xOffset"] = -3,
			["yOffset"] = -23,
		},
		["RayUIPower"] = {
			["attachTextTo"] = "Power",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
695
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
696 697 698 699 700 701
			["fontOutline"] = "OUTLINE",
			["justifyH"] = "LEFT",
			["size"] = 13,
			["text_format"] = "[powercolor][power:current]",
			["xOffset"] = 0,
			["yOffset"] = -10,
fgprodigal's avatar
fgprodigal committed
702 703 704
		},
	}
	E.db["unitframe"]["units"]["player"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
fgprodigal's avatar
fgprodigal committed
705
	E.db["unitframe"]["units"]["player"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
706 707 708
	E.db["unitframe"]["units"]["player"]["debuffs"]["countFontSize"] = 9
	E.db["unitframe"]["units"]["player"]["debuffs"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["debuffs"]["sizeOverride"] = 30
fgprodigal's avatar
fgprodigal committed
709
	E.db["unitframe"]["units"]["player"]["debuffs"]["spacing"] = 4
fgprodigal's avatar
fgprodigal committed
710 711 712 713 714 715 716 717 718 719 720 721 722
	E.db["unitframe"]["units"]["player"]["debuffs"]["yOffset"] = 20
	E.db["unitframe"]["units"]["player"]["disableMouseoverGlow"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["casting"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["combat"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["focus"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["health"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["hover"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["minAlpha"] = 0.2
	E.db["unitframe"]["units"]["player"]["fader"]["minAlpha"] = 0.2
	E.db["unitframe"]["units"]["player"]["fader"]["playertarget"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["power"] = true
	E.db["unitframe"]["units"]["player"]["fader"]["vehicle"] = true
fgprodigal's avatar
fgprodigal committed
723
	E.db["unitframe"]["units"]["player"]["health"]["bgUseBarTexture"] = true
fgprodigal's avatar
fgprodigal committed
724 725 726
	E.db["unitframe"]["units"]["player"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["player"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["player"]["health"]["xOffset"] = 0
fgprodigal's avatar
fgprodigal committed
727
	E.db["unitframe"]["units"]["player"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
728 729 730 731 732
	E.db["unitframe"]["units"]["player"]["infoPanel"]["height"] = 24
	E.db["unitframe"]["units"]["player"]["infoPanel"]["transparent"] = true
	E.db["unitframe"]["units"]["player"]["orientation"] = "LEFT"
	E.db["unitframe"]["units"]["player"]["portrait"]["overlay"] = true
	E.db["unitframe"]["units"]["player"]["power"]["attachTextTo"] = "Power"
fgprodigal's avatar
fgprodigal committed
733 734
	E.db["unitframe"]["units"]["player"]["power"]["detachFromFrame"] = false
	E.db["unitframe"]["units"]["player"]["power"]["height"] = 4
fgprodigal's avatar
fgprodigal committed
735
	E.db["unitframe"]["units"]["player"]["power"]["hideonnpc"] = true
fgprodigal's avatar
fgprodigal committed
736 737 738 739 740
	E.db["unitframe"]["units"]["player"]["power"]["position"] = "CENTER"
	E.db["unitframe"]["units"]["player"]["power"]["powerPrediction"] = true
	E.db["unitframe"]["units"]["player"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["player"]["power"]["xOffset"] = 0
	E.db["unitframe"]["units"]["player"]["pvp"]["position"] = "TOP"
fgprodigal's avatar
fgprodigal committed
741 742 743 744 745
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["anchorPoint"] = "TOPRIGHT"
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["enable"] = true
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["scale"] = 0.5
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["xOffset"] = 7
	E.db["unitframe"]["units"]["player"]["pvpIcon"]["yOffset"] = 7
fgprodigal's avatar
fgprodigal committed
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768
	E.db["unitframe"]["units"]["player"]["raidicon"]["position"] = "TOP"
	E.db["unitframe"]["units"]["player"]["raidicon"]["yOffset"] = 15
	E.db["unitframe"]["units"]["player"]["RestIcon"]["enable"] = false
	E.db["unitframe"]["units"]["player"]["width"] = 200

	E.db["unitframe"]["units"]["target"]["aurabar"]["attachTo"] = "BUFFS"
	E.db["unitframe"]["units"]["target"]["aurabar"]["enable"] = false
	E.db["unitframe"]["units"]["target"]["buffs"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["target"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["target"]["buffs"]["countFontSize"] = 12
	E.db["unitframe"]["units"]["target"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["target"]["buffs"]["priority"] = "Blacklist,Enemy:Dispellable,Personal,Boss,Whitelist,PlayerBuffs,nonPersonal"
	E.db["unitframe"]["units"]["target"]["buffs"]["sizeOverride"] = 30
	E.db["unitframe"]["units"]["target"]["buffs"]["yOffset"] = 20
	E.db["unitframe"]["units"]["target"]["castbar"]["iconAttached"] = false
	E.db["unitframe"]["units"]["target"]["castbar"]["iconAttachedTo"] = "Castbar"
	E.db["unitframe"]["units"]["target"]["castbar"]["iconPosition"] = "RIGHT"
	E.db["unitframe"]["units"]["target"]["castbar"]["iconSize"] = 35
	E.db["unitframe"]["units"]["target"]["castbar"]["iconXOffset"] = 2
	E.db["unitframe"]["units"]["target"]["castbar"]["insideInfoPanel"] = false
	E.db["unitframe"]["units"]["target"]["castbar"]["timeToHold"] = 0.8
	E.db["unitframe"]["units"]["target"]["castbar"]["width"] = 200
	E.db["unitframe"]["units"]["target"]["customTexts"] = {
fgprodigal's avatar
fgprodigal committed
769 770 771
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
772
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
773
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
774
			["justifyH"] = "RIGHT",
fgprodigal's avatar
fgprodigal committed
775
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
776 777 778
			["text_format"] = nameColorTag .. "[name:medium:translit] [difficultycolor][smartlevel][classification:icon]",
			["xOffset"] = -3,
			["yOffset"] = 23,
fgprodigal's avatar
fgprodigal committed
779 780 781 782
		},
		["Life"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
783
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
784
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
785
			["justifyH"] = "LEFT",
fgprodigal's avatar
fgprodigal committed
786
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
787 788 789
			["text_format"] = nameColorTag .. "[rayui-health:current-percent]",
			["xOffset"] = 3,
			["yOffset"] = -23,
fgprodigal's avatar
fgprodigal committed
790 791
		},
		["RayUIPower"] = {
fgprodigal's avatar
fgprodigal committed
792
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
793
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
794
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
795
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
796
			["justifyH"] = "RIGHT",
fgprodigal's avatar
fgprodigal committed
797
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
798 799 800
			["text_format"] = "[powercolor][power:current]",
			["xOffset"] = -3,
			["yOffset"] = -23,
fgprodigal's avatar
fgprodigal committed
801 802
		},
	}
fgprodigal's avatar
fgprodigal committed
803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863
	E.db["unitframe"]["units"]["target"]["debuffs"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["target"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["target"]["debuffs"]["countFontSize"] = 14
	E.db["unitframe"]["units"]["target"]["debuffs"]["enable"] = true
	E.db["unitframe"]["units"]["target"]["debuffs"]["perrow"] = 7
	E.db["unitframe"]["units"]["target"]["debuffs"]["priority"] = "Blacklist,Friendly:Dispellable,Personal,RaidDebuffs,CCDebuffs,Friendly:nonPersonal"
	E.db["unitframe"]["units"]["target"]["debuffs"]["sizeOverride"] = 35
	E.db["unitframe"]["units"]["target"]["debuffs"]["spacing"] = 4
	E.db["unitframe"]["units"]["target"]["debuffs"]["yOffset"] = 5
	E.db["unitframe"]["units"]["target"]["disableMouseoverGlow"] = true
	E.db["unitframe"]["units"]["target"]["health"]["attachTextTo"] = "Frame"
	E.db["unitframe"]["units"]["target"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["target"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["target"]["health"]["text_format"] = ""
	E.db["unitframe"]["units"]["target"]["health"]["xOffset"] = 0
	E.db["unitframe"]["units"]["target"]["height"] = 30
	E.db["unitframe"]["units"]["target"]["infoPanel"]["height"] = 24
	E.db["unitframe"]["units"]["target"]["infoPanel"]["transparent"] = true
	E.db["unitframe"]["units"]["target"]["name"]["position"] = "RIGHT"
	E.db["unitframe"]["units"]["target"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["target"]["name"]["xOffset"] = 8
	E.db["unitframe"]["units"]["target"]["name"]["yOffset"] = -32
	E.db["unitframe"]["units"]["target"]["orientation"] = "RIGHT"
	E.db["unitframe"]["units"]["target"]["portrait"]["fullOverlay"] = false
	E.db["unitframe"]["units"]["target"]["portrait"]["overlay"] = true
	E.db["unitframe"]["units"]["target"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["target"]["power"]["powerPrediction"] = true
	E.db["unitframe"]["units"]["target"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["target"]["pvpIcon"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["target"]["pvpIcon"]["enable"] = true
	E.db["unitframe"]["units"]["target"]["pvpIcon"]["scale"] = 0.5
	E.db["unitframe"]["units"]["target"]["pvpIcon"]["xOffset"] = -7
	E.db["unitframe"]["units"]["target"]["pvpIcon"]["yOffset"] = 7
	E.db["unitframe"]["units"]["target"]["raidicon"]["position"] = "TOP"
	E.db["unitframe"]["units"]["target"]["raidicon"]["yOffset"] = 15
	E.db["unitframe"]["units"]["target"]["width"] = 200

	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["anchorPoint"] = "RIGHT"
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["perrow"] = 3
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["spacing"] = 4
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["xOffset"] = 3
	E.db["unitframe"]["units"]["targettarget"]["debuffs"]["yOffset"] = 20
	E.db["unitframe"]["units"]["targettarget"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["targettarget"]["power"]["position"] = "CENTER"
	E.db["unitframe"]["units"]["targettarget"]["health"]["bgUseBarTexture"] = true
	E.db["unitframe"]["units"]["targettarget"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["targettarget"]["height"] = 30
	E.db["unitframe"]["units"]["targettarget"]["name"]["attachTextTo"] = "Frame"
	E.db["unitframe"]["units"]["targettarget"]["name"]["position"] = "RIGHT"
	E.db["unitframe"]["units"]["targettarget"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["targettarget"]["name"]["yOffset"] = 25
	E.db["unitframe"]["units"]["targettarget"]["orientation"] = "RIGHT"
	E.db["unitframe"]["units"]["targettarget"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["targettarget"]["raidicon"]["position"] = "TOP"
	E.db["unitframe"]["units"]["targettarget"]["raidicon"]["yOffset"] = 15
	E.db["unitframe"]["units"]["targettarget"]["width"] = 75

	E.db["unitframe"]["units"]["targettargettarget"]["enable"] = false
	E.db["unitframe"]["units"]["targettargettarget"]["health"]["frequentUpdates"] = true

	E.db["unitframe"]["units"]["party"]["customTexts"] = {
fgprodigal's avatar
fgprodigal committed
864
		["Status"] = {
fgprodigal's avatar
fgprodigal committed
865
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
866
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
867
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
868
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
869
			["justifyH"] = "CENTER",
fgprodigal's avatar
fgprodigal committed
870
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
871 872 873
			["text_format"] = "[statustimer]",
			["xOffset"] = 0,
			["yOffset"] = -12,
fgprodigal's avatar
fgprodigal committed
874 875
		},
		["BigName"] = {
fgprodigal's avatar
fgprodigal committed
876
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
877
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
878
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
879
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
880 881 882
			["justifyH"] = "RIGHT",
			["size"] = 13,
			["text_format"] = nameColorTag .. "[name:medium:translit] [difficultycolor][smartlevel]",
fgprodigal's avatar
fgprodigal committed
883 884 885 886
			["xOffset"] = 0,
			["yOffset"] = 23,
		},
	}
fgprodigal's avatar
fgprodigal committed
887 888 889 890 891
	E.db["unitframe"]["units"]["party"]["buffIndicator"]["fontSize"] = 11
	E.db["unitframe"]["units"]["party"]["buffIndicator"]["size"] = 10
	E.db["unitframe"]["units"]["party"]["buffs"]["anchorPoint"] = "TOPLEFT"
	E.db["unitframe"]["units"]["party"]["buffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
892
	E.db["unitframe"]["units"]["party"]["buffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
893 894 895 896 897 898
	E.db["unitframe"]["units"]["party"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["noConsolidated"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["noDuration"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["perrow"] = 2
	E.db["unitframe"]["units"]["party"]["buffs"]["playerOnly"] = false
	E.db["unitframe"]["units"]["party"]["buffs"]["priority"] = "MER_RaidCDs"
fgprodigal's avatar
fgprodigal committed
899 900
	E.db["unitframe"]["units"]["party"]["buffs"]["sizeOverride"] = 20
	E.db["unitframe"]["units"]["party"]["buffs"]["useBlacklist"] = false
fgprodigal's avatar
fgprodigal committed
901
	E.db["unitframe"]["units"]["party"]["buffs"]["useFilter"] = "MER_RaidCDs"
fgprodigal's avatar
fgprodigal committed
902 903
	E.db["unitframe"]["units"]["party"]["buffs"]["useWhitelist"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["xOffset"] = 2
fgprodigal's avatar
fgprodigal committed
904
	E.db["unitframe"]["units"]["party"]["buffs"]["yOffset"] = 0
fgprodigal's avatar
fgprodigal committed
905 906 907 908 909 910 911 912 913 914
	E.db["unitframe"]["units"]["party"]["debuffs"]["anchorPoint"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["debuffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["party"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["party"]["debuffs"]["countFontSize"] = 12
	E.db["unitframe"]["units"]["party"]["debuffs"]["perrow"] = 2
	E.db["unitframe"]["units"]["party"]["debuffs"]["priority"] = "Blacklist,Boss,RaidDebuffs,Dispellable"
	E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 30
	E.db["unitframe"]["units"]["party"]["debuffs"]["spacing"] = 4
	E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = -2
	E.db["unitframe"]["units"]["party"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
915
	E.db["unitframe"]["units"]["party"]["groupBy"] = "ROLE"
fgprodigal's avatar
fgprodigal committed
916 917
	E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true
	E.db["unitframe"]["units"]["party"]["health"]["bgUseBarTexture"] = true
fgprodigal's avatar
fgprodigal committed
918 919 920
	E.db["unitframe"]["units"]["party"]["health"]["frequentUpdates"] = true
	E.db["unitframe"]["units"]["party"]["health"]["position"] = "CENTER"
	E.db["unitframe"]["units"]["party"]["health"]["text_format"] = ""
fgprodigal's avatar
fgprodigal committed
921
	E.db["unitframe"]["units"]["party"]["health"]["xOffset"] = 0
fgprodigal's avatar
fgprodigal committed
922
	E.db["unitframe"]["units"]["party"]["health"]["yOffset"] = 2
fgprodigal's avatar
fgprodigal committed
923 924 925 926 927 928 929 930 931 932 933
	E.db["unitframe"]["units"]["party"]["height"] = 30
	E.db["unitframe"]["units"]["party"]["horizontalSpacing"] = 1
	E.db["unitframe"]["units"]["party"]["name"]["attachTextTo"] = "Frame"
	E.db["unitframe"]["units"]["party"]["name"]["position"] = "BOTTOMLEFT"
	E.db["unitframe"]["units"]["party"]["name"]["text_format"] = ""
	E.db["unitframe"]["units"]["party"]["orientation"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["petsGroup"]["height"] = 16
	E.db["unitframe"]["units"]["party"]["petsGroup"]["name"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["petsGroup"]["width"] = 60
	E.db["unitframe"]["units"]["party"]["petsGroup"]["xOffset"] = 0
	E.db["unitframe"]["units"]["party"]["petsGroup"]["yOffset"] = -1
fgprodigal's avatar
fgprodigal committed
934 935 936 937
	E.db["unitframe"]["units"]["party"]["power"]["height"] = 4
	E.db["unitframe"]["units"]["party"]["power"]["position"] = "BOTTOMRIGHT"
	E.db["unitframe"]["units"]["party"]["power"]["text_format"] = ""
	E.db["unitframe"]["units"]["party"]["power"]["yOffset"] = 2
fgprodigal's avatar
fgprodigal committed
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977
	E.db["unitframe"]["units"]["party"]["raidicon"]["attachTo"] = "RIGHT"
	E.db["unitframe"]["units"]["party"]["raidicon"]["size"] = 16
	E.db["unitframe"]["units"]["party"]["raidicon"]["xOffset"] = -2
	E.db["unitframe"]["units"]["party"]["raidicon"]["yOffset"] = 0
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["fontOutline"] = "OUTLINE"
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["size"] = 25
	E.db["unitframe"]["units"]["party"]["rdebuffs"]["yOffset"] = 12
	E.db["unitframe"]["units"]["party"]["readycheckIcon"]["size"] = 20
	E.db["unitframe"]["units"]["party"]["roleIcon"]["position"] = "LEFT"
	E.db["unitframe"]["units"]["party"]["roleIcon"]["size"] = 12
	E.db["unitframe"]["units"]["party"]["roleIcon"]["xOffset"] = -5
	E.db["unitframe"]["units"]["party"]["sortDir"] = "DESC"
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["anchorPoint"] = "BOTTOM"
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["height"] = 16
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["name"]["text_format"] = nameColorTag .. "[name:short]"
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["width"] = 79
	E.db["unitframe"]["units"]["party"]["targetsGroup"]["xOffset"] = 0
	E.db["unitframe"]["units"]["party"]["verticalSpacing"] = 25
	E.db["unitframe"]["units"]["party"]["width"] = 160

	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["fontSize"] = 11
	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["size"] = 10
	E.db["unitframe"]["units"]["raid"]["buffIndicator"]["style"] = "coloredIcon"
	E.db["unitframe"]["units"]["raid"]["buffs"]["anchorPoint"] = "CENTER"
	E.db["unitframe"]["units"]["raid"]["buffs"]["clickThrough"] = true
	E.db["unitframe"]["units"]["raid"]["buffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["unitframe"]["units"]["raid"]["buffs"]["countFontSize"] = 12
	E.db["unitframe"]["units"]["raid"]["buffs"]["enable"] = true
	E.db["unitframe"]["units"]["raid"]["buffs"]["noConsolidated"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["noDuration"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["perrow"] = 1
	E.db["unitframe"]["units"]["raid"]["buffs"]["playerOnly"] = false
	E.db["unitframe"]["units"]["raid"]["buffs"]["priority"]</