Install.lua 108 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

	-- 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
fgprodigal's avatar
Update  
fgprodigal committed
144
		E.Chat:PositionChats(true)
fgprodigal's avatar
fgprodigal committed
145 146 147 148 149 150 151 152 153 154 155 156
		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 158 159 160 161 162
	E.db["chat"]["customTimeColor"]["b"] = 0.98
	E.db["chat"]["customTimeColor"]["g"] = 0.75
	E.db["chat"]["customTimeColor"]["r"] = 0
	E.db["chat"]["editBoxPosition"] = "ABOVE_CHAT"
	E.db["chat"]["font"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["chat"]["fontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
163
	E.db["chat"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
164
	E.db["chat"]["keywords"] = "%MYNAME%, ElvUI, MerathilisUI, RayUI"
fgprodigal's avatar
fgprodigal committed
165
	E.db["chat"]["keywordSound"] = "Whisper Alert"
fgprodigal's avatar
fgprodigal committed
166 167
	E.db["chat"]["panelHeight"] = 174
	E.db["chat"]["panelHeightRight"] = 174
fgprodigal's avatar
fgprodigal committed
168
	E.db["chat"]["panelTabTransparency"] = true
fgprodigal's avatar
fgprodigal committed
169
	E.db["chat"]["panelWidth"] = 400
fgprodigal's avatar
fgprodigal committed
170
	E.db["chat"]["panelWidthRight"] = 400
fgprodigal's avatar
fgprodigal committed
171
	E.db["chat"]["socialQueueMessages"] = true
fgprodigal's avatar
fgprodigal committed
172 173 174 175 176
	E.db["chat"]["tabFont"] = E.Libs.LSM.DefaultMedia["font"]
	E.db["chat"]["tabFontOutline"] = "OUTLINE"
	E.db["chat"]["tabFontSize"] = 12
	E.db["chat"]["tabSelector"] = 'NONE'
	E.db["chat"]["tabSelector"] = "NONE"
fgprodigal's avatar
fgprodigal committed
177
	E.db["chat"]["tapFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
178
	E.db["chat"]["timeStampFormat"] = "%H:%M "
fgprodigal's avatar
fgprodigal committed
179
	E.db["mui"]["chat"]["chatButton"] = false
fgprodigal's avatar
fgprodigal committed
180
	E.db["mui"]["chat"]["hidePlayerBrackets"] = false
fgprodigal's avatar
fgprodigal committed
181
	E.db["mui"]["chat"]["isExpanded"] = false
fgprodigal's avatar
fgprodigal committed
182
	E.db["mui"]["chat"]["panelHeight"] = 174
fgprodigal's avatar
fgprodigal committed
183

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

	E:StaggeredUpdateAll(nil, true)

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

fgprodigal's avatar
fgprodigal committed
193 194 195 196
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
197
		E.db["actionbar"]["bar3"]["backdrop"] = true
fgprodigal's avatar
fgprodigal committed
198
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
fgprodigal's avatar
fgprodigal committed
199 200 201
		E.db["actionbar"]["bar3"]["buttons"] = 10
		E.db["actionbar"]["bar3"]["buttonspacing"] = 3
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 12
fgprodigal's avatar
fgprodigal committed
202 203
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
fgprodigal's avatar
fgprodigal committed
204
		E.db["actionbar"]["bar4"]["widthMult"] = 1
fgprodigal's avatar
fgprodigal committed
205 206
		E.db["unitframe"]["smartRaidFilter"] = true
		E.db["unitframe"]["units"]["party"]["enable"] = true
fgprodigal's avatar
fgprodigal committed
207
		E.db["unitframe"]["units"]["raid"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
208
		E.db["unitframe"]["units"]["raid"]["orientation"] = "LEFT"
fgprodigal's avatar
fgprodigal committed
209
		E.db["unitframe"]["units"]["raid"]["width"] = 79
fgprodigal's avatar
fgprodigal committed
210
		E.db["unitframe"]["units"]["raid40"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
211
		E.db["unitframe"]["units"]["raid40"]["orientation"] = "LEFT"
fgprodigal's avatar
fgprodigal committed
212
		E.db["unitframe"]["units"]["raid40"]["width"] = 79
fgprodigal's avatar
fgprodigal committed
213
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "TIME_REMAINING"
fgprodigal's avatar
fgprodigal committed
214 215 216
		
		E:StaggeredUpdateAll(nil, true)
		
fgprodigal's avatar
fgprodigal committed
217
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
fgprodigal's avatar
fgprodigal committed
218 219 220
		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
221
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
222
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
223
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
fgprodigal's avatar
fgprodigal committed
224
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 253, 511)
fgprodigal's avatar
fgprodigal committed
225
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
226
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
fgprodigal's avatar
fgprodigal committed
227
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 122)
fgprodigal's avatar
fgprodigal committed
228
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -244, 340)
fgprodigal's avatar
fgprodigal committed
229 230
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 407)
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 407)
fgprodigal's avatar
fgprodigal committed
231
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
fgprodigal's avatar
fgprodigal committed
232 233 234 235
		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)
fgprodigal's avatar
fgprodigal committed
236
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", _G.LeftChatPanel, "TOPLEFT", 0, 1)
fgprodigal's avatar
fgprodigal committed
237 238 239
	elseif layout == "healer" then
		E.db["actionbar"]["bar1"]["inheritGlobalFade"] = false
		E.db["actionbar"]["bar2"]["inheritGlobalFade"] = false
fgprodigal's avatar
fgprodigal committed
240
		E.db["actionbar"]["bar3"]["backdrop"] = false
fgprodigal's avatar
fgprodigal committed
241
		E.db["actionbar"]["bar3"]["backdropSpacing"] = 3
fgprodigal's avatar
fgprodigal committed
242
		E.db["actionbar"]["bar3"]["buttons"] = 12
fgprodigal's avatar
fgprodigal committed
243
		E.db["actionbar"]["bar3"]["buttonsize"] = 29
fgprodigal's avatar
fgprodigal committed
244 245
		E.db["actionbar"]["bar3"]["buttonspacing"] = 4
		E.db["actionbar"]["bar3"]["buttonsPerRow"] = 1
fgprodigal's avatar
fgprodigal committed
246 247
		E.db["actionbar"]["bar3"]["inheritGlobalFade"] = true
		E.db["actionbar"]["bar3"]["point"] = "TOPLEFT"
fgprodigal's avatar
fgprodigal committed
248
		E.db["actionbar"]["bar4"]["widthMult"] = 2
fgprodigal's avatar
fgprodigal committed
249 250
		E.db["unitframe"]["smartRaidFilter"] = false
		E.db["unitframe"]["units"]["party"]["enable"] = false
fgprodigal's avatar
fgprodigal committed
251
		E.db["unitframe"]["units"]["raid"]["height"] = 40
fgprodigal's avatar
fgprodigal committed
252
		E.db["unitframe"]["units"]["raid"]["orientation"] = "MIDDLE"
fgprodigal's avatar
fgprodigal committed
253
		E.db["unitframe"]["units"]["raid"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
254
		E.db["unitframe"]["units"]["raid40"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
255
		E.db["unitframe"]["units"]["raid40"]["orientation"] = "MIDDLE"
fgprodigal's avatar
fgprodigal committed
256
		E.db["unitframe"]["units"]["raid40"]["width"] = 83
fgprodigal's avatar
fgprodigal committed
257
		E.db["unitframe"]["units"]["target"]["buffs"]["sortMethod"] = "PLAYER"
fgprodigal's avatar
fgprodigal committed
258 259 260
		
		E:StaggeredUpdateAll(nil, true)
		
fgprodigal's avatar
fgprodigal committed
261
		self:SetMoverPosition("ClassBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 346)
fgprodigal's avatar
fgprodigal committed
262 263
		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
264
		self:SetMoverPosition("ElvAB_3", "RIGHT", E.UIParent, "RIGHT", -42, 0)
fgprodigal's avatar
fgprodigal committed
265
		self:SetMoverPosition("ElvAB_4", "RIGHT", E.UIParent, "RIGHT", -5, 0)
fgprodigal's avatar
fgprodigal committed
266
		self:SetMoverPosition("ElvAB_5", "RIGHT", ElvAB_4, "LEFT", -3, 0)
fgprodigal's avatar
fgprodigal committed
267
		self:SetMoverPosition("ElvAB_6", "BOTTOM", E.UIParent, "BOTTOM", 0, 19)
fgprodigal's avatar
fgprodigal committed
268
		self:SetMoverPosition("ElvUF_PartyMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 253, 411)
fgprodigal's avatar
fgprodigal committed
269
		self:SetMoverPosition("ElvUF_PetCastbarMover", "TOP", _G.ElvUF_Pet, "BOTTOM", 0, -2)
fgprodigal's avatar
fgprodigal committed
270
		self:SetMoverPosition("ElvUF_PetMover", "RIGHT", _G.ElvUF_Player, "LEFT", -2, 0)
fgprodigal's avatar
fgprodigal committed
271
		self:SetMoverPosition("ElvUF_PlayerCastbarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 120)
fgprodigal's avatar
fgprodigal committed
272
		self:SetMoverPosition("ElvUF_PlayerMover", "BOTTOM", E.UIParent, "BOTTOM", -320, 340)
fgprodigal's avatar
fgprodigal committed
273
		self:SetMoverPosition("ElvUF_Raid40Mover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
fgprodigal's avatar
fgprodigal committed
274
		self:SetMoverPosition("ElvUF_RaidMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 145)
fgprodigal's avatar
fgprodigal committed
275
		self:SetMoverPosition("ElvUF_RaidpetMover", "TOPLEFT", E.UIParent, "BOTTOMLEFT", 4, 162)
fgprodigal's avatar
fgprodigal committed
276 277 278 279
		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)
fgprodigal's avatar
fgprodigal committed
280
		self:SetMoverPosition("ShiftAB", "BOTTOMLEFT", _G.LeftChatPanel, "TOPLEFT", 0, 1)
fgprodigal's avatar
fgprodigal committed
281
	end
fgprodigal's avatar
fgprodigal committed
282 283 284 285 286 287 288 289
	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
290
	self:SetMoverPosition("BossButton", "TOPRIGHT", E.UIParent, "TOPRIGHT", -381, -516)
fgprodigal's avatar
fgprodigal committed
291 292
	self:SetMoverPosition("BuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -18)
	self:SetMoverPosition("DebuffsMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -221, -161)
fgprodigal's avatar
fgprodigal committed
293
	self:SetMoverPosition("DurabilityFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -4, -283)
fgprodigal's avatar
fgprodigal committed
294 295 296 297
	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
298
	self:SetMoverPosition("ElvUIBankMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 10, 50)
fgprodigal's avatar
fgprodigal committed
299
	self:SetMoverPosition("ExperienceBarMover", "TOP", _G.LeftChatMover, "BOTTOM", 0, -1)
fgprodigal's avatar
fgprodigal committed
300
	self:SetMoverPosition("GMMover", "TOPLEFT", E.UIParent, "TOPLEFT", 229, -20)
fgprodigal's avatar
fgprodigal committed
301
	self:SetMoverPosition("HonorBarMover", "TOP", _G.RightChatPanel, "BOTTOM", 0, -1)
fgprodigal's avatar
fgprodigal committed
302
	self:SetMoverPosition("LootFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -495, -457)
fgprodigal's avatar
fgprodigal committed
303
	self:SetMoverPosition("MER_LocPanel_Mover", "TOP", E.UIParent, "TOP", 0, 0)
fgprodigal's avatar
fgprodigal committed
304 305 306 307 308 309 310
	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
311
	self:SetMoverPosition("PlayerPowerBarMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 250)
fgprodigal's avatar
fgprodigal committed
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)
fgprodigal's avatar
fgprodigal committed
315
	self:SetMoverPosition("SquareMinimapButtonBarMover", "TOPRIGHT", _G.MinimapPanel, "BOTTOMRIGHT", 1, -1)
fgprodigal's avatar
fgprodigal committed
316
	self:SetMoverPosition("TalkingHeadFrameMover", "TOP", E.UIParent, "TOP", 0, -80)
fgprodigal's avatar
fgprodigal committed
317
	self:SetMoverPosition("TaxiButtonMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 202)
fgprodigal's avatar
fgprodigal committed
318 319
	self:SetMoverPosition("TimeManagerFrameMover", "TOPRIGHT", E.UIParent, "TOPRIGHT", -39, -231)
	self:SetMoverPosition("TooltipMover", "BOTTOMRIGHT", E.UIParent, "BOTTOMRIGHT", -10, 280)
fgprodigal's avatar
fgprodigal committed
320
	self:SetMoverPosition("TopCenterContainerMover", "TOP", E.UIParent, "TOP", 0, -60)
fgprodigal's avatar
fgprodigal committed
321
	self:SetMoverPosition("TotemBarMover", "BOTTOMLEFT", E.UIParent, "BOTTOMLEFT", 415, 50)
fgprodigal's avatar
fgprodigal committed
322
	self:SetMoverPosition("VehicleSeatMover", "BOTTOMRIGHT", _G.RightChatPanel, "BOTTOMLEFT", -59, 0)
fgprodigal's avatar
fgprodigal committed
323 324
	self:SetMoverPosition("ZoneAbbility", "TOPRIGHT", E.UIParent, "TOPRIGHT", -381, -516)

fgprodigal's avatar
fgprodigal committed
325
	self:SetMoverPosition("OzCooldownsMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 430)
fgprodigal's avatar
fgprodigal committed
326 327
	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
328

fgprodigal's avatar
fgprodigal committed
329 330
	self:SetMoverPosition("DTPanelMiddleDataPanelMover", "BOTTOM", E.UIParent, "BOTTOM", 0, 4)

fgprodigal's avatar
fgprodigal committed
331 332 333 334 335
	PluginInstallStepComplete.message = self.Title..L["Layout Set"]
	PluginInstallStepComplete:Show()
end

function RayUI:SetupVariables(colorMode)
fgprodigal's avatar
fgprodigal committed
336
	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
337
	local classColor = colorMode == "classColor"
fgprodigal's avatar
fgprodigal committed
338 339
	local nameColorTag = classColor and "" or "[namecolor]"

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

	--[[----------------------------------
	--	PrivateDB
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
354
	E.private["general"]["chatBubbleFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
355
	E.private["general"]["chatBubbleFontOutline"] = "OUTLINE"
fgprodigal's avatar
fgprodigal committed
356
	E.private["general"]["chatBubbleFontSize"] = 13
fgprodigal's avatar
fgprodigal committed
357
	E.private["general"]["chatBubbleName"] = true
fgprodigal's avatar
fgprodigal committed
358
	E.private["general"]["dmgfont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
359
	E.private["general"]["glossTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
360 361
	E.private["general"]["namefont"] = E.Libs.LSM.DefaultMedia["font"]
	E.private["general"]["normTex"] = E.Libs.LSM.DefaultMedia["statusbar"]
fgprodigal's avatar
fgprodigal committed
362
	E.private["skins"]["blizzard"]["losscontrol"] = false
fgprodigal's avatar
Update  
fgprodigal committed
363
	E.private["skins"]["parchmentRemoverEnable"] = false
fgprodigal's avatar
fgprodigal committed
364 365 366 367 368 369 370 371 372 373 374 375
	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
376
	E.db["general"]["altPowerBar"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
377 378 379 380 381
	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
382
	E.db["general"]["autoAcceptInvite"] = true
fgprodigal's avatar
fgprodigal committed
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
	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
407
	E.db["general"]["minimap"]["locationFontSize"] = 10
fgprodigal's avatar
fgprodigal committed
408
	E.db["general"]["minimap"]["locationText"] = "HIDE"
fgprodigal's avatar
fgprodigal committed
409 410 411
	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
412 413
	E.db["general"]["resurrectSound"] = true
	E.db["general"]["smoothingAmount"] = 0.25
fgprodigal's avatar
fgprodigal committed
414
	E.db["general"]["talkingHeadFrameBackdrop"] = true
fgprodigal's avatar
fgprodigal committed
415
	E.db["general"]["talkingHeadFrameScale"] = 0.9
fgprodigal's avatar
fgprodigal committed
416 417 418
	E.db["general"]["threat"]["enable"] = false
	E.db["general"]["threat"]["textOutline"] = "OUTLINE"
	E.db["general"]["topPanel"] = false
fgprodigal's avatar
fgprodigal committed
419
	E.db["general"]["totems"]["size"] = 36
fgprodigal's avatar
fgprodigal committed
420
	E.db["general"]["valuecolor"] = { r = color.r, g = color.g, b = color.b }
fgprodigal's avatar
fgprodigal committed
421 422 423 424 425
	E.db["general"]["vehicleSeatIndicatorSize"] = 76

	--[[----------------------------------
	--	ProfileDB - Databars
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
426 427 428 429
	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
430
	E.db["databars"]["experience"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
431
	E.db["databars"]["experience"]["height"] = 8
fgprodigal's avatar
fgprodigal committed
432
	E.db["databars"]["experience"]["orientation"] = "HORIZONTAL"
fgprodigal's avatar
fgprodigal committed
433
	E.db["databars"]["experience"]["textSize"] = 10
fgprodigal's avatar
fgprodigal committed
434
	E.db["databars"]["experience"]["width"] = 400
fgprodigal's avatar
fgprodigal committed
435 436 437 438 439 440 441 442 443 444
	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
445 446 447 448 449

	--[[----------------------------------
	--	ProfileDB - Auras
	--]]----------------------------------
	E.db["auras"]["buffs"]["countFontsize"] = 14
fgprodigal's avatar
fgprodigal committed
450 451
	E.db["auras"]["buffs"]["durationFontSize"] = 14
	E.db["auras"]["buffs"]["horizontalSpacing"] = 5
fgprodigal's avatar
fgprodigal committed
452
	E.db["auras"]["buffs"]["size"] = 40
fgprodigal's avatar
fgprodigal committed
453 454 455
	E.db["auras"]["buffs"]["verticalSpacing"] = 15
	E.db["auras"]["buffs"]["wrapAfter"] = 10
	E.db["auras"]["cooldown"]["checkSeconds"] = true
fgprodigal's avatar
fgprodigal committed
456 457 458
	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
459 460 461 462
	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
463
	E:CopyTable(E.db["auras"]["cooldown"]["expireIndicator"], E.db["auras"]["cooldown"]["expiringColor"])
fgprodigal's avatar
fgprodigal committed
464
	E:CopyTable(E.db["auras"]["cooldown"]["hhmmColor"], E.db["auras"]["cooldown"]["minutesColor"])
fgprodigal's avatar
fgprodigal committed
465
	E:CopyTable(E.db["auras"]["cooldown"]["hoursIndicator"], E.db["auras"]["cooldown"]["hoursColor"])
fgprodigal's avatar
fgprodigal committed
466
	E:CopyTable(E.db["auras"]["cooldown"]["minutesIndicator"], E.db["auras"]["cooldown"]["minutesColor"])
fgprodigal's avatar
fgprodigal committed
467
	E:CopyTable(E.db["auras"]["cooldown"]["mmssColor"], E.db["auras"]["cooldown"]["secondsColor"])
fgprodigal's avatar
fgprodigal committed
468 469 470 471 472 473 474 475
	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
476 477 478 479

	--[[----------------------------------
	--	ProfileDB - Tooltip
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
480
	E.db["tooltip"]["alwaysShowRealm"] = true
fgprodigal's avatar
fgprodigal committed
481 482 483 484 485
	if colorMode == "transparent" then
		E.db["tooltip"]["colorAlpha"] = 0.4
	else
		E.db["tooltip"]["colorAlpha"] = 0.8
	end
fgprodigal's avatar
fgprodigal committed
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"
fgprodigal's avatar
fgprodigal committed
497
	E.db["tooltip"]["itemCount"] = "BOTH"
fgprodigal's avatar
fgprodigal committed
498 499 500 501
	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
502 503 504 505

	--[[----------------------------------
	--	ProfileDB - UnitFrame
	--]]----------------------------------
fgprodigal's avatar
fgprodigal committed
506
	E.db["unitframe"]["font"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
507
	E.db["unitframe"]["fontSize"] = 12
fgprodigal's avatar
fgprodigal committed
508
	E.db["unitframe"]["cooldown"]["fonts"]["font"] = "RayUI Roadway"
fgprodigal's avatar
fgprodigal committed
509 510 511 512
	E.db["unitframe"]["units"]["targettarget"]["customTexts"] = {
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
513 514 515 516
			["font"] = E.Libs.LSM.DefaultMedia["font"],
			["fontOutline"] = "OUTLINE",
			["justifyH"] = "RIGHT",
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
517
			["text_format"] = nameColorTag .. "[name:veryshort:translit]",
fgprodigal's avatar
fgprodigal committed
518
			["xOffset"] = -3,
fgprodigal's avatar
fgprodigal committed
519
			["yOffset"] = 23,
fgprodigal's avatar
fgprodigal committed
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
		},
	}
	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
fgprodigal's avatar
fgprodigal committed
668
	E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 432
fgprodigal's avatar
fgprodigal committed
669 670 671 672 673 674 675 676 677 678
	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
679
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
680 681 682 683 684 685 686 687 688 689 690 691
			["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
692
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
693 694 695 696 697 698 699
			["text_format"] = nameColorTag .. "[rayui-health:percent-current]",
			["xOffset"] = -3,
			["yOffset"] = -23,
		},
		["RayUIPower"] = {
			["attachTextTo"] = "Power",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
700
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
701 702 703 704 705 706
			["fontOutline"] = "OUTLINE",
			["justifyH"] = "LEFT",
			["size"] = 13,
			["text_format"] = "[powercolor][power:current]",
			["xOffset"] = 0,
			["yOffset"] = -10,
fgprodigal's avatar
fgprodigal committed
707 708 709
		},
	}
	E.db["unitframe"]["units"]["player"]["debuffs"]["anchorPoint"] = "TOPRIGHT"
fgprodigal's avatar
fgprodigal committed
710
	E.db["unitframe"]["units"]["player"]["debuffs"]["countFont"] = E.Libs.LSM.DefaultMedia["font"]
fgprodigal's avatar
fgprodigal committed
711 712 713
	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
714
	E.db["unitframe"]["units"]["player"]["debuffs"]["spacing"] = 4
fgprodigal's avatar
fgprodigal committed
715 716 717 718 719 720 721 722 723 724 725 726 727
	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
728
	E.db["unitframe"]["units"]["player"]["health"]["bgUseBarTexture"] = true
fgprodigal's avatar
fgprodigal committed
729 730 731
	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
732
	E.db["unitframe"]["units"]["player"]["height"] = 30
fgprodigal's avatar
fgprodigal committed
733 734 735 736 737
	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
738 739
	E.db["unitframe"]["units"]["player"]["power"]["detachFromFrame"] = false
	E.db["unitframe"]["units"]["player"]["power"]["height"] = 4
fgprodigal's avatar
fgprodigal committed
740
	E.db["unitframe"]["units"]["player"]["power"]["hideonnpc"] = true
fgprodigal's avatar
fgprodigal committed
741 742 743 744 745
	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
746 747 748 749 750
	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
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
	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
774 775 776
		["BigName"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
777
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
778
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
779
			["justifyH"] = "RIGHT",
fgprodigal's avatar
fgprodigal committed
780
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
781 782 783
			["text_format"] = nameColorTag .. "[name:medium:translit] [difficultycolor][smartlevel][classification:icon]",
			["xOffset"] = -3,
			["yOffset"] = 23,
fgprodigal's avatar
fgprodigal committed
784 785 786 787
		},
		["Life"] = {
			["attachTextTo"] = "Frame",
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
788
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
789
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
790
			["justifyH"] = "LEFT",
fgprodigal's avatar
fgprodigal committed
791
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
792 793 794
			["text_format"] = nameColorTag .. "[rayui-health:current-percent]",
			["xOffset"] = 3,
			["yOffset"] = -23,
fgprodigal's avatar
fgprodigal committed
795 796
		},
		["RayUIPower"] = {
fgprodigal's avatar
fgprodigal committed
797
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
798
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
799
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
800
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
801
			["justifyH"] = "RIGHT",
fgprodigal's avatar
fgprodigal committed
802
			["size"] = 13,
fgprodigal's avatar
fgprodigal committed
803 804 805
			["text_format"] = "[powercolor][power:current]",
			["xOffset"] = -3,
			["yOffset"] = -23,
fgprodigal's avatar
fgprodigal committed
806 807
		},
	}
fgprodigal's avatar
fgprodigal committed
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 864 865 866 867 868
	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
869
		["Status"] = {
fgprodigal's avatar
fgprodigal committed
870
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
871
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
872
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
873
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
874
			["justifyH"] = "CENTER",
fgprodigal's avatar
fgprodigal committed
875
			["size"] = 12,
fgprodigal's avatar
fgprodigal committed
876 877 878
			["text_format"] = "[statustimer]",
			["xOffset"] = 0,
			["yOffset"] = -12,
fgprodigal's avatar
fgprodigal committed
879 880
		},
		["BigName"] = {
fgprodigal's avatar
fgprodigal committed
881
			["attachTextTo"] = "Frame",
fgprodigal's avatar
fgprodigal committed
882
			["enable"] = true,
fgprodigal's avatar
fgprodigal committed
883
			["font"] = E.Libs.LSM.DefaultMedia["font"],
fgprodigal's avatar
fgprodigal committed
884
			["fontOutline"] = "OUTLINE",
fgprodigal's avatar
fgprodigal committed
885 886 887
			["justifyH"] = "RIGHT",
			["size"] = 13,
			["text_format"] = nameColorTag .. "[name:medium:translit] [difficultycolor][smartlevel]",
fgprodigal's avatar
fgprodigal committed
888 889 890 891
			["xOffset"] = 0,
			["yOffset"] = 23,
		},
	}
fgprodigal's avatar
fgprodigal committed
892 893 894 895 896
	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
897
	E.db["unitframe"]["units"]["party"]["buffs"]["countFontSize"] = 12
fgprodigal's avatar
fgprodigal committed
898 899 900 901
	E.db["unitframe"]["units"]["party"]["buffs"]["enable"] = true
	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
902 903
	E.db["unitframe"]["units"]["party"]["buffs"]["sizeOverride"] = 20
	E.db["unitframe"]["units"]["party"]["buffs"]["useBlacklist"] = false
fgprodigal's avatar
fgprodigal committed
904
	E.db["unitframe"]["units"]["party"]["buffs"]["useFilter"] = "MER_RaidCDs"
fgprodigal's avatar
fgprodigal committed
905 906
	E.db["unitframe"]["units"]["party"]["buffs"]["useWhitelist"] = true
	E.db["unitframe"]["units"]["party"]["buffs"]["xOffset"] = 2
fgprodigal's avatar
fgprodigal committed
907
	E.db["unitframe"]["units"]["party"]["buffs"]["yOffset"] = 0
fgprodigal's avatar
fgprodigal committed
908 909 910 911 912 913 914 915 916 917
	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
918
	E.db["unitframe"]["units"]["party"]["groupBy"] = "ROLE"
fgprodigal's avatar
fgprodigal committed
919 920
	E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true
	E.db["unitframe"]["units"]["party"]["health"]["bgUseBarTexture"] = true
fgprodigal's avatar
fgprodigal committed
921 922 923
	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
924
	E.db["unitframe"]["units"]["party"]["health"]["xOffset"] = 0
fgprodigal's avatar
fgprodigal committed
925
	E.db["unitframe"]["units"]["party"]["health"]["yOffset"] = 2
fgprodigal's avatar
fgprodigal committed
926 927 928 929 930 931 932 933 934 935 936
	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
937 938 939 940
	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
941 942
	E.db["unitframe"]["units"]["party"]["raidicon"]["attachTo"] = "RIGHT"
	E.db["unitframe"]["units"]["party"]["raidicon"]["size"] = 16
fgprodigal's avatar
fgprodigal committed
943
	E.db["unitframe"]["units"]["party"]["raidicon"]["xOffset"] = 20